CN113805731B - 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
- CN113805731B CN113805731B CN202111115114.7A CN202111115114A CN113805731B CN 113805731 B CN113805731 B CN 113805731B CN 202111115114 A CN202111115114 A CN 202111115114A CN 113805731 B CN113805731 B CN 113805731B
- Authority
- CN
- China
- Prior art keywords
- touch
- touch screen
- preset
- calibration
- screen
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 45
- 238000001514 detection method Methods 0.000 claims description 17
- 238000004590 computer program Methods 0.000 claims description 6
- 230000006870 function Effects 0.000 description 14
- 238000010586 diagram Methods 0.000 description 6
- 239000002131 composite material Substances 0.000 description 4
- 238000010276 construction Methods 0.000 description 4
- 229920003023 plastic Polymers 0.000 description 4
- 230000008878 coupling Effects 0.000 description 2
- 238000010168 coupling process Methods 0.000 description 2
- 238000005859 coupling reaction Methods 0.000 description 2
- 238000005516 engineering process Methods 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
- 230000008859 change Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 239000011248 coating agent Substances 0.000 description 1
- 238000000576 coating method Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 230000004927 fusion Effects 0.000 description 1
- 239000011521 glass Substances 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 229910044991 metal oxide Inorganic materials 0.000 description 1
- 150000004706 metal oxides Chemical class 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 239000000725 suspension Substances 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
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 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 the first preset time is detected, displaying a preset touch button, and detecting whether the touch event occurs on the touch screen; if the touch event is detected to occur on the touch screen, judging whether the touch drift occurs on the touch screen according to the touch coordinates of the occurred touch event; and if the touch screen is judged to have touch drift, calibrating the touch screen. According to the scheme, calibration can be performed under the condition that power-off restarting is not needed, and whether touch drift occurs or not can be automatically detected.
Description
Technical Field
The present invention relates to the field of control, and in particular, to a touch screen calibration method and apparatus, a storage medium, and a touch screen.
Background
With the development of the fusion of technologies such as cloud computing, mobile interconnection, internet of things and the like, the domestic market has unprecedented rise in enthusiasm for the construction of data centers. From the market of recent years, data centers may be said to bloom throughout. The touch screen has more application in the industries such as financial industry, telecommunication industry, IT, rail transit and the like, the work of the industrial control resistance touch screen is stable, the price is low, the anti-interference force is an indispensable part of an air conditioner of a data center machine room, and the phenomenon of touch drift easily occurs in the industrial control resistance touch screen.
Disclosure of Invention
The invention aims to overcome the defects of the related art, and provides a protection method, a protection device, a storage medium and a bearing controller of a magnetic suspension bearing system, so as to solve the problem that an industrial control resistance touch screen is easy to generate touch drift in the related art.
In one aspect, the invention provides a touch screen calibration method, which includes: 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 the first preset time is detected, displaying a preset touch button, and detecting whether the touch event occurs on the touch screen; if the touch event is detected to occur on the touch screen, judging whether the touch drift occurs on the touch screen according to the touch coordinates of the occurred 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 occurs on the touch screen within the first preset time is detected, 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, determining whether the touch screen has touch drift according to the touch coordinates of the touch event, including: judging whether the touch coordinates of the touch event are in a preset area of the touch screen; if the touch coordinate is in the preset area, determining that the touch drift of the touch screen does not occur; and if the touch coordinate is not in the preset area, determining that the touch screen has touch drift.
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 a second preset time; if the touch event is detected to occur on the touch screen within the second preset time, entering a preset calibration program, and calibrating the touch screen.
Optionally, a separate 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 is used for displaying 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 the touch screen has touch drift or not according to the touch coordinates 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 buttons on the main interface; and/or, 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 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.
Optionally, the determining unit determines whether the touch screen has touch drift according to the touch coordinates of the touch event, including: judging whether the touch coordinates of the touch event are in a preset area of the touch screen; if the touch coordinate is in the preset area, determining that the touch drift of the touch screen does not occur; and if the touch coordinate is not in the preset area, determining that the touch screen has touch drift.
Optionally, 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 a second preset time; if the touch event is detected to occur on the touch screen within the second preset time, entering a preset calibration program, and calibrating the touch screen.
In a further aspect the invention provides a storage medium having stored thereon a computer program which when executed by a processor performs the steps of any of the methods described above.
In a further aspect the invention provides 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 any of the methods described hereinbefore when the program is executed.
In yet another aspect, the present invention provides a touch screen, including any one of the foregoing touch screen calibration devices.
According to the technical scheme, a 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 and whether the touch coordinates meet the conditions, and when the fact that the touch drift of the industrial control screen occurs is judged to enter calibration. The method for entering calibration at a specific moment without restarting the machine set after power failure and automatically detecting whether touch drift occurs and prompting a user how to calibrate can prevent temperature and humidity fluctuation caused by restarting the industrial control touch screen after touch drift occurs, and avoid equipment damage caused by fluctuation of temperature and humidity of a data center.
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 do not constitute a limitation on 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 device 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 specific embodiments of the present invention and corresponding drawings. It will be apparent that the described embodiments are only some, but not all, embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise 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 main part of the resistive touch screen is a resistive film screen which is very matched with the surface of the display, and is a multi-layer composite film, wherein a glass or hard plastic flat plate is used as a base layer, the surface of the composite film is coated with a transparent metal oxide (ITO) conductive layer, an outer surface hardening treatment and a smooth scratch-proof plastic layer (the inner surface of the composite film is also coated with an ITO coating), and a plurality of tiny (about 1/1000 inch) transparent spacing points are arranged between the composite film and the transparent plastic layer to separate and insulate the two ITO conductive layers. When a finger touches the screen, two layers of conducting layers which are insulated from each other normally have a contact at the position of a touch point, and one of the conducting layers is connected with a 5V uniform voltage field in the Y-axis direction, so that the voltage of the detection layer is changed from zero to non-zero, after the controller detects the connection, A/D conversion is carried out, the obtained voltage value is compared with 5V, the Y-axis coordinate of the touch point can be obtained, and the X-axis coordinate is obtained in the same way.
The resistance touch screen may affect the properties of the plastic panel due to external environmental factors (such as strong sunlight, high humidity environment, corrosive air, etc.), so that the resistance value of the measurement resistor is changed, and the physical coordinates of the test touch point are changed, namely, the phenomenon of touch drift is caused.
The touch drift can be caused because the resistive element of the resistive screen is easy to generate resistive change, but when the touch drift occurs, the underlying system can still recognize the occurrence of a touch event and can feed back to an application program.
The invention provides a touch screen calibration method. Calibration can be entered without power-off restart and whether touch drift occurs is automatically detected. The method is particularly suitable for industrial control resistance touch screens. Preferably, a separate thread is started for executing the touch screen calibration method.
Fig. 1 is a schematic diagram of a touch screen calibration method according to an embodiment of the present invention.
As shown in fig. 1, the method at least includes step S110, step S120, step S130, and step S140 according to one embodiment of the present invention.
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 a touch event occurs on the touch screen, detecting whether a touch event occurs on the touch screen within a first preset time. For example, an industrial control screen touch screen power-up completes function construction (i.e., program completion initialization), and a separate thread is started for performing touch screen calibration. When the touch panel of the industrial control screen is clicked, the application program can read the value of the touch coordinate X, Y. The independent thread is used, and the normal operation of the application program is not affected when the query function is executed. More specifically, after the touch screen is powered on or after a touch event occurs on the touch screen, a timer T1 is started, for example t1=180 s, and whether a touch event occurs on the touch screen within the time T1 is determined.
Step S120, if it is detected that no touch event occurs on the touch screen within the first preset time, displaying a preset touch button, and detecting whether a touch event occurs on the touch screen.
Specifically, if 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 no touch event occurs on the touch screen within the 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. I.e. prompting the user to perform touch operation on the preset touch button. More preferably, when the preset touch button is displayed, the display of other touch buttons except the preset touch button on the current interface is shielded.
The function of setting the preset touch button is to allow a user to touch the button (e.g., click) before operating the touch screen to determine whether a touch drift occurs. If the touch drift does not occur, the touch screen can be operated continuously. The preset touch button may specifically be an unlocking button. For example, if it is detected that a touch event occurs on the touch screen within the time T1, the current interface is continuously displayed, and the timer T1 is emptied. If no touch event is generated on the touch screen within the time T1, closing the timer T1, displaying the main interface, closing other interfaces, shielding the display of other buttons of the main interface, and displaying the unlocking touch button and reminding words R1, wherein R1 is, for example, "the operation of the touch screen please click the unlocking button first". After the unlocking button is displayed, whether a touch event occurs on the touch screen is detected.
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 the touch coordinates of the touch event.
In a specific embodiment, if it is detected that a touch event occurs on the touch screen, whether the touch drift occurs on the touch screen is determined according to whether the touch coordinates of the touch event are within a preset area of the touch screen. Specifically, judging whether the touch coordinates of the touch event are in a preset area of the touch screen; if the touch coordinate is in the preset area, determining that the touch drift of the touch screen does not occur; and if the touch coordinate is not in the preset area, determining that the touch screen has touch drift.
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, the value of the touch coordinate X, Y is read, whether the touch coordinate is in an unlocking button area (namely a preset area) is judged, if the touch coordinate is in the unlocking button area, the unlocking button and reminding words disappear, touch setting and other operations can be performed, and if the touch coordinate is not in the unlocking button area, the touch drift of the touch screen is determined.
And step S140, if the touch screen is judged to have touch drift, calibrating the touch screen.
In a specific embodiment, if the touch screen is judged to have touch drift, displaying second prompt information for entering calibration, and detecting whether a touch event occurs on the touch screen within a second preset time; if the touch event is detected to occur on the touch screen within the second preset time, entering a preset calibration program, and calibrating the touch screen.
For example, if the touch coordinate is not in the unlock button area, it is determined that the touch screen has touch drift, and the reminding text R2 is displayed, where R2 is, for example, "the touch screen may have touch drift, please click any position to enter calibration", and a timer T2 is started, for example, t2=10s. Judging whether a touch event occurs in the time T2, if no touch event occurs, closing a timer T2, changing prompt characters into R1, if the touch event occurs, executing the next step, entering a calibration program, and completing calibration by clicking a screen according to an interface prompt by a user to automatically reload an application program.
In order to clearly illustrate the technical scheme of the invention, the execution flow of the touch screen calibration method provided by the invention is described in the following by 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 to complete the function construction (i.e. the loading application program completes the initialization), and an independent thread is started to detect the touch coordinates and execute the following operations, when the touch panel of the industrial control screen is clicked, the application program can read the values of the touch coordinates X, Y. The independent thread is used, and the normal operation of the application program is not affected when the query function is executed.
After the industrial control touch screen is powered on or a touch event occurs once, a timer T1 is started, and whether a touch event occurs in the time T1 is judged, for example, T1=180s. If a touch event occurs in the time T1, the timer T1 is cleared, and the current interface is continuously displayed. If no touch event is generated within the time T1, closing the timer T1, displaying the main interface, closing other interfaces, shielding the display of other buttons of the main interface, and displaying the unlocking touch button and the reminding text R1, wherein R1 is, for example, "operating the touch screen to click the unlocking button first".
After the unlocking button is displayed, if a touch event occurs, the value of the touch coordinate X, Y is read, whether the touch coordinate is in the unlocking button coordinate area is judged, if the touch coordinate is in the unlocking button coordinate area, the unlocking button and the reminding text disappear, touch setting and other operations can be performed, and if the touch coordinate is not in the unlocking button area, the next step is executed, and the reminding text R2 and R2 are displayed, for example, the touch screen possibly has touch drift, and the user clicks any position to enter calibration. The timer T2 is started, for example, t2=10s.
Judging whether a touch event occurs in the time T2, if no touch event occurs, closing the timer T2, displaying an unlocking button and prompt information R1 on the main interface, and executing the next step if the touch event occurs. And entering a calibration program, clicking a screen according to the interface prompt by a user, completing calibration, and automatically reloading the application program.
The invention further provides a touch screen calibration device. Calibration can be entered without restarting the machine set after power failure, 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 started for performing the functions of the touch screen calibration device.
Fig. 3 is a block diagram of a touch screen calibration device 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 judgment unit 130, and a calibration unit 140.
The detecting unit 110 is configured to detect whether a touch event occurs on the touch screen within a first preset time.
Specifically, the detecting 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, an industrial control screen touch screen power-up completes function construction (i.e., program completion initialization), and a separate thread is started for performing touch screen calibration. When the touch panel of the industrial control screen is clicked, the application program can read the value of the touch coordinate X, Y. And starting a timer T, and regularly calling a query function to read the touch coordinate X, Y values, for example, T=0.5 s, wherein the timer query can save the resources of the memory of the controller on the premise of not affecting the operation experience. The independent thread is used, and the normal operation of the application program is not affected when the query function is executed. More specifically, after the touch screen is powered on or after a touch event occurs on the touch screen, a timer T1 is started, for example t1=180 s, and whether a touch event occurs on the touch screen within the time T1 is determined.
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; and the detection unit is used for displaying a preset touch button on the display unit to detect whether a touch event occurs on the touch screen.
Specifically, if the detection unit 110 detects that no touch event occurs on the touch screen within the first preset time, a preset touch button is displayed, and after the preset unlock 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 the 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 the first prompt information for performing the touch operation on the preset touch button when displaying the preset touch button. I.e. prompting the user to perform touch operation on the preset touch button. More preferably, the display unit 120 masks the display of other touch buttons except the preset touch button on the current interface when the preset touch button is displayed.
The function of setting the preset touch button is to allow a user to touch the button (e.g., click) before operating the touch screen to determine whether a touch drift occurs. If the touch drift does not occur, the touch screen can be operated continuously. The preset touch button may specifically be an unlocking button. For example, if it is detected that a touch event occurs on the touch screen within the time T1, the current interface is continuously displayed, and the timer T1 is emptied. If no touch event is generated on the touch screen within the time T1, closing the timer T1, displaying the main interface, closing other interfaces, shielding the display of other buttons of the main interface, and displaying the unlocking touch button and reminding words R1, wherein R1 is, for example, "the operation of the touch screen please click the unlocking button first". After the unlocking button is displayed, whether a touch event occurs on the touch screen is detected.
The judging unit 130 is configured to judge whether a touch drift occurs on the touch screen according to the touch coordinates of the touch event if the detecting unit 110 detects that the touch event occurs on the touch screen.
In a specific embodiment, if the detection 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 the touch coordinate of the touch event is within a preset area of the touch screen. Specifically, judging whether the touch coordinates of the touch event are in a preset area of the touch screen; if the touch coordinate is in the preset area, determining that the touch drift of the touch screen does not occur; and if the touch coordinate is not in the preset area, determining that the touch screen has touch drift.
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, the value of the touch coordinate X, Y is read, whether the touch coordinate is in an unlocking button area (namely a preset area) is judged, if the touch coordinate is in the unlocking button area, the unlocking button and reminding words disappear, touch setting and other operations can be performed, and if the touch coordinate is not in the unlocking button area, the touch drift of the touch screen is determined.
The calibration unit 140 is configured to calibrate the touch screen if the judging unit 130 judges that the touch screen has touch drift.
In a specific embodiment, if the judging unit 130 judges 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; if the touch event is detected to occur on the touch screen within the second preset time, entering a preset calibration program, and calibrating the touch screen.
For example, if the touch coordinate is not in the unlock button area, it is determined that the touch screen has touch drift, and the reminding text R2 is displayed, where R2 is, for example, "the touch screen may have touch drift, please click any position to enter calibration", and a timer T2 is started, for example, t2=10s. Judging whether a touch event occurs in the time T2, if no touch event occurs, closing a timer T2, changing prompt characters into R1, if the touch event occurs, executing the next step, entering a calibration program, and completing calibration by clicking a screen according to an interface prompt by a user to automatically reload an application program.
The invention also provides a storage medium corresponding to the method of protecting a magnetic bearing system, having stored thereon a computer program which when executed by a processor performs 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 on 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 an unlocking event or not and whether the touch coordinates meet the conditions, and when the fact that the touch drift of the industrial control screen has occurred is judged, the industrial control screen enters calibration. The method for entering calibration at a specific moment is not needed by restarting the machine set after power failure, and the method can automatically detect whether touch drift occurs or not and prompt a user how to calibrate, so that the high-standard requirement of the data center on the temperature and humidity environment can be met, and the damage of 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 that is 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 appended 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 in one processing unit, each unit may exist alone physically, or two or more units may be integrated in one unit.
In the several embodiments provided in the present application, it should be understood that the disclosed technology may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, for example, may be a logic function division, and may be implemented in another manner, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate components may or may not be physically separate, and components as control devices may or may not be physical units, may be located in one place, or may be distributed over a plurality of units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a usb disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or 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, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.
Claims (15)
1. A method for calibrating a touch screen, 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 the first preset time is detected, displaying a preset touch button, and detecting whether the touch event occurs on the touch screen; shielding the display of other touch buttons except the preset touch button on the current interface when the preset touch button is displayed;
if the touch event is detected to occur on the touch screen, judging whether the touch drift occurs on the touch screen according to the touch coordinates of the occurred touch event;
and if the touch screen is judged to have touch drift, calibrating the touch screen.
2. The method as recited in claim 1, further comprising:
If no touch event occurs on the touch screen within the first preset time is detected, displaying a main interface of the touch screen, and displaying the preset touch button on the main interface;
And/or the number of the groups of groups,
And displaying first prompt information for performing touch operation on the preset touch button when the preset touch button is displayed.
3. The method according to claim 1 or 2, wherein determining whether the touch drift occurs in the touch screen according to the touch coordinates of the touch event occurs comprises:
judging whether the touch coordinates of the touch event are in a preset area of the touch screen;
If the touch coordinate is in the preset area, determining that the touch drift of the touch screen does not occur;
and if the touch coordinate is not in the preset area, determining that the touch screen has touch drift.
4. The method according to claim 1 or 2, 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 a second preset time;
if the touch event is detected to occur on the touch screen within the second preset time, entering a preset calibration program, and calibrating the touch screen.
5. A method according to claim 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 a second preset time;
if the touch event is detected to occur on the touch screen within the second preset time, entering a preset calibration program, and calibrating the touch screen.
6. The method of any of claims 1, 2, 5, wherein a separate thread is started for performing the touch screen calibration method.
7. A method according to claim 3, wherein a separate thread is started for performing the touch screen calibration method.
8. The method of claim 4, wherein a separate thread is started for performing the touch screen calibration method.
9. A touch screen calibration apparatus, 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 is used for displaying a preset touch button on the display unit to detect whether a touch event occurs on the touch screen; the display unit is further configured to: shielding the display of other touch buttons except the preset touch button on the current interface when the preset touch button is displayed;
the judging unit is used for judging whether the touch screen has touch drift or not according to the touch coordinates 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.
10. The apparatus of claim 9, wherein the device comprises a plurality of sensors,
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 buttons on the main interface;
And/or the number of the groups of groups,
The display unit is further configured to: and displaying first prompt information for performing touch operation on the preset touch button when the preset touch button is displayed.
11. The apparatus according to claim 9 or 10, wherein the judging unit judges whether or not the touch drift occurs in the touch screen according to the touch coordinates of the occurred touch event, comprising:
judging whether the touch coordinates of the touch event are in a preset area of the touch screen;
If the touch coordinate is in the preset area, determining that the touch drift of the touch screen does not occur;
and if the touch coordinate is not in the preset area, determining that the touch screen has touch drift.
12. The apparatus according to claim 9 or 10, wherein the calibration unit performs calibration of the touch screen, comprising:
Displaying second prompt information for entering calibration, and detecting whether a touch event occurs on the touch screen within a second preset time;
if the touch event is detected to occur on the touch screen within the second preset time, entering a preset calibration program, and calibrating the touch screen.
13. The apparatus of claim 11, wherein the calibration unit performs calibration of the touch screen, comprising:
Displaying second prompt information for entering calibration, and detecting whether a touch event occurs on the touch screen within a second preset time;
if the touch event is detected to occur on the touch screen within the second preset time, entering a preset calibration program, and calibrating the touch screen.
14. A storage medium having stored thereon a computer program which when executed by a processor performs the steps of the method of any of claims 1-8.
15. 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 8 when the program is executed, or comprising the touch screen calibration device of any one of claims 9 to 13.
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 CN113805731A (en) | 2021-12-17 |
CN113805731B true 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 (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101866230A (en) * | 2009-04-20 | 2010-10-20 | 纬创资通股份有限公司 | Program starting method, auxiliary correcting method as well as related device and computer device thereof |
Family Cites Families (5)
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 |
CN101751179B (en) * | 2009-12-16 | 2012-05-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 of touch screen |
CN108363517A (en) * | 2018-04-20 | 2018-08-03 | 深圳市沃特沃德股份有限公司 | The triggering method and device of touch screen calibration |
CN110780771B (en) * | 2019-10-25 | 2024-03-12 | 深圳麦科田生物医疗技术股份有限公司 | Touch screen calibration method and related products |
-
2021
- 2021-09-23 CN CN202111115114.7A patent/CN113805731B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101866230A (en) * | 2009-04-20 | 2010-10-20 | 纬创资通股份有限公司 | Program starting method, auxiliary correcting method as well as related device and computer device thereof |
Also Published As
Publication number | Publication date |
---|---|
CN113805731A (en) | 2021-12-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7209125B2 (en) | Method for driving a touch panel device | |
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 | |
US9027153B2 (en) | Operating a computer with a touchscreen | |
JP2012150747A (en) | Touch panel device | |
JP2010061598A (en) | Touch position detection method for touch panel | |
US20120256845A1 (en) | Verifying input to a touch-sensitive display screen according to timing of multiple signals | |
CN107102785B (en) | Capacitive sensing device and updating method of judgment baseline value thereof | |
US8624861B2 (en) | Method for determining touch point | |
US20150103045A1 (en) | Method and Apparatus for Testing Capacitive Touchscreen, and Mobile Terminal | |
CN106125984A (en) | The touch-control processing method of a kind of mobile terminal and mobile terminal | |
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 | |
CN108363507A (en) | Compensation method, device, electronic equipment and the storage medium of touchscreen dead region | |
CN104049786A (en) | Electronic device, system and correcting method capable of automatically correcting touch position | |
CN106791049A (en) | A kind of notification message processing method and terminal | |
CN113805731B (en) | Touch screen calibration method and device, storage medium and touch screen | |
CN103135918A (en) | Unlocking method, portable electronic device, touch control detection device | |
US10452262B2 (en) | Flexible display touch calibration | |
TWI764734B (en) | Monitoring method | |
US8599175B2 (en) | Input detection circuit, input detection method, input detection apparatus, and computer readable medium | |
CN106407945A (en) | Fingerprint identification method and mobile terminal | |
CN111414047B (en) | Touch screen control method, electronic device and storage medium | |
CN113220160A (en) | Touch control method and system for touch display equipment and readable storage medium | |
KR100480155B1 (en) | Driving method and apparatus of multi touch panel and multi touch panel device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant |