CN113805731A - Touch screen calibration method and device, storage medium and touch screen - Google Patents
Touch screen calibration method and device, storage medium and touch screen Download PDFInfo
- Publication number
- CN113805731A CN113805731A CN202111115114.7A CN202111115114A CN113805731A CN 113805731 A CN113805731 A CN 113805731A CN 202111115114 A CN202111115114 A CN 202111115114A CN 113805731 A CN113805731 A CN 113805731A
- Authority
- CN
- China
- Prior art keywords
- touch
- touch screen
- preset
- screen
- button
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 40
- 238000001514 detection method Methods 0.000 claims description 17
- 238000004590 computer program Methods 0.000 claims description 6
- 230000006870 function Effects 0.000 description 11
- 238000010586 diagram Methods 0.000 description 6
- 238000010276 construction Methods 0.000 description 4
- 230000008859 change Effects 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 150000004706 metal oxides Chemical class 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 1
- 239000011248 coating agent Substances 0.000 description 1
- 238000000576 coating method Methods 0.000 description 1
- 239000002131 composite material Substances 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 239000011521 glass Substances 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 229910044991 metal oxide Inorganic materials 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000003678 scratch resistant effect Effects 0.000 description 1
- 239000000758 substrate Substances 0.000 description 1
- 239000000725 suspension Substances 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
-
- 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/045—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means using resistive elements, e.g. a single continuous surface or two parallel surfaces put in contact
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)
- User Interface Of Digital Computer (AREA)
Abstract
The invention provides a touch screen calibration method, a touch screen calibration device, a storage medium and a touch screen, wherein the method comprises the following steps: detecting whether a touch event occurs on the touch screen within a first preset time; if no touch event occurs on the touch screen within a first preset time, displaying a preset touch button, and detecting whether the touch event occurs on the touch screen; if a touch event on the touch screen is detected to occur, judging whether touch drift occurs on the touch screen according to the touch coordinate of the occurring touch event; and if the touch screen is judged to have touch drift, calibrating the touch screen. The scheme of the invention can be calibrated without power-off restart, and can automatically detect whether touch drift occurs.
Description
Technical Field
The invention relates to the field of control, in particular to a touch screen calibration method and device, a storage medium and a touch screen.
Background
With the integration and development of technologies such as cloud computing, mobile internet, internet of things and the like, the domestic market is in an unprecedented surge in the construction of data centers. In view of market applications in recent years, data centers may bloom throughout their lives. The industrial control resistance touch screen has more applications in the financial industry, the telecommunication industry, the IT industry, the rail transit industry and other industries, is stable in work and low in price, has strong interference resistance, is an indispensable part of a data center machine room air conditioner, and is easy to generate the phenomenon of touch drift.
Disclosure of Invention
The present invention is directed to overcome the above-mentioned drawbacks of the related art, and provides a method and an apparatus for protecting a magnetic suspension bearing system, a storage medium, and a bearing controller, so as to solve the problem that a touch drift phenomenon is easily generated in a power control resistive touch screen in the related art.
The invention provides a touch screen calibration method in one aspect, which comprises the following steps: detecting whether a touch event occurs on the touch screen within a first preset time; if no touch event occurs on the touch screen within a first preset time, displaying a preset touch button, and detecting whether the touch event occurs on the touch screen; if a touch event on the touch screen is detected to occur, judging whether touch drift occurs on the touch screen according to the touch coordinate of the occurring touch event; and if the touch screen is judged to have touch drift, calibrating the touch screen.
Optionally, the method further comprises: if no touch event is detected to occur on the touch screen within a first preset time, displaying a main interface of the touch screen, and displaying the preset touch button on the main interface; and/or displaying first prompt information for performing touch operation on the preset touch button when the preset touch button is displayed; and/or shielding the display of other touch buttons except the preset touch button on the current interface when the preset touch button is displayed.
Optionally, the determining whether the touch screen has touch drift according to the touch coordinate of the touch event includes: judging whether the touch coordinates of the generated touch event are in a preset area of the touch screen; if the touch coordinate is in the preset area, determining that no touch drift occurs in the touch screen; and if the touch coordinate is not in the preset area, determining that touch drift occurs in the touch screen.
Optionally, performing calibration of the touch screen includes: displaying second prompt information for entering calibration, and detecting whether a touch event occurs on the touch screen within second preset time; and if the touch event on the touch screen is detected to occur within a second preset time, entering a preset calibration program to calibrate the touch screen.
Optionally, an independent thread is started for executing the touch screen calibration method.
In another aspect, the present invention provides a touch screen calibration apparatus, including: the detection unit is used for detecting whether a touch event occurs on the touch screen within a first preset time; the display unit is used for displaying a preset touch button if the detection unit detects that no touch event occurs on the touch screen within a first preset time; the detection unit displays a preset touch button on the display unit to detect whether a touch event occurs on the touch screen; the judging unit is used for judging whether touch drift occurs on the touch screen according to the touch coordinate of the touch event if the detecting unit detects that the touch event occurs on the touch screen; and the calibration unit is used for calibrating the touch screen if the judgment unit judges that the touch screen has touch drift.
Optionally, the display unit is further configured to: if the detection unit detects that no touch event occurs on the touch screen within a first preset time, displaying a main interface of the touch screen, and displaying the preset touch button on the main interface; and/or the display unit is further used for: when the preset touch button is displayed, displaying first prompt information for performing touch operation on the preset touch button; and/or the display unit is further used for: and shielding the display of other touch buttons except the preset touch button on the current interface when the preset touch button is displayed.
Optionally, the determining unit determines whether touch drift occurs on the touch screen according to the touch coordinate of the touch event, including: judging whether the touch coordinates of the generated touch event are in a preset area of the touch screen; if the touch coordinate is in the preset area, determining that no touch drift occurs in the touch screen; and if the touch coordinate is not in the preset area, determining that touch drift occurs in the touch screen.
Optionally, the calibrating unit performs calibration of the touch screen, and includes: displaying second prompt information for entering calibration, and detecting whether a touch event occurs on the touch screen within second preset time; and if the touch event on the touch screen is detected to occur within a second preset time, entering a preset calibration program to calibrate the touch screen.
A further aspect of the invention provides a storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of any of the methods described above.
Yet another aspect of the present invention provides a touch screen comprising a processor, a memory, and a computer program stored on the memory and operable on the processor, wherein the processor executes the program to implement the steps of any of the methods described above.
In another aspect, the present invention provides a touch screen, including any one of the above touch screen calibration apparatuses.
According to the technical scheme, the preset button is arranged on the touch screen interface, whether the touch screen has touch drift or not is judged according to whether the user clicks the touch screen to trigger an unlocking event or not and whether the touch coordinate meets the condition, and when the touch drift of the industrial control screen is judged, the calibration is carried out. The method for calibrating the touch control screen at the specific moment is not needed when the unit is restarted in a power-off state, whether touch control drift occurs or not is automatically detected, and a user is prompted how to calibrate the touch control screen, so that temperature and humidity fluctuation caused when the industrial control touch screen is calibrated in the power-off state in the case of touch control drift can be prevented, and equipment damage caused by fluctuation of temperature and humidity of a data center is avoided.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention and not to limit the invention. In the drawings:
FIG. 1 is a schematic diagram of a touch screen calibration method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a touch screen calibration method according to an embodiment of the present invention;
fig. 3 is a block diagram of a touch screen calibration apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the specific embodiments of the present invention and the accompanying drawings. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The resistive touch screen, which is a multi-layer composite film, is formed by a glass or rigid plastic plate as a substrate, coated with a transparent metal oxide (ITO) conductive layer, covered with a hardened, smooth, scratch-resistant plastic layer (the inner surface of which is also coated with an ITO coating), and having a plurality of fine (about 1/1000 inches) transparent spaced dots separating the ITO conductive layers. When a finger touches the screen, two layers of conducting layers which are insulated from each other usually have one contact at a touch point, because one conducting layer is connected with a 5V uniform voltage field in the Y-axis direction, the voltage of a detection layer is changed from zero to nonzero, after the controller detects the connection, A/D conversion is carried out, the obtained voltage value is compared with 5V, and then the Y-axis coordinate of the touch point can be obtained, and the X-axis coordinate can be obtained in the same way.
The resistive touch screen may affect the property of the plastic panel due to external environmental factors (such as strong sunlight, high humidity environment, corrosive air, and the like), which causes the sending change of the resistance value of the measuring resistor, and thus causes the physical coordinate of the tested touch point to change, i.e., the phenomenon of touch drift.
Touch drift is caused because the resistance components of the resistive screen are prone to resistance change, but when the touch drifts, the underlying system can still recognize the occurrence of the touch event and can feed back the touch event to the application program.
The invention provides a touch screen calibration method. Calibration can be performed without power-off restart, and whether touch drift occurs or not can be automatically detected. The method is particularly suitable for industrial control resistance touch screens. Preferably, a separate thread is started for performing the touch screen calibration method.
Fig. 1 is a schematic method diagram of an embodiment of a touch screen calibration method provided by the present invention.
As shown in fig. 1, according to an embodiment of the present invention, the method includes at least step S110, step S120, step S130, and step S140.
Step S110, detecting whether a touch event occurs on the touch screen within a first preset time.
Specifically, after the touch screen is powered on or after a touch event occurs on the touch screen, whether the touch event occurs on the touch screen within a first preset time is detected. For example, the industrial control screen touch screen is powered on to complete function construction (i.e., the program completes initialization), and an independent thread is started for executing touch screen calibration. When the touch panel of the industrial control screen is clicked, the application can read the value of the touch coordinate X, Y. And the independent thread is used, so that the normal operation of the application program is not influenced when the query function is executed. More specifically, after the touch screen is powered on or a touch event occurs on the touch screen, a timer T1 is started, for example, T1 is 180s, and it is determined whether a touch event occurs on the touch screen within time T1.
Step S120, if it is detected that no touch event occurs on the touch screen within a first preset time, displaying a preset touch button, and detecting whether a touch event occurs on the touch screen.
Specifically, if it is detected that no touch event occurs on the touch screen within a first preset time, displaying a preset touch button, and after displaying the preset unlocking button, detecting whether a touch event occurs on the touch screen. Preferably, if it is detected that no touch event occurs on the touch screen within a first preset time, displaying a main interface of the touch screen, and displaying the preset touch button on the main interface, that is, entering a touch drift detection mode. More preferably, when the preset touch button is displayed, first prompt information for performing touch operation on the preset touch button is displayed. Namely, the prompt is used for carrying out touch operation on the preset touch button. More preferably, when the preset touch button is displayed, the display of other touch buttons on the current interface except for the preset touch button is shielded.
The preset touch button is configured to allow a user (user) to touch (e.g., click) the preset touch button before operating the touch screen to determine whether a touch drift occurs. If the touch drift does not occur, the touch screen can be continuously operated. The preset touch button may be specifically an unlock button. For example, if a touch event on the touch screen is detected within the time of T1, the current interface continues to be displayed, and the timer T1 is cleared. If no touch event is detected to be generated on the touch screen within the time T1, the timer T1 is turned off, the main interface is displayed, other interfaces are turned off, the display of other buttons of the main interface is shielded, an unlocking touch button and a reminding character R1 are displayed, and R1 is, for example, "operate the touch screen and click the unlocking button first". And after the unlocking button is displayed, detecting whether a touch event occurs on the touch screen.
Step S130, if it is detected that a touch event occurs on the touch screen, determining whether a touch drift occurs on the touch screen according to a touch coordinate of the touch event.
In a specific embodiment, if it is detected that a touch event occurs on the touch screen, whether a touch drift occurs on the touch screen is determined according to whether a touch coordinate of the touch event occurs in a preset area of the touch screen. Specifically, whether the touch coordinate of the touch event is in a preset area of the touch screen is judged; if the touch coordinate is in the preset area, determining that no touch drift occurs in the touch screen; and if the touch coordinate is not in the preset area, determining that touch drift occurs in the touch screen.
Specifically, the preset area is a preset touch area of the preset touch button. For example, the preset touch button is an unlock button, and the preset area is an unlock button area. If a touch event occurs, reading the value of the touch coordinate X, Y, and determining whether the touch coordinate is in an unlock button area (i.e., a preset area), if the touch coordinate is in the unlock button area, the unlock button and the prompt text disappear, and touch setting and other operations can be performed, and if the touch coordinate is not in the unlock button area, it is determined that touch drift occurs on the touch screen.
Step S140, if it is determined that the touch screen has touch drift, calibrating the touch screen.
In a specific embodiment, if it is determined that the touch screen has touch drift, displaying a second prompt message for entering calibration, and detecting whether a touch event occurs on the touch screen within a second preset time; and if the touch event on the touch screen is detected to occur within a second preset time, entering a preset calibration program to calibrate the touch screen.
For example, if the touch coordinate is not in the unlock button area, it is determined that a touch drift occurs on the touch screen, and a prompt text R2 is displayed, where R2 is, for example, "the touch screen may have touched the drift, please click an arbitrary position to enter calibration", and start a timer T2, for example, T2 is 10 s. And judging whether a touch event occurs within the time of T2, if the touch event does not occur, closing a timer T2, changing the prompt text into R1, if the touch event occurs, executing the next step, entering a calibration program, clicking a screen according to an interface prompt by a user, completing calibration, and automatically reloading the application program.
For clearly illustrating the technical solution of the present invention, the following describes an execution flow of the touch screen calibration method provided by the present invention with a specific embodiment.
Fig. 2 is a schematic diagram of a touch screen calibration method according to an embodiment of the present invention. As shown in fig. 2, the touch screen of the industrial control screen is powered on, the function construction is completed (i.e., the application program is loaded to complete the initialization), an independent thread is started for detecting the touch coordinates and executing the following operations, and when the touch panel of the industrial control screen is clicked, the application program can read the value of the touch coordinates X, Y. And the independent thread is used, so that the normal operation of the application program is not influenced when the query function is executed.
After the industrial control touch screen is powered on or after a touch event occurs, a timer T1 is started, and it is determined whether a touch event occurs within a time period T1, for example, T1 is 180 s. If the touch event occurs within the time T1, the timer T1 is cleared, and the current interface continues to be displayed. If the touch event is not generated within the time T1, the timer T1 is turned off, the main interface is displayed, other interfaces are turned off, the display of other buttons of the main interface is shielded, the unlocking touch button and the reminding text R1 are displayed, and R1 is, for example, "operate the touch screen and click the unlocking button first".
After the unlocking button is displayed, if a touch event occurs, reading the value of the touch coordinate X, Y, judging whether the touch coordinate is in the unlocking button coordinate area, if the touch coordinate is in the unlocking button coordinate area, the unlocking button and the reminding character disappear, touch setting and other operations can be carried out, if the touch coordinate is not in the unlocking button area, executing the next step, and displaying the reminding character R2 and R2, for example, that the touch screen may have touch drift, please click any position to enter calibration. The timer T2 is started, for example, T2 ═ 10 s.
And judging whether a touch event occurs within the time T2, if the touch event does not occur, closing a timer T2, displaying an unlocking button and prompt information R1 on the main interface, and if the touch event occurs, executing the next step. And entering a calibration program, clicking a screen by a user according to an interface prompt to finish calibration, and automatically reloading the application program.
The invention also provides a touch screen calibration device. The calibration can be carried out without power-off and restarting of the unit, and whether touch drift occurs or not can be automatically detected. The device is particularly suitable for industrial control resistance touch screens. Preferably, a separate thread is turned on for performing the function of the touch screen calibration means.
Fig. 3 is a block diagram of a touch screen calibration apparatus according to an embodiment of the present invention. As shown in fig. 3, the touch screen calibration apparatus 100 includes a detection unit 110, a display unit 120, a determination unit 130, and a calibration unit 140.
The detection unit 110 is configured to detect whether a touch event occurs on the touch screen within a first preset time.
Specifically, the detection unit 110 detects whether a touch event occurs on the touch screen within a first preset time after the touch screen is powered on or after a touch event occurs on the touch screen. For example, the industrial control screen touch screen is powered on to complete function construction (i.e., the program completes initialization), and an independent thread is started for executing touch screen calibration. When the touch panel of the industrial control screen is clicked, the application can read the value of the touch coordinate X, Y. The timer T is started, and the query function is called at regular time to read the touch coordinate X, Y value, for example, T is 0.5s, so that the resources of the memory of the controller can be saved on the premise of not affecting the operation experience by the regular query. And the independent thread is used, so that the normal operation of the application program is not influenced when the query function is executed. More specifically, after the touch screen is powered on or a touch event occurs on the touch screen, a timer T1 is started, for example, T1 is 180s, and it is determined whether a touch event occurs on the touch screen within time T1.
The display unit 120 is configured to display a preset touch button if the detection unit detects that no touch event occurs on the touch screen within a first preset time; the detection unit displays a preset touch button on the display unit to detect whether a touch event occurs on the touch screen.
Specifically, if the detecting unit 110 detects that no touch event occurs on the touch screen within a first preset time, a preset touch button is displayed, and after the preset unlocking button is displayed, whether a touch event occurs on the touch screen is detected. Preferably, if the detection unit 110 detects that no touch event occurs on the touch screen within a first preset time, the display unit 120 displays a main interface of the touch screen, and displays the preset touch button on the main interface, that is, enters a touch drift detection mode. More preferably, the display unit 120 displays first prompt information for performing touch operation on the preset touch button when the preset touch button is displayed. Namely, the prompt is used for carrying out touch operation on the preset touch button. More preferably, when the preset touch button is displayed, the display unit 120 masks the display of other touch buttons on the current interface except for the preset touch button.
The preset touch button is configured to allow a user (user) to touch (e.g., click) the preset touch button before operating the touch screen to determine whether a touch drift occurs. If the touch drift does not occur, the touch screen can be continuously operated. The preset touch button may be specifically an unlock button. For example, if a touch event on the touch screen is detected within the time of T1, the current interface continues to be displayed, and the timer T1 is cleared. If no touch event is detected to be generated on the touch screen within the time T1, the timer T1 is turned off, the main interface is displayed, other interfaces are turned off, the display of other buttons of the main interface is shielded, an unlocking touch button and a reminding character R1 are displayed, and R1 is, for example, "operate the touch screen and click the unlocking button first". And after the unlocking button is displayed, detecting whether a touch event occurs on the touch screen.
The determining unit 130 is configured to determine whether a touch drift occurs on the touch screen according to a touch coordinate of the touch event if the detecting unit 110 detects that the touch event occurs on the touch screen.
In one embodiment, if the detecting unit 110 detects that a touch event occurs on the touch screen, it determines whether a touch drift occurs on the touch screen according to whether a touch coordinate of the touch event occurs in a preset area of the touch screen. Specifically, whether the touch coordinate of the touch event is in a preset area of the touch screen is judged; if the touch coordinate is in the preset area, determining that no touch drift occurs in the touch screen; and if the touch coordinate is not in the preset area, determining that touch drift occurs in the touch screen.
Specifically, the preset area is a preset touch area of the preset touch button. For example, the preset touch button is an unlock button, and the preset area is an unlock button area. If a touch event occurs, reading the value of the touch coordinate X, Y, and determining whether the touch coordinate is in an unlock button area (i.e., a preset area), if the touch coordinate is in the unlock button area, the unlock button and the prompt text disappear, and touch setting and other operations can be performed, and if the touch coordinate is not in the unlock button area, it is determined that touch drift occurs on the touch screen.
The calibration unit 140 is configured to calibrate the touch screen if the determining unit 130 determines that the touch screen has touch drift.
In one embodiment, if the determining unit 130 determines that the touch screen has a touch drift, a second prompt message for entering calibration is displayed, and whether a touch event occurs on the touch screen is detected within a second preset time; and if the touch event on the touch screen is detected to occur within a second preset time, entering a preset calibration program to calibrate the touch screen.
For example, if the touch coordinate is not in the unlock button area, it is determined that a touch drift occurs on the touch screen, and a prompt text R2 is displayed, where R2 is, for example, "the touch screen may have touched the drift, please click an arbitrary position to enter calibration", and start a timer T2, for example, T2 is 10 s. And judging whether a touch event occurs within the time of T2, if the touch event does not occur, closing a timer T2, changing the prompt text into R1, if the touch event occurs, executing the next step, entering a calibration program, clicking a screen according to an interface prompt by a user, completing calibration, and automatically reloading the application program.
The invention also provides a storage medium corresponding to the method for protecting a magnetic bearing system, on which a computer program is stored which, when being executed by a processor, carries out the steps of any of the methods described above.
The invention also provides a bearing controller corresponding to the touch screen calibration method, which comprises a processor, a memory and a computer program stored in the memory and capable of running on the processor, wherein the processor executes the program to realize the steps of any one of the methods.
The invention also provides a bearing controller corresponding to the touch screen calibration device, which comprises any one of the touch screen calibration devices.
According to the scheme provided by the invention, the preset button is arranged on the touch screen interface, whether the touch screen has touch drift or not is judged according to whether the user clicks the touch screen to trigger the unlocking event or not and whether the touch coordinate meets the condition, and when the condition that the industrial control screen has touch drift is judged, the calibration is carried out. The method for calibrating the data center at a specific moment is not needed when the unit is powered off and restarted, whether touch drift occurs or not is automatically detected, and a user is prompted how to calibrate the touch drift, so that the problem that the data center has high standard requirements on temperature and humidity environments is solved, and the damage to equipment caused by fluctuation of the temperature and humidity of the data center is prevented.
The functions described herein may be implemented in hardware, software executed by a processor, firmware, or any combination thereof. If implemented in software executed by a processor, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Other examples and implementations are within the scope and spirit of the invention and the following claims. For example, due to the nature of software, the functions described above may be implemented using software executed by a processor, hardware, firmware, hardwired, or a combination of any of these. In addition, each functional unit may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and the parts serving as the control device may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The above description is only an example of the present invention, and is not intended to limit the present invention, and it is obvious to those skilled in the art that various modifications and variations can be made in the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.
Claims (11)
1. A method of touch screen calibration, comprising:
detecting whether a touch event occurs on the touch screen within a first preset time;
if no touch event occurs on the touch screen within a first preset time, displaying a preset touch button, and detecting whether the touch event occurs on the touch screen;
if a touch event on the touch screen is detected to occur, judging whether touch drift occurs on the touch screen according to the touch coordinate of the occurring touch event;
and if the touch screen is judged to have touch drift, calibrating the touch screen.
2. The method of claim 1, further comprising:
if no touch event is detected to occur on the touch screen within a first preset time, displaying a main interface of the touch screen, and displaying the preset touch button on the main interface;
and/or the presence of a gas in the gas,
when the preset touch button is displayed, displaying first prompt information for performing touch operation on the preset touch button;
and/or the presence of a gas in the gas,
and shielding the display of other touch buttons except the preset touch button on the current interface when the preset touch button is displayed.
3. The method according to claim 1 or 2, wherein determining whether the touch screen has touch drift according to the touch coordinates of the touch event, comprises:
judging whether the touch coordinates of the generated touch event are in a preset area of the touch screen;
if the touch coordinate is in the preset area, determining that no touch drift occurs in the touch screen;
and if the touch coordinate is not in the preset area, determining that touch drift occurs in the touch screen.
4. The method of any of claims 1-3, wherein performing calibration of the touch screen comprises:
displaying second prompt information for entering calibration, and detecting whether a touch event occurs on the touch screen within second preset time;
and if the touch event on the touch screen is detected to occur within a second preset time, entering a preset calibration program to calibrate the touch screen.
5. The method of any of claims 1-4, wherein a separate thread is started for performing the touch screen calibration method.
6. A touch screen calibration device, comprising:
the detection unit is used for detecting whether a touch event occurs on the touch screen within a first preset time;
the display unit is used for displaying a preset touch button if the detection unit detects that no touch event occurs on the touch screen within a first preset time; the detection unit displays a preset touch button on the display unit to detect whether a touch event occurs on the touch screen;
the judging unit is used for judging whether touch drift occurs on the touch screen according to the touch coordinate of the touch event if the detecting unit detects that the touch event occurs on the touch screen;
and the calibration unit is used for calibrating the touch screen if the judgment unit judges that the touch screen has touch drift.
7. The apparatus of claim 6,
the display unit is further configured to: if the detection unit detects that no touch event occurs on the touch screen within a first preset time, displaying a main interface of the touch screen, and displaying the preset touch button on the main interface;
and/or the presence of a gas in the gas,
the display unit is further configured to: when the preset touch button is displayed, displaying first prompt information for performing touch operation on the preset touch button;
and/or the presence of a gas in the gas,
the display unit is further configured to: and shielding the display of other touch buttons except the preset touch button on the current interface when the preset touch button is displayed.
8. The apparatus according to claim 6 or 7, wherein the determining unit determines whether a touch drift occurs on the touch screen according to the touch coordinates of the touch event, and includes:
judging whether the touch coordinates of the generated touch event are in a preset area of the touch screen;
if the touch coordinate is in the preset area, determining that no touch drift occurs in the touch screen;
and if the touch coordinate is not in the preset area, determining that touch drift occurs in the touch screen.
9. The apparatus according to any one of claims 6 to 8, wherein the calibration unit performs calibration of the touch screen, including:
displaying second prompt information for entering calibration, and detecting whether a touch event occurs on the touch screen within second preset time;
and if the touch event on the touch screen is detected to occur within a second preset time, entering a preset calibration program to calibrate the touch screen.
10. A storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 5.
11. A touch screen comprising a processor, a memory, and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method of any one of claims 1 to 5 when executing the program or comprising the touch screen calibration device of any one of claims 6 to 9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111115114.7A CN113805731B (en) | 2021-09-23 | 2021-09-23 | Touch screen calibration method and device, storage medium and touch screen |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111115114.7A CN113805731B (en) | 2021-09-23 | 2021-09-23 | Touch screen calibration method and device, storage medium and touch screen |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113805731A true CN113805731A (en) | 2021-12-17 |
CN113805731B CN113805731B (en) | 2024-07-02 |
Family
ID=78940268
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111115114.7A Active CN113805731B (en) | 2021-09-23 | 2021-09-23 | Touch screen calibration method and device, storage medium and touch screen |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113805731B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6456952B1 (en) * | 2000-03-29 | 2002-09-24 | Ncr Coporation | System and method for touch screen environmental calibration |
CN101751179A (en) * | 2009-12-16 | 2010-06-23 | 深圳市汇顶科技有限公司 | Method and system for automatically calibrating sensitivity of touch detection, and touch control terminal |
CN101866230A (en) * | 2009-04-20 | 2010-10-20 | 纬创资通股份有限公司 | Program starting method, auxiliary correcting method as well as related device and computer device thereof |
CN102411448A (en) * | 2011-10-26 | 2012-04-11 | 苏州瀚瑞微电子有限公司 | Automatic calibration method for touch screens |
CN108363517A (en) * | 2018-04-20 | 2018-08-03 | 深圳市沃特沃德股份有限公司 | The triggering method and device of touch screen calibration |
CN110780771A (en) * | 2019-10-25 | 2020-02-11 | 深圳麦科田生物医疗技术有限公司 | Touch screen calibration method and related product |
-
2021
- 2021-09-23 CN CN202111115114.7A patent/CN113805731B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6456952B1 (en) * | 2000-03-29 | 2002-09-24 | Ncr Coporation | System and method for touch screen environmental calibration |
CN101866230A (en) * | 2009-04-20 | 2010-10-20 | 纬创资通股份有限公司 | Program starting method, auxiliary correcting method as well as related device and computer device thereof |
CN101751179A (en) * | 2009-12-16 | 2010-06-23 | 深圳市汇顶科技有限公司 | Method and system for automatically calibrating sensitivity of touch detection, and touch control terminal |
CN102411448A (en) * | 2011-10-26 | 2012-04-11 | 苏州瀚瑞微电子有限公司 | Automatic calibration method for touch screens |
CN108363517A (en) * | 2018-04-20 | 2018-08-03 | 深圳市沃特沃德股份有限公司 | The triggering method and device of touch screen calibration |
CN110780771A (en) * | 2019-10-25 | 2020-02-11 | 深圳麦科田生物医疗技术有限公司 | Touch screen calibration method and related product |
Also Published As
Publication number | Publication date |
---|---|
CN113805731B (en) | 2024-07-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11301127B2 (en) | Methods and apparatus for correcting input error in input apparatus | |
US9027153B2 (en) | Operating a computer with a touchscreen | |
EP1847915B1 (en) | Touch screen device and method of displaying and selecting menus thereof | |
US9891818B2 (en) | Adaptive touch-sensitive displays and methods | |
US9158400B2 (en) | Touch panel having virtual function button, method of manufacturing the same, and method of identifying touch conflict on the same | |
US20130154999A1 (en) | Multi-Surface Touch Sensor Device With User Action Detection | |
CN107102785B (en) | Capacitive sensing device and updating method of judgment baseline value thereof | |
JP2012150747A (en) | Touch panel device | |
TW201229849A (en) | Touch tracking across multiple touch screens | |
CN103376945B (en) | Information processor and control method thereof | |
JP2013229029A (en) | Mobile device and gesture determination method | |
EP2494431A1 (en) | Detection of gesture orientation on repositionable touch surface | |
JPH07306752A (en) | Touch panel input device | |
CN109614016B (en) | Touch identification method and device of capacitive touch screen and electronic equipment | |
JP2013242855A (en) | Film for touch panel, touch panel using the film, and stylus pen used with the film | |
CN107133002A (en) | A kind of information processing method and electronic equipment | |
KR101451534B1 (en) | Portable electronic device and method of controlling same | |
JP2010020658A (en) | Information terminal device and input control method thereof | |
CN113805731B (en) | Touch screen calibration method and device, storage medium and touch screen | |
EP3525076A1 (en) | Terminal and application switching method thereof | |
CN111414047B (en) | Touch screen control method, electronic device and storage medium | |
CN103135918A (en) | Unlocking method, portable electronic device, touch control detection device | |
CN107980116B (en) | Floating touch sensing method, floating touch sensing system and floating touch electronic equipment | |
TWI764734B (en) | Monitoring method | |
CN113220160A (en) | Touch control method and system for touch display equipment and readable storage medium |
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 |