Touch screen correction method and readable storage medium
By reading the system management event database and executing the correction program, disabling and re-enabling the touch screen solves the problem of incorrect correspondence of the touch screen in the existing technology, realizes automatic correction, and improves user operation convenience and system stability. .
Patent Information
- Application Number
- CN202310341068.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-31
- Publication Date
- 2024-10-01
AI Technical Summary
When the user touches the touch screen on existing computer equipment that supports multi-touch screen drivers, the corresponding operation result is not displayed on the display screen or the cursor UI arrow is not displayed. The existing manual correction method is cumbersome and only applies to the boot process. Solve the error problem during future startup process, causing user inconvenience.
By reading the system management event database to determine the cursor corresponding error message, execute the correction process, disable multiple touch screens, wait for a period of time and then re-enable them, and load the device login file to set up the connection to ensure the correct correspondence between the touch screens.
It realizes automated touch screen correction, solves the problem of touch screen error correspondence that may occur during the boot process and future boot processes, and improves user operation convenience and system stability.
Smart Images

Figure CN118732973A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a calibration method and storage medium applied to a computer. Background Art
[0002] Existing computer devices that support multi-touch screen drivers may encounter problems such as the user touching the touch screen but the display screen does not display the corresponding operation results, or the UI arrow displayed by the cursor does not appear on the touched display screen. Although the Win10 operating system currently provides a display setting "calibrate screen for stylus or touch input" to manually click on the marked points on the display screen to correct this problem. However, manual clicking requires step-by-step operation in accordance with the screen prompts, which is very inconvenient. In addition, this correction is only applicable to solving the error problem that occurred during the current boot process. The computer may still have an error during a future boot process, causing inconvenience to the user. Summary of the invention
[0003] In view of this, the inventor proposes a touch screen calibration method. The touch screen calibration method is suitable for running on an operating system of a computer, and the computer is suitable for connecting multiple touch screens. The method includes: the computer reads a system management event database, and the system management event database is used to record a cursor corresponding error message; and when the computer determines that the cursor corresponding error message exists, the computer executes a calibration program, including: disabling the multiple touch screens; waiting for a first default time, re-enabling the multiple touch screens; waiting for the multiple touch screens to be re-enabled and then loading a device login file; and setting the connection between the computer and the multiple touch screens according to the device login file.
[0004] The inventor also proposes a readable storage medium for storing a program suitable for being executed by a computer. The computer executes the program to implement the touch screen calibration method. BRIEF DESCRIPTION OF THE DRAWINGS
[0005] Other features and effects of the present invention will be clearly presented in the embodiments with reference to the accompanying drawings, in which: Figure 1 It is a block diagram of a computer connected to multiple touch screens in normal operation; Figure 2 It is a block diagram of a computer connected to multiple touch screens in an abnormal operating state; Figure 3 It is an operation flow chart of a touch screen calibration method according to some embodiments; Figure 4 is a flowchart of the operation of the calibration procedure according to some embodiments; and Figure 5 The present invention is an operation flow chart of a touch screen calibration method according to other embodiments. DETAILED DESCRIPTION
[0006] Before the present invention is described in detail, it should be noted that similar elements are denoted by the same reference numerals in the following description.
[0007] Figure 1 This is a block diagram of a computer connected to multiple touch screens in normal operation. Please refer to Figure 1 The computer 3 includes a processor 31 and a memory 32 coupled to the processor 31. The computer 3 may be, but is not limited to, a personal computer, a laptop, a server, a tablet computer, or a mobile phone. The processor 31 may be, but is not limited to, a SoC chip, a central processing unit (CPU), a microcontroller unit (MCU), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or a logic circuit. The processor 31 is suitable for executing the touch screen calibration method. The memory 32 may be, but is not limited to, a flash memory or a read-only memory (ROM), such as an erasable programmable read-only memory (EPROM), a flash read-only memory (Flash ROM), an EEPROM or a FRU (Field-Replaceable Unit, FRU) EEPROM. The memory 32 is not limited to one or more and is suitable for storing an operating system (OS) program code and a touch screen calibration method program code. In some embodiments, the operating system adopts Microsoft Window operating system from Microsoft Corporation, but is not limited thereto.
[0008] The computer 3 is suitable for driving multiple touch screens, such as Figure 1In the embodiment shown, the computer 3 drives the touch screen 1 and the touch screen 2. The touch screen 1 includes a touch sensor 11 and a display screen 12, and the touch screen 2 includes a touch sensor 21 and a display screen 22. The touch screens 1 and 2 can be independent external devices or components integrated with the computer 3. For example, the computer 3 is a laptop computer including the touch screen 1, and the laptop computer can be additionally connected to at least one touch screen 2; or, the computer 3 is a host computer of a personal computer, and can be connected to more than two touch screens 1 and 2. The touch sensors 11 and 21 can be touch panels, and according to their operating principles, they can adopt capacitive, infrared, ultrasonic, resistive, electromagnetic or image sensing types, without limitation. The display screens 12 and 22 can be, but not limited to, liquid crystal display panels, micro LED display panels, organic light-emitting diode (OLED) display panels or plasma display panels. It should be understood that the connection mentioned in the present disclosure is not limited to direct connection or indirect connection (coupling via other elements), and is not limited to wired connection or wireless connection.
[0009] like Figure 1 As shown, when the user touches the touch screen 1, the touch sensor 11 detects the user's contact point on the panel and generates a touch sensing signal s11 to be transmitted to the processor 31. The processor 31 generates a corresponding control signal s12 to the display screen 12 of the touch screen 1 according to the touch sensing signal s11 to control the display state of the display screen 12. The cursor mentioned in the present disclosure refers to the positioning point on the display screen 12, 22 corresponding to the processor 31. In some embodiments, the positioning point is directly presented on the display screen 12, 22 in a visual manner, such as an arrow symbol or a flashing "|" symbol when a character is input; in other embodiments, the positioning point is not directly presented on the display screen 12, 22, but the processor 31 can determine the user's contact position on the touch screen 1, 2 through the positioning point and generate a corresponding control instruction. For example, when the user clicks the application symbol on the mobile phone, the processor 31 determines that the positioning point corresponds to the application on the display screen according to the touch sensing signal s11, and sends a control instruction to request the display screen 12 to display the login page of the application. Similarly, when the user touches the touch screen 2, the touch sensor 21 detects the user's contact point on the panel and generates a touch sensing signal s21 to be transmitted to the processor 31. The processor 31 generates a corresponding control signal s22 to the display screen 22 of the touch screen 2 according to the touch sensing signal s21 to control the display status of the display screen 22.
[0010] The computer 3 records the correspondence between the touch sensors 11, 21 and the display screens 12, 22 of the touch screens 1, 2 in the memory 32. Generally speaking, when the computer 3 is connected to a device (such as the touch screens 1, 2) for the first time, a registration file of the device is established to record the device. In this way, when the device is connected to the computer 3 again, the computer 3 can quickly match the corresponding driver according to the registration file and connect to the device. Taking Microsoft's Microsoft Window operating system as an example, the device information is recorded in the device registration file database (Windows Registry). Under normal operating conditions, the computer 3 sets the connection between the computer 3 and the multiple touch screens 1, 2 according to the above-mentioned correspondence. However, in some cases, the above-mentioned correspondence may fail.
[0011] Figure 2 This is a block diagram of a computer 3 connected to multiple touch screens in an abnormal operating state. Please refer to Figure 2 . In the abnormal operation state, when the user touches the touch screen 1, the touch sensor 11 detects the user's contact point on the panel and generates a touch sensing signal s11 to be transmitted to the processor 31. The processor 31 generates a corresponding control signal s22 to the display screen 22 of the touch screen 2 according to the touch sensing signal s11. In this way, when the user slides on the touch screen 1, the display screen 12 will not execute the corresponding instruction. One of the reasons for the aforementioned abnormal operation state is the time delay of the hardware setting. For example, in the use scenario where the computer 3 is connected to the touch screen 1 and the touch screen 2 at the same time, when the connection setting between the computer 3 and the touch sensor 11 is completed, the display screen 12 may not have entered the connectable state due to the driver or hardware activation problem. If the display screen 22 has completed standby at this time, the computer 3 may mistake the display screen 22 for the display screen 12, resulting in the aforementioned abnormal operation state.
[0012] Figure 3 This is an operation flow chart of a touch screen calibration method according to some embodiments. Please refer to Figure 3. After the computer 3 starts to execute the touch screen calibration method (step S11), it reads the system management event database (step S12). The system management event database is used to record the cursor corresponding error message. In some embodiments, the cursor corresponding error message can be the information that the cursor device cannot obtain the connected display device. In some embodiments, the cursor corresponding error message refers to the error message generated by the system when the aforementioned abnormal operation state occurs. In some embodiments, the cursor corresponding error message refers to the error message generated by the system when the computer 3 detects the touch screen 1 but fails to detect the display screen 12 of the touch screen 1. Taking Microsoft's Microsoft Window operating system as an example, the cursor corresponding error message can be presented through the summary of administrative events interface of the event viewer (Windows Event Viewer). The event identifier (Event ID) of the cursor corresponding error message is 263, and the event content is "A pointer device has no information about the monitor it is attached to.". The computer 3 determines whether the cursor corresponding error message exists based on the error event accessed from the system management event database (step S13). When the computer 3 determines that the cursor corresponding error message does not exist (step S13, the judgment result is "no"), it continues to execute other processing procedures (step S15) and ends the touch screen calibration method; when the computer 3 determines that the cursor corresponding error message exists (step S13, the judgment result is "yes"), it executes the calibration procedure (step S14). In some embodiments, the touch screen calibration method can be applied to the automatic execution program at startup. Therefore, after the computer 3 enters the operating system program, the touch screen calibration method included in the automatic execution program at startup is automatically executed. In this way, the problem that the existing calibration method sometimes fails during the boot process is solved. In other embodiments, the touch screen calibration method can also be applied to applications that are triggered and run by the user.
[0013] Figure 4 This is a flowchart of the calibration procedure according to some embodiments. Please refer to Figure 4 When the computer 3 executes the calibration procedure, the computer 3 disables the multiple touch screens 1, 2 connected to the computer 3 (step S241). Thus, the connection between the computer 3 and the multiple touch screens 1, 2 is interrupted during the boot process. Figure 2For example, the correspondence between the touch sensor 11 and the display screen 22 is interrupted. The disabling can be achieved by cutting off the power supply of the touch screen 1, 2, or by the enable control line (EN) of the touch screen 1, 2. The computer 3 waits for a first default time after disabling the touch screen 1, 2 (step S242). The first default time needs to take into account the time required to complete the complete shutdown of each touch screen 1, 2. The applicant found during the test that the first default time of more than 5 seconds is sufficient to complete the disabling of the touch screen 1, 2.
[0014] Afterwards, the computer 3 re-enables the multiple touch screens 1, 2 connected to the computer 3 (step S243). The enabling can be achieved by providing power to the touch screens 1, 2, or by enabling control lines (EN) of the touch screens 1, 2. After re-enabling the touch screens 1, 2 (step S243), the computer 3 waits for the touch screens 1, 2 to be turned on again (step S244).
[0015] In the step of waiting for the touch screens 1 and 2 to be turned on again (step S244), in some embodiments, the computer 3 waits for a second default time after re-enabling the touch screens 1 and 2 (step S243) to ensure that each touch screen 1 and 2 is fully turned on (step S244). In other embodiments, the touch screens 1 and 2 each include a pin to be tested, and the potential state of the pin to be tested changes after the touch screens 1 and 2 are turned on. For example, after the touch screens 1 and 2 are turned on, the pin to be tested changes from a low potential to a high potential. Therefore, the computer 3 reads the state of the pin to be tested of the touch screens 1 and 2 respectively to determine whether the touch screens 1 and 2 are both fully turned on. In this embodiment, when the computer 3 determines that the multiple touch screens 1, 2 are all turned on, the computer 3 loads the device registration file (step S245) to confirm the corresponding relationship between the touch sensors 11, 21 and the display screens 12, 22 of each touch screen 1, 2, and then sets the connection between the computer 3 and the multiple touch screens 1, 2 according to the device registration file (step S246); when the computer 3 determines that any touch screen 1, 2 is not turned on, steps S241 to S244 are re-executed. In other embodiments, the computer 3 runs the driver program of the touch screens 1, 2, and when the driver program has detected all the touch screens 1, 2, it is determined that the multiple touch screens 1, 2 are all turned on; when the computer 3 determines that any touch screen 1, 2 is not turned on, steps S241 to S244 are re-executed.
[0016] The device log file is used to record the connection relationship between the touch sensors 11, 21 and the display screens 12, 22 of the touch screens 1, 2. In some embodiments, when the touch screens 1, 2 are connected to the computer 3 for the first time, the touch sensors 11, 21 and the display screens 12, 22 of the connected touch screens 1, 2 are recorded in the device log file. Since the device log files are established one by one after the touch screens 1, 2 are connected to the computer 3 for the first time (for example, after completing the driving of the touch screen 1, then executing the driving of the touch screen 2), the problem of incorrect correspondence between the touch sensors 11, 21 and the display screens 12, 22 will not occur. Taking Microsoft's Microsoft Window operating system as an example, the device log file is recorded in the device log file database (Windows Registry), and the user can view and edit the device record through the registry editor (Registry Editor). Therefore, in some embodiments, the device log file can also be edited by the user to establish the correspondence between the touch sensors 11, 21 and the display screens 12, 22.
[0017] Figure 5 This is an operation flow chart of a touch screen calibration method according to other embodiments. Please refer to Figure 5 . Figure 5 Examples and Figure 3 The main difference between the embodiments of the present invention lies in step S36. After the computer 3 starts to execute the touch screen calibration method (step S31), it first determines whether there are multiple touch screens connected to the computer 3 (step S36). When the computer 3 determines that the touch screen 1 connected to the computer 3 is single (step S36, the judgment result is "no"), it continues to execute other processing procedures (step S35) and ends the touch screen calibration method; when the computer 3 determines that there are multiple touch screens 1, 2 connected to the computer 3 (step S36, the judgment result is "yes"), it executes steps S32 to S35. Because a single touch screen 1 will not have the abnormal operating state of the aforementioned touch sensor 11 and the display screen 12 corresponding error, the subsequent procedures can be skipped to save computing resources. The implementation of steps S32 to S35 can be set with reference to the aforementioned steps S12 to S15.
[0018] In some embodiments, a readable storage medium can be used to store a program, and when the program is executed by the computer 3, the steps of the touch screen calibration method disclosed in any embodiment of the present invention are implemented. The readable storage medium can be, but is not limited to, a phase-change memory (PRAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a mobile hard disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a read-only memory (CD-ROM), a digital versatile video disc (DVD), a disk, a tape, a USB flash drive, a hard disk, a memory card, or a cloud storage space. In some embodiments, the program is stored in a readable storage medium as an independent software product. The user can obtain and install the program through a receiving device (such as an optical drive, a connection port, or a network interface) of the computer 3. In some embodiments, the program is used as a part of the operating system. In some embodiments, the program is stored in the memory 32 of the computer 3 to implement the touch screen calibration method through the computer 3.
[0019] In summary, the touch screen calibration method disclosed in the present invention reads the system management event database and determines whether there is a cursor correspondence error message in the system management event database. When the cursor correspondence error message exists, the calibration program is executed. In this way, even if the touch sensors 11, 21 and display screens 12, 22 of multiple touch screens 1, 2 have correspondence errors during the boot process of the computer 3, they can still be identified and corrected. In some embodiments, the touch screen calibration method is implemented in the automatic execution program during boot. In this way, the computer 3 automatically identifies and corrects the incorrect correspondence of the touch screens 1, 2 during the boot process.
[0020] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A touch screen calibration method, suitable for running on an operating system of a computer, the computer being suitable for connecting multiple touch screens, characterized in that: The method includes: The computer reads a system management event database, which is used to record a cursor corresponding error message; and When the computer determines that the cursor corresponding error message exists, the computer executes a correction procedure, including: disabling the multiple touch screens; After waiting for a first default time, the plurality of touch screens are re-enabled; Waiting for the multiple touch screens to be reactivated before loading a device log file; as well as The connection between the computer and the plurality of touch screens is set according to the device log file.
2. The touch screen calibration method according to claim 1, characterized in that: The cursor mapping error message includes information that the cursor device cannot know the connected display device.
3. The touch screen calibration method according to claim 1, characterized in that: The event ID of the error message corresponding to the cursor is 263.
4. The touch screen calibration method according to claim 1, characterized in that: The computer is suitable for recording the connected touch screen in the device log file when each of the plurality of touch screens is connected to the computer for the first time.
5. The touch screen calibration method according to claim 1, characterized in that: The computer is adapted to read the device registry from a device registry database (Windows Registry).
6. The touch screen calibration method according to claim 1, characterized in that: The operating system of the computer includes an event viewer (Windows Event Viewer) suitable for reading the system management event database to present the cursor corresponding error message.
7. The touch screen calibration method according to claim 1, characterized in that: After the computer reads the system management event database, the method further includes skipping the correction procedure when the computer determines that the cursor corresponding error message does not exist.
8. The touch screen calibration method according to claim 1, characterized in that: In the step of loading the device log file after waiting for the multiple touch screens to be reactivated, a second default time is waited to determine whether the multiple touch screens have been reactivated.
9. The touch screen calibration method according to claim 1, characterized in that: Each of the multiple touch screens includes a pin to be tested, and the pin to be tested of each touch screen changes its potential state after power-on. In the step of loading the device login file after waiting for the multiple touch screens to be reactivated, the computer executes the calibration program to read the pin to be tested of each touch screen to determine whether the multiple touch screens have been reactivated.
10. A readable storage medium for storing a program suitable for being executed by a computer, characterized in that: The computer executes the program to implement the touch screen calibration method described in any one of claims 1 to 9.
