Touch screen calibration method, device, electronic device and storage medium
The reference value of the touch screen is determined and calibrated by the central processor, which solves the problem of false alarm points of the touch screen when the reference value is abnormal, and improves the interaction accuracy of electronic devices.
Patent Information
- Application Number
- CN201980099289.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-10-28
- Publication Date
- 2025-08-15
- Estimated Expiration
- 2039-10-28
AI Technical Summary
When the reference value of the electronic device is abnormal, false alarm points may be generated in the touchless position, resulting in interaction errors.
The central processor determines whether the touch coordinate point is in the invalid touch area. If so, a reference calibration command is sent to the touch screen processor, and the touch screen processor calibrates the reference value according to the instructions to avoid false alarm points.
Calibrate the reference value of the touch screen in a timely manner, avoid false alarm points in the invalid touch area, and improve the accuracy of touch screen interaction.
Smart Images

Figure CN114222962B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electronic devices, and more specifically, to a touch screen calibration method, device, electronic device, and storage medium. Background Art
[0002] With the development of science and technology, many electronic devices are provided with touch screens. Users can interact with the electronic devices by touching the touch screens to realize various functions of the electronic devices.
[0003] Typically, electronic devices with touch screens determine whether a touch is present based on a reference value of the touch screen and actual detection values. However, if the reference value of the electronic device is abnormal, a point may be reported even at a location on the touch screen that is not touched, i.e., a false positive point. Summary of the Invention
[0004] In view of the above problems, the present application proposes a touch screen calibration method, device, electronic device and storage medium to improve the above problems.
[0005] In a first aspect, an embodiment of the present application provides a touch screen calibration method, which is applied to an electronic device, wherein the electronic device includes a central processing unit and a touch screen processor electrically connected to the central processing unit, and the touch screen processor is used to report the touch coordinate points detected on the touch screen to the central processing unit. The method includes: the central processing unit receives the touch coordinate points reported by the touch screen processor, and the touch coordinate points are the coordinate points touched in the detected touch screen; the central processing unit determines whether there are touch coordinate points within the invalid touch area of the current user interface; if there are touch coordinate points within the invalid touch area of the current user interface, the central processing unit sends a benchmark calibration instruction to the touch screen processor, and the calibration instruction is used to instruct the touch screen processor to calibrate the benchmark value of the touch screen.
[0006] In a second aspect, an embodiment of the present application provides a touch screen calibration method, which is applied to an electronic device, wherein the electronic device includes a central processing unit and a touch screen processor electrically connected to the central processing unit. The method includes: the touch screen processor receives a benchmark calibration instruction from the central processing unit; the touch screen processor calibrates the benchmark value of the touch screen according to the benchmark calibration instruction.
[0007] In a third aspect, an embodiment of the present application provides a touch screen calibration device, which is applied to a central processor in an electronic device, wherein the electronic device includes a central processor and a touch screen processor electrically connected to the central processor, wherein the touch screen processor is used to report the touch coordinate points detected on the touch screen to the central processor, and the device includes: a receiving module, used to receive the touch coordinate points reported by the touch screen processor, wherein the touch coordinate points are the coordinate points touched on the detected touch screen; a judgment module, used to judge whether there are touch coordinate points within the invalid touch area of the current user interface; and an instruction sending module, used to send a benchmark calibration instruction to the touch screen processor if there are touch coordinate points within the invalid touch area of the current user interface, wherein the calibration instruction is used to instruct the touch screen processor to calibrate the benchmark value of the touch screen.
[0008] In a fourth aspect, an embodiment of the present application provides a touch screen calibration device, which is applied to a touch screen processor in an electronic device, wherein the electronic device includes a central processing unit and a touch screen processor electrically connected to the central processing unit, and the touch screen processor is used to report the touch coordinate points detected on the touch screen to the central processing unit. The device includes: an instruction receiving module for receiving a benchmark calibration instruction from the central processing unit; and a calibration module for calibrating the benchmark value of the touch screen according to the benchmark calibration instruction.
[0009] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising a central processing unit and a touch screen processor electrically connected to the central processing unit, the touch screen processor being used to report touch coordinate points detected on the touch screen to the central processing unit, the touch coordinate points being coordinate points detected to be touched within the touch screen; the central processing unit being used to receive touch coordinate points reported by the touch screen processor; the central processing unit being used to determine whether there are touch coordinate points within an invalid touch area of the current user interface; if there are touch coordinate points within the invalid touch area of the current user interface, the central processing unit sends a benchmark calibration instruction to the touch screen processor; the touch screen processor being used to calibrate the benchmark value of the touch screen according to the benchmark calibration instruction.
[0010] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, in which program code is stored, and the program code can be called by a processor to execute the above method.
[0011] The touch screen calibration method, device, electronic device and storage medium provided in the embodiments of the present application are such that if there is a touch coordinate point within the invalid touch area of the current user interface, the central processing unit sends a reference calibration instruction to the touch screen processor, and the touch screen processor calibrates the reference value of the touch screen according to the reference calibration instruction. If the reference value of the touch screen may be abnormal, calibration is performed in a timely manner to avoid further false alarm points. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0013] Figure 1 A structural block diagram of an electronic device provided in an embodiment of the present application is shown.
[0014] Figure 2 A flow chart of a touch screen calibration method provided in an embodiment of the present application is shown.
[0015] Figure 3a as well as Figure 3b Schematic diagrams of invalid touch areas in the user interface are shown respectively.
[0016] Figure 4 Another flow chart of the touch screen calibration method provided in an embodiment of the present application is shown.
[0017] Figure 5 Another flow chart of the touch screen calibration method provided in an embodiment of the present application is shown.
[0018] Figure 6 A schematic diagram showing the reference values of various coordinate points in a touch screen provided by an embodiment of the present application is shown.
[0019] Figure 7 A schematic diagram showing the detection values of various coordinate points in a touch screen provided by an embodiment of the present application is shown.
[0020] Figure 8 Another flow chart of the touch screen calibration method provided in an embodiment of the present application is shown.
[0021] Figure 9 A functional module diagram of a touch screen calibration device provided in an embodiment of the present application is shown.
[0022] Figure 10 Another functional module diagram of the touch screen calibration device provided in an embodiment of the present application is shown.
[0023] Figure 11 Another structural block diagram of an electronic device provided in an embodiment of the present application is shown.
[0024] Figure 12 It is a storage medium for storing or carrying program codes for implementing the touch screen calibration method according to an embodiment of the present application. DETAILED DESCRIPTION
[0025] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0026] In electronic devices such as mobile phones, tablets, game consoles, laptops, smart watches, etc. Figure 1 As shown, the electronic device 100 may include a central processing unit (CPU) 110 and a touch screen processor 120, and the CPU 110 and the touch screen processor 120 are electrically connected. The CPU 110 is the computing and control core of the operating system of the electronic device 100 and is the final execution unit for information processing and program execution. Figure 1 The touch screen processor 120 is electrically connected to the touch screen 130 of the electronic device 100, can detect touch signals in the touch screen 130, and report the touched coordinate points detected on the touch screen as touch coordinate points to the central processor.
[0027] Specifically, the touch screen processor can detect the electrical signals of each coordinate point in the touch screen by periodically scanning the touch screen, and use them as the detection values of each coordinate point to obtain the touch signals of each coordinate point in the touch screen. For example, if the touch screen is a capacitive touch screen, the touch screen processor can detect the capacitance value of the intersection of the horizontal electrode and the vertical electrode of the touch screen, and then collect the capacitance value of the coordinate point where the intersection of the horizontal electrode and the vertical electrode is located, and use the capacitance value as the detection value of the coordinate point. In the embodiment of the present application, the capacitive touch screen of a mobile phone is used as an example for explanation. It can be understood that the touch screen in the embodiment of the present application is not limited to capacitive touch screens, and other types of touch screens can also be used for the touch screen calibration method provided in the embodiment of the present application.
[0028] In addition, when the touch screen processor detects a touch coordinate point, it reports the touch coordinate point to the central processing unit. Specifically, the electronic device may store a reference value of the touch screen, such as in the form of a reference value table, including a reference value for each coordinate point in the touch screen, and the reference value of each coordinate point represents the detection value of the touch screen when there is no touch at that coordinate point. For example, for a capacitive touch screen, the reference value of a certain coordinate point represents the capacitance value of the capacitive touch screen when there is no touch at that coordinate point. After detecting the detection value of each coordinate point, the touch screen processor compares the detection value with the reference value. At each coordinate point, it is determined whether the difference between the detection value of the coordinate point and the reference value of the coordinate point exceeds a preset threshold. If it exceeds, it can be determined that there is a touch at the coordinate point, and the coordinate point is reported to the central processing unit as a touch coordinate point.
[0029] However, if the touchscreen's reference value is abnormal, and the abnormal reference value does not represent the actual detection value when the touchscreen is not touched, or the difference between the abnormal reference value and the actual detection value when the touchscreen is not touched is too large, exceeding a preset threshold, then the untouched coordinate point on the touchscreen may be identified as a touched coordinate point, resulting in an erroneous reporting of the touch coordinate point. For example, taking a coordinate point x on a capacitive touchscreen as an example, if the preset threshold is 100, when there is no touch, the actual capacitance value of coordinate point x is 0. Under normal reference values, the reference value of coordinate point x should be 0, or the difference between it and 0 is less than or equal to 100. However, if the reference value of coordinate point x is abnormal, for example, the reference value is 200. When there is no touch, the difference between the actual capacitance value 0 detected at coordinate point x and the reference value is 200, which is greater than the preset threshold of 100. The touchscreen processor recognizes that coordinate point x is touched and reports a touch at coordinate point x to the central processing unit. However, coordinate point x is actually not touched. Due to the abnormal reference value of coordinate point x, the touchscreen processor misidentifies and misreports the touch point. It can be understood that in this example, the units of the preset threshold, the reference value, and the actual capacitance value are the same.
[0030] Therefore, it is necessary to promptly detect whether the touch screen's baseline value is abnormal and update the baseline value in a timely manner to avoid misidentification of touch coordinate points and the resulting false reporting. Therefore, the embodiments of the present application provide a touch screen calibration method, device, electronic device, and storage medium. Since users generally do not touch the non-touch area of the user interface, if a touch coordinate point is identified in the non-touch area of the user interface, it is likely that the baseline value is abnormal, and the baseline value can be updated to avoid false reporting of the touch coordinate point. Figure 2 The flow chart of the touch screen calibration method provided by the embodiment of the present application is shown. Specifically, the touch screen calibration method is applied to a central processing unit and includes the following steps.
[0031] Step S110: The central processing unit receives the touch coordinate point reported by the touch screen processor. The touch coordinate point is the coordinate point detected to be touched on the touch screen.
[0032] When the touch screen processor detects a touched coordinate point, it can report the touched coordinate point as a touch coordinate point to the central processing unit. The central processing unit receives the touch coordinate point reported by the touch screen processor.
[0033] Step S120: The central processing unit determines whether there is a touch coordinate point within the invalid touch area of the current user interface.
[0034] A user interface may have an inactive touch area corresponding to the user interface. If a touch is received in this inactive touch area, no corresponding function will be displayed in the user interface, or the program corresponding to the user interface will not perform any action. In other words, if a user touches in this inactive touch area, the electronic device will not provide any feedback to the user.
[0035] In different user interfaces, the invalid touch area may be set differently. For example Figure 3a An invalid touch area 1011 in a user interface 101 is shown. Figure 3b FIG1 shows an invalid touch area 1021 in another user interface 102. The specific areas of the invalid touch area in the user interface are not limited in the embodiments of the present application and can be determined by the program developer corresponding to the user interface. For example, in a web page or certain text, the blank area is set as an invalid touch area and does not respond to user touch. If the blank area is different for different web pages or texts, then when the web page or text displayed on the display screen is different, that is, the displayed user interface is different, the invalid touch area may be different.
[0036] In addition, optionally, in an embodiment of the present application, in order to update the baseline value of the touch screen, a designated user interface may be stored in the electronic device. All touch areas in the designated user interface are set as invalid touch areas. In other words, when the designated user interface is displayed, the areas displayed on the display screen of the designated user interface are all set as invalid touch areas, so that the abnormal baseline value in the touch screen can be updated by displaying the designated user interface.
[0037] Optionally, when the designated user interface is displayed, a prompt message may be displayed correspondingly to remind the user not to touch.
[0038] Optionally, the specified user interface can be displayed at certain times when the user is temporarily not using the touch screen, such as when the electronic device is just turned on, when the electronic device is not interacting with the user, etc.
[0039] When the central processor receives the touch coordinate points reported by the touch screen processor, it can determine whether any of the reported touch coordinate points is within the invalid touch area of the user interface currently displayed on the electronic device.
[0040] Step S130: If a touch coordinate point is within the invalid touch area of the current user interface, the central processor sends a reference calibration instruction to the touch screen processor, wherein the calibration instruction is used to instruct the touch screen processor to calibrate the reference value of the touch screen.
[0041] If there is a touch coordinate point in the invalid touch area, since the user may not touch the invalid touch area, the touch coordinate point generated in the invalid touch area is likely to be a false alarm point caused by an abnormal baseline value. The central processing unit can send a baseline calibration instruction to the touch screen processor to control the touch screen processor to calibrate the baseline value of the touch screen.
[0042] In the embodiment of the present application, if the touch coordinate point in the invalid touch area is indeed caused by an abnormal reference value, the reference value of the touch screen can be calibrated in time, and the reference value calibration can avoid further false alarms caused by the abnormal reference value.
[0043] Figure 4 A touch screen calibration method applied to a touch screen processor in an embodiment of the present application is shown, which may include the following steps.
[0044] Step S210: the touch screen processor receives a reference calibration instruction from the central processing unit.
[0045] Step S220: the touch screen processor calibrates the reference value of the touch screen according to the reference calibration instruction.
[0046] The touch screen processor can receive the reference calibration instruction sent by the central processing unit and calibrate the reference value of the touch screen according to the reference calibration instruction to avoid misidentification of touch coordinate points due to reference abnormality.
[0047] The present application also provides a touch screen calibration method. The method includes interaction between a central processing unit and a touch screen processor. Specifically, Figure 5 As shown, the method includes:
[0048] Step S310: the touch screen processor reports the touch coordinate point detected on the touch screen to the central processor, where the touch coordinate point is the coordinate point detected to be touched on the touch screen.
[0049] Step S320: The central processor receives the touch coordinate points reported by the touch screen processor.
[0050] The touch screen processor is used to detect whether there is a touch in the touch screen processor. If there is a touch, the hand touch coordinate point is reported to the central processing unit.
[0051] Specifically, the touch screen processor can scan the touch screen at a set scanning interval, obtain detection values for each coordinate point on the touch screen, compare the detection value of each coordinate point with a reference value, and report the coordinate point where the difference between the detection value and the reference value is greater than a preset threshold as a touch coordinate point to the central processing unit. Specifically, the coordinate value of the touch coordinate point can be reported to the central processing unit. In response, the central processing unit can receive the touch coordinate point reported by the touch screen processor and determine whether a touch is present at the touch point.
[0052] For example Figure 6 A schematic diagram of a touch screen reference value is shown, where each square corresponds to a specific position on the touch screen, and the value in each square represents the reference value of the coordinate point where the square is located, for example Figure 6 The middle grid 103 can represent the base value of the coordinate point (1, 1) as 5; Figure 7 It shows the detection values of each coordinate point detected in the touch screen at a certain moment, for example Figure 7 The square 104 in the middle can represent the detection value of the coordinate point (10, 5) as 585. By comparison, the touch screen processor can determine Figure 7 If the difference between the detection value of each coordinate point in the grayed-out area and the reference value is greater than a preset threshold, each coordinate point in the grayed-out area is reported to the central processing unit as a touch coordinate point.
[0053] Step S330: The central processing unit determines whether there is a touch coordinate point within the invalid touch area of the current user interface.
[0054] Different user interfaces may have different invalid touch areas. Upon receiving the touch coordinates, the CPU may determine the invalid touch area of the current user interface.
[0055] The central processing unit can obtain the user interface currently displayed on the touch screen as the current user interface. As an embodiment, the user interface can have an effective touch area that does not overlap with an ineffective touch area. The effective touch area is the touch area of the user interface where a user can interact with the electronic device through touch. When the electronic device receives a user touch within the effective touch area, it will provide user-defined feedback and trigger a pre-defined function.
[0056] When developing the user interface, a correspondence between the user interface and the valid touch area can be set. The central processing unit can then obtain the correspondence between the current user interface and the valid touch area and determine the valid touch area corresponding to the current user interface. The correspondence between the user interface and the valid touch area can be included in the configuration data of the user interface. When the electronic device obtains the user interface for display, it correspondingly obtains the configuration data of the user interface. The central processing unit can then read the correspondence between the current user interface and the valid touch area from the configuration data.
[0057] In the touch area, the area other than the effective touch area is the invalid touch area, and the central processing unit can determine the touch area other than the effective touch area as the invalid touch area. Figure 3a As shown, the valid touch area corresponding to the current user interface is 1011, and the area outside 1011 can be determined as an invalid touch area.
[0058] As another embodiment, the current user interface setting may include an invalid touch area corresponding to the user interface. The electronic device can then obtain the correspondence between the current user interface and the invalid touch area, and obtain the invalid touch area corresponding to the current user interface. Specifically, the correspondence between the user interface and the invalid touch area can also be included in the configuration data of the user interface. When the electronic device obtains the user interface for display, it can correspondingly obtain the configuration data of the user interface. Thus, the central processing unit can read the correspondence between the current user interface and the valid touch area from the configuration data of the current user interface.
[0059] In an embodiment of the present application, the central processing unit determines the invalid touch area of the current user interface and determines the coordinate interval of the invalid touch area. Thus, upon receiving the touch coordinates reported by the touch screen processor, the central processing unit can determine whether any touch coordinates are within the invalid touch area of the current user interface. Specifically, the central processing unit can determine whether the coordinates of the received touch coordinates are within the coordinate interval of the invalid touch area.
[0060] The number of touch coordinate points received by the CPU can be one or more. For example, if the baseline value of one coordinate point on the touch screen is abnormal, a single touch coordinate point may be received. If a user touches the touch screen with a finger, multiple coordinate points within the finger touch area are reported to the CPU as touch coordinate points, and the CPU receives multiple reported touch coordinate points.
[0061] If the central processing unit receives a touch coordinate point, it can determine whether the touch coordinate point is within the invalid touch area. If it is within the invalid touch area, it can be determined that there is a touch coordinate point within the invalid touch area.
[0062] If the central processing unit receives multiple touch coordinate points, it can determine whether one or more touch coordinate points among the multiple touch coordinate points are within the invalid touch area. If any touch coordinate point is within the invalid touch area, it can be determined that the touch coordinate point is within the invalid touch area of the current user interface. Optionally, it can be determined in sequence whether the coordinates of each touch coordinate point are within the coordinate interval of the invalid touch area. If it is determined that the coordinates of a touch point are within the coordinate interval of the invalid touch area, it can be determined that the touch coordinate point is within the invalid touch area of the current user interface.
[0063] Step S340: If the touch coordinate point is within the invalid touch area of the current user interface, the central processor sends a reference calibration instruction to the touch screen processor.
[0064] Step S350: the touch screen processor calibrates the reference value of the touch screen according to the reference calibration instruction.
[0065] If a touch coordinate point is within the invalid touch area, it is possible that the touch screen's reference value is abnormal and needs to be calibrated. Therefore, the processor can send a reference calibration instruction to the touch screen processor.
[0066] In the first embodiment, since it is relatively simple to uniformly calibrate all reference values of the touch screen, the touch screen processor may calibrate the reference values of all coordinate points when receiving the reference calibration instruction.
[0067] Specifically, in this embodiment, the calibration method can be that the touch screen processor can update all the detection values currently detected in the touch screen to the reference value of the touch screen at the corresponding coordinate point. That is, when calibrating, the detection value of the same coordinate point is updated to the reference value, such as the detection value of the coordinate point (1, 1) is updated to the reference value of the coordinate point (1, 1), the detection value of the coordinate point (1, 2) is updated to the reference value of the coordinate point (1, 2), and so on for all the coordinate points in the touch screen. For example, all the detection values detected by the touch screen processor are as follows: Figure 7 As shown, in Figure 7 The displayed detection value is updated to the new reference value and stored.
[0068] If the reference value of a coordinate point is abnormal, when the detection value is updated to the reference value, the detection value and the reference value are equal, and no false alarm points will be generated. For example, Figure 6 In the reference value table shown, the reference value for coordinate point 103 is 5. However, if the actual detection value of this coordinate point is 205 when there is no touch, coordinate point 103 will be mistakenly reported as a touched coordinate point. After the detection value is updated to the reference value, the reference value of coordinate point 103 is updated to 205, which is equal to the actual detection value of this coordinate point when there is no touch, and it will no longer be recognized as a touched coordinate point and falsely reported.
[0069] The present application also provides a second embodiment based on the first embodiment. Since the probability of the effective touch area being touched by the user for interaction is high, if there is a touch coordinate point within the effective touch area, then the touch coordinate point is likely to be generated by the user's touch. In the first embodiment, if there is a touch coordinate point within the effective touch area, and the touch coordinate point is generated by the user's touch, after all detection values in the touch screen are updated to the reference values of the corresponding coordinate point, the location of the touch coordinate point will no longer report the user's touch, which may cause the user touch to be invalid.
[0070] Therefore, in the second embodiment, if the central processing unit receives multiple touch coordinate points, it can identify the touch coordinate points within the invalid touch area from the multiple touch coordinate points and update the detection value of the touch coordinate points within the invalid touch area to the reference value, without calibrating the reference value within the valid touch area. This ensures that if the reference value within the invalid touch area is abnormal or there is no touch, no point will be reported. It is understandable that when the detection value of a touch coordinate point is updated to the reference value, the detection value of the same coordinate point is also updated to the reference value.
[0071] Optionally, in this second embodiment, it is also possible to determine whether there is a touch coordinate point within the valid touch area of the current user interface. If there is a touch coordinate point within the valid touch area, the central processing unit can identify the touch coordinate point within the invalid touch area from multiple touch coordinate points and update the detection value of the touch coordinate point within the invalid touch area to the reference value. If there is no touch coordinate point within the valid touch area, the detection value of all coordinate points on the touch screen can be updated to the reference value of the corresponding coordinate point.
[0072] Optionally, in the second embodiment, if there is a touch coordinate point within the valid touch area, the central processing unit may send a suppression reporting instruction to the touch screen processor, instructing the touch screen processor to suppress reporting of the touch coordinate points within the invalid touch area. The suppression reporting instruction may include a coordinate interval of the invalid touch area, and upon receiving the suppression reporting instruction, the touch screen processor suppresses reporting of the touch coordinate points within the invalid touch area. Alternatively, the suppression reporting instruction may carry the coordinate values of the touch coordinate points within the invalid touch area, and upon receiving the suppression reporting instruction, the touch screen processor suppresses reporting of the coordinate points carried in the suppression reporting instruction.
[0073] Optionally, in a second embodiment, if there is a touch coordinate point in the valid touch area, when the central processing unit detects the presence of a touch coordinate point in the invalid touch area, the central processing unit continues to monitor whether there is a touch coordinate point in the valid touch area. When it is detected that there is no touch coordinate point in the valid touch area and the touch coordinate point in the invalid touch area continues to exist, the central processing unit may send a reference calibration instruction to the touch screen processor, the reference calibration instruction being used to instruct the touch screen processor to calibrate the detection values of all coordinate points to the reference values of the corresponding coordinate points.
[0074] Optionally, in an embodiment of the present application, in order to avoid the touch screen processor continuing to report touch points within the invalid touch area when the baseline value calibration has not yet been completed, the central processing unit can send a suppression reporting instruction to the touch screen processor when receiving the reported touch coordinate points, to instruct the touch screen processor to suppress the reporting of touch coordinate points within the invalid touch area.
[0075] If there are no touch coordinate points within the invalid touch area, that is, all invalid touch coordinate points are within the valid touch area, the baseline value update can be omitted and touch point reporting can be suppressed. The CPU can trigger the function corresponding to the touch based on the feedback settings for touch within the valid touch area to achieve interaction with the user. For example, if the current user interface is the display interface of a reading software, and a touch within the valid touch area can trigger a page turning operation, then the page turning operation will be executed when all received touch coordinate points are within the valid touch area.
[0076] In an embodiment of the present application, the touch screen processor reports the touch coordinate points within the touch screen to the central processing unit. Upon receiving the touch coordinate point report, the central processing unit controls the touch screen processor to calibrate the touch screen's reference value or suppress reporting of touch points within an invalid touch area, thereby achieving both calibration of abnormal reference values and avoiding reporting of no touch within the invalid touch area.
[0077] The present application also provides an embodiment, in which the touch screen calibration method incorporates a time factor for judgment. Specifically, if a false alarm point is generated by an abnormal reference value, if the reference value has not been calibrated, the false alarm point will always exist, that is, the touch coordinate point will always be reported. However, if the touch coordinate point in the invalid touch area is caused by a user's mistaken touch, and the user quickly cancels the touch, the touch coordinate point will last for a short time. In order to effectively update the abnormal reference value, the central processing unit can control the touch screen processor to calibrate the reference value when the duration of the touch coordinate point reaches a preset duration. For details, please refer to Figure 8 , the method comprising:
[0078] Step S410: the touch screen processor reports the touch coordinate points detected on the touch screen to the central processor.
[0079] Step S420: The central processor receives the touch coordinate points reported by the touch screen processor.
[0080] Step S430: The central processing unit determines whether there is a touch coordinate point within the invalid touch area of the current user interface.
[0081] The detailed description of steps S410 to S430 can be found in the aforementioned embodiments and will not be repeated here.
[0082] Step S440: If there is a touch coordinate point in the invalid touch area of the current user interface, the central processing unit counts the duration of each touch coordinate point in the invalid touch area.
[0083] Step S450: When the duration of the touch coordinate point reaches a preset duration, the central processor sends a reference calibration instruction to the touch screen processor.
[0084] To effectively distinguish between abnormal baseline values and accidental errors, the duration of touch coordinates within the invalid touch area can be counted. If the duration of a touch point's coordinates reaches a preset duration, it indicates that the baseline value may be abnormal and a baseline calibration can be performed. If the duration of a touch point's coordinates reaches a preset duration, it may be that the user has been touching the invalid touch area. This touch can be defined as a false touch and has no practical interactive significance. However, continuous reporting of points will generate unnecessary power consumption, so a baseline calibration can be performed to avoid continued reporting of points even when no touch is present.
[0085] In one embodiment, when counting the duration of each touch coordinate point in the invalid touch area, statistics can be performed for each touch coordinate point. When determining that a touch coordinate point is within the invalid touch area of the current user interface, a touch coordinate point within the invalid touch area is used as an example for illustration.
[0086] When it is determined that a touch coordinate point is within the invalid touch area of the current user interface, the timer starts and the existence of the touch coordinate point is continuously determined. Specifically, the existence of the touch coordinate point can be determined by determining whether the touch coordinate point is continuously reported by the touch screen processor. That is, if the touch screen processor scans the touch screen at a preset scanning interval, if the central processing unit receives continuous reports of the touch coordinate point at intervals of the scanning interval, it can be determined that the touch screen processor continuously reports the touch coordinate point. If the touch coordinate point disappears, the timer is reset. If the touch coordinate point continues to exist, the duration of the timer is used as the duration of the touch coordinate point.
[0087] In this embodiment, when the duration of a touch point reaches a preset duration, a reference calibration instruction may be sent to the touch screen processor. Optionally, the central processing unit may no longer continue to count the duration of each touch point.
[0088] In another embodiment, multiple adjacent touch coordinate points are clustered into a touch point cluster. If a touch point cluster exists within an invalid touch area, the duration of the touch point cluster as a whole can be counted. When the duration of a touch point cluster reaches a preset duration, it can be determined that any touch coordinate point within the touch point cluster has reached the preset duration, thereby reducing data processing.
[0089] If the duration of the touch coordinate point in the invalid touch area does not reach the preset duration, it may be an accidental touch by the user and no processing is required.
[0090] In an embodiment of the present application, when a touch point is continuously within the invalid touch area for a predetermined period of time, the central processing unit sends a reference calibration instruction to the touch screen processor. During this predetermined period of time, the user interface displayed by the electronic device may change. Since the invalid touch areas of different user interfaces are set separately, that is, the invalid touch areas of different user interfaces may be different, when a touch point is continuously within the predetermined period of time, the invalid touch area may have changed.
[0091] Therefore, optionally, in one embodiment of the present application, during the process of counting the duration of each touch coordinate point within the invalid touch area, it is monitored whether the current user interface has changed. When a change in the current user interface is detected, it is determined whether the touch coordinate point whose duration is being counted is still within the invalid touch area of the new current user interface. If it is not within the invalid touch area of the new current user interface, the duration of the touch coordinate point being counted is stopped; if it is within the invalid touch area of the new current user interface, the duration of the touch coordinate point being counted continues to be counted.
[0092] Optionally, in another embodiment provided by the present application, when the central processing unit determines that the duration of the touch coordinate point for which the duration of the statistics is being calculated has reached a preset duration, the central processing unit determines whether the user interface at the time of starting the statistics is consistent with the currently displayed user interface. If they are consistent, the central processing unit sends a reference calibration instruction to the touch screen processor; if they are inconsistent, the central processing unit determines whether the touch coordinate point for which the duration of the statistics is being calculated is within the invalid touch area of the current user interface. If so, the central processing unit sends the reference calibration instruction to the touch screen processor; if not, the central processing unit does not execute the step of sending the reference calibration instruction to the touch screen processor.
[0093] Optionally, in this embodiment, if the user interface at the start of statistics is inconsistent with the currently displayed user interface, and the duration of the touch coordinate point being counted reaches a preset duration, then statistics are continued to determine whether the duration of the touch coordinate point reaches a specified duration, where the specified duration is longer than the preset duration. If the specified duration is reached, it indicates that the touch coordinate point has been present for too long, and there may be a true baseline value abnormality, and the central processing unit sends a baseline calibration instruction to the touch screen processor.
[0094] Step S460: the touch screen processor calibrates the reference value of the touch screen according to the reference calibration instruction.
[0095] After receiving the reference calibration instruction sent by the central processing unit, the touch screen processor performs calibration according to the reference calibration instruction.
[0096] Optionally, if the reference calibration instruction does not carry a calibration value for a coordinate point, the currently detected value within the touch screen is updated to the reference value of the touch screen; if the reference calibration instruction carries a calibration value for a coordinate point, the calibration value is updated to the reference value of the corresponding coordinate point. The calibration value is the value carried in the reference coordinate instruction and is used to instruct the touch screen indicator to update the reference value of the corresponding coordinate point to.
[0097] In this embodiment, if the reference calibration instruction does not carry the calibration value of the coordinate point, calibration can be performed based on the most recently detected detection value, or in other words, the detection value currently detected within the touch screen is updated to the reference value of the touch screen. For details, please refer to the description in the above embodiment.
[0098] In addition, the touch coordinate point whose duration reaches the preset time may be the one that causes the benchmark anomaly or the false touch that needs to be shielded. Therefore, the central processing unit can obtain the touch coordinate point whose duration reaches the preset time. The touch coordinate point whose duration reaches the preset time is carried in the sent benchmark calibration instruction, which is used to instruct the touch screen processor to update the current detection value of the touch coordinate point whose duration reaches the preset time to the benchmark value. Correspondingly, in this embodiment, when the touch screen processor receives the benchmark calibration instruction carrying the coordinate value of the touch coordinate point, it can update the current detection value of the carried touch coordinate point to the benchmark value.
[0099] In this embodiment, the CPU counts the duration of the touch coordinate points in the invalid touch area, and the reference calibration instruction carries the touch coordinate points in the invalid touch area whose duration reaches a preset duration.
[0100] Additionally, the touchscreen's detection value may not stabilize to a constant value when no touch is applied, but may fluctuate. Therefore, in an embodiment of the present application, the reference value of a coordinate point can be updated based on the average value of the coordinate point's detection value over a preset time period, and this average value is included in the reference calibration instruction as a calibration value.
[0101] In one implementation, the touch screen processor may calibrate the reference values of all coordinate points.
[0102] Specifically, in this embodiment, the touch screen processor can report the detection values of all coordinate points within the touch screen to the central processing unit. Upon determining that a touch coordinate point has been within the wireless touch area for a predetermined duration, the central processing unit can obtain the average value of the detection values of each coordinate point within the preset duration. In other words, for each coordinate point within the touch screen, the average value of all detection values within the preset duration is calculated.
[0103] When the central processing unit sends a reference calibration instruction to the touch screen processor, the central processing unit may include the average value in the reference calibration instruction. Of course, the coordinate values of the corresponding coordinate points include the average value, for example, the average value of the coordinate point (1, 1), the average value of the coordinate point (1, 2), and so on. The reference calibration instruction is used to instruct the touch screen processor to update the average value of each coordinate point to the corresponding reference value.
[0104] In this embodiment, the average value carried in the baseline calibration instruction is defined as the calibration value. When the touch screen receives the baseline calibration instruction, it can determine the calibration value of the coordinate point carried in the baseline calibration instruction and update the calibration value as the baseline value of the corresponding coordinate point. In other words, the average value of each coordinate point carried in the baseline calibration instruction is updated as the baseline value of the corresponding coordinate point.
[0105] In another embodiment, only the touch coordinate points within the invalid touch area whose duration reaches a preset time period may be calibrated.
[0106] Specifically, in this embodiment, the touch screen processor can report the detection values of the touch coordinate points within the invalid touch area to the central processing unit. The central processing unit can obtain the average value of the detection values of each touch coordinate point whose duration reaches a preset time period within the preset time period. In other words, for each touch coordinate point whose duration reaches the preset time period, the average value of the detection values of the touch coordinate point within the preset time period can be calculated.
[0107] The benchmark calibration instruction sent carries the average value and each touch coordinate point whose duration reaches a preset time, that is, carries the coordinate value of the touch coordinate point and the average value of the coordinate value, which is used to instruct the touch screen processor to update the benchmark value of the touch coordinate point whose duration reaches a preset time to the average value.
[0108] In this embodiment, the average value carried in the benchmark calibration instruction is defined as the calibration value. When the touch screen receives the benchmark calibration instruction, it can determine that the benchmark calibration instruction carries the calibration value of the coordinate point and update the calibration value to the benchmark value of the corresponding coordinate point.
[0109] In the touch screen calibration method provided in the embodiment of the present application, the central processing unit sends a calibration instruction to the touch screen processor for calibration only when the duration of the touch coordinate point in the invalid touch area reaches a preset duration. Therefore, it is not necessary to calibrate the user's accidental touch in the invalid touch area, and it is more likely to calibrate the abnormal baseline value.
[0110] Furthermore, it is understood that even if the reference value within the invalid touch area is not abnormal, but the touch coordinate point is reported due to an accidental touch by the user, after the reference value corresponding to the touch coordinate point is updated, the reference value is actually updated from normal to abnormal. However, the next time the touch coordinate point is reported, the touch screen calibration method provided in the embodiment of the present application will update the reference value again so that each reference value can correctly represent the normal state of the touch screen when it is not touched.
[0111] The present application also provides a touch screen calibration device 500, which is applied to a central processing unit in an electronic device. Figure 9 The device 500 includes: a receiving module 510, used to receive the touch coordinate point reported by the touch screen processor, where the touch coordinate point is the coordinate point detected to be touched in the touch screen; a judgment module 520, used to judge whether there is a touch coordinate point within the invalid touch area of the current user interface; and an instruction sending module 530, used to send a reference calibration instruction to the touch screen processor if there is a touch coordinate point within the invalid touch area of the current user interface, where the calibration instruction is used to instruct the touch screen processor to calibrate the reference value of the touch screen.
[0112] Optionally, the device 500 may further include an area determination module, which is used by the central processor to determine an invalid touch area of the current user interface.
[0113] Optionally, the area determination module can be used to obtain the current user interface; determine the valid touch area corresponding to the current user interface based on the correspondence between the current user interface and the valid touch area; and determine the touch area outside the valid touch area as the invalid touch area.
[0114] Optionally, the device 500 may further include a timing module for counting the duration of each touch coordinate point in the invalid touch area. When the duration of a touch coordinate point reaches a preset duration, the instruction sending module 530 is used to send a reference calibration instruction to the touch screen processor.
[0115] Optionally, the timing module can be used to start timing when it is determined that a touch coordinate point is within the invalid touch area of the current user interface, and continuously determine whether the touch coordinate point continues to exist; if the touch coordinate point disappears, the timing is reset to zero; if the touch coordinate point continues to exist, the duration of the timing is used as the duration of the touch coordinate point.
[0116] Optionally, the device 500 may also include a calculation module for obtaining the average value of the detection values of each coordinate point in the touch screen within a preset time period; the instruction sending module 530 is used to carry the average value in the sent benchmark calibration instruction, and to instruct the touch screen processor to update the average value of each coordinate point to the corresponding benchmark value.
[0117] Optionally, the calculation module can also obtain the average value of the detection values of each touch coordinate point whose duration reaches a preset duration within a preset duration; the instruction sending module 530 is used to instruct the touch screen processor to update the baseline value of the touch coordinate point whose duration reaches a preset duration to the average value.
[0118] Optionally, it can also be used to obtain the touch coordinate point whose duration reaches a preset time; the touch coordinate point whose duration reaches the preset time is carried in the sent benchmark calibration instruction, which is used to instruct the touch screen processor to update the current detection value of the touch coordinate point whose duration reaches the preset time to the benchmark value.
[0119] Optionally, the device 500 may further include an area determination module for determining whether there is a touch coordinate point within the valid touch area of the current user interface, wherein the valid touch area does not overlap with the invalid touch area. If there is a touch coordinate point within the valid touch area, the instruction sending module 530 is configured to send a suppression reporting instruction to the touch screen processor, instructing the touch screen processor to suppress reporting of touch coordinate points within the invalid touch area. If there is no touch coordinate point within the valid touch area, the instruction sending module 530 is configured to send a reference calibration instruction to the touch screen processor.
[0120] Optionally, the receiving module 510 may be configured to, if there is a touch coordinate point in the valid touch area, continue to monitor whether there is a touch coordinate point in the valid touch area when a touch coordinate point is detected in the invalid touch area. When no touch coordinate point is detected in the valid touch area, the instruction sending module 530 may be configured to send a reference calibration instruction to the touch screen processor.
[0121] The embodiment of the present application also provides a touch screen calibration device 600, which is applied to a touch screen processor in an electronic device. Figure 10 As shown, the device 600 includes an instruction receiving module 610 for receiving a reference calibration instruction from the central processing unit; and a calibration module 620 for calibrating the reference value of the touch screen according to the reference calibration instruction.
[0122] Optionally, the device 600 may further include a reporting module configured to report the detected touch coordinate point to the central processor, where the touch coordinate point is a detected coordinate point touched within the touch screen.
[0123] Optionally, the calibration module 620 may be configured to update the detection value currently detected within the touch screen to a reference value of the touch screen.
[0124] Optionally, the calibration module 620 can be used to update the detection value currently detected in the touch screen to the reference value of the touch screen if the reference calibration instruction does not carry the calibration value of the coordinate point; if the reference calibration instruction carries the calibration value of the coordinate point, update the calibration value to the reference value of the corresponding coordinate point.
[0125] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0126] In several embodiments provided in this application, the coupling between modules may be electrical, mechanical or other forms of coupling.
[0127] In addition, the functional modules in the various embodiments of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into a single module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software functional modules. Various implementation methods in the embodiments of the present application can be implemented by corresponding modules, and the corresponding descriptions in the embodiments of the present application will not be repeated one by one.
[0128] Please refer to Figure 11, which shows a block diagram of the structure of an electronic device 700 provided in an embodiment of the present application. The electronic device 700 can be a smart device such as a mobile phone, tablet computer, laptop computer, game console, smart call watch, e-book, etc. The electronic device 700 can include a memory 710 and a processor 720. The memory 710 is coupled to the processor and stores instructions. When the instructions are executed by the processor 720, the processor performs the method described in one or more of the above embodiments.
[0129] The processor may include a central processing unit (CPU) and a touch screen processor. When the instructions stored in the CPU are executed, the CPU executes a method applied to the CPU. When the instructions stored in the touch screen processor are executed, the touch screen processor executes a method applied to the touch screen processor. For example, the CPU is used to receive touch coordinate points reported by the touch screen processor; the CPU is used to determine whether there are touch coordinate points within the invalid touch area of the current user interface; if there are touch coordinate points within the invalid touch area of the current user interface, the CPU sends a benchmark calibration instruction to the touch screen processor; the touch screen processor is used to calibrate the benchmark value of the touch screen according to the benchmark calibration instruction.
[0130] In addition, the number of memories of the touch screen processor may not be limited, for example, it may include a memory electrically connected to the central processing unit and a memory connected to the touch screen processor.
[0131] The processor 720 may include one or more processing cores. The processor 720 utilizes various interfaces and circuits to connect the various components within the electronic device 700. It executes various functions and processes data for the electronic device 700 by running or executing instructions, programs, code sets, or instruction sets stored in the memory 710, as well as accessing data stored in the memory 710. Optionally, the processor 720 may be implemented using at least one of the following hardware forms: a digital signal processing (DSP), a field-programmable gate array (FPGA), or a programmable logic array (PLA). The processor 720 may integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. The CPU primarily processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem handles wireless communications. It is understood that the modem may not be integrated into the processor 720 and may be implemented separately via a communication chip.
[0132] The memory 710 may include a random access memory (RAM) and may also include a read-only memory (ROM). The memory 710 may be used to store instructions, programs, codes, code sets or instruction sets, such as instructions or code sets for implementing the touch screen calibration method provided in an embodiment of the present application. The memory 710 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function, instructions for implementing each of the above-mentioned method embodiments, etc. The data storage area may also store data (such as a phone book, audio and video data, chat record data) created by the electronic device during use.
[0133] Please refer to Figure 12 , which shows a block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable storage medium 800 stores program code, which can be called by a processor to execute the method described in the above method embodiment.
[0134] The computer-readable storage medium 800 can be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read-Only Memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 800 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 800 has storage space for program code 810 for executing any of the method steps described above. These program codes can be read from or written to one or more computer program products. The program code 810 can be compressed, for example, in a suitable form.
[0135] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A touch screen calibration method, characterized in that: Applied to an electronic device, the electronic device includes a central processing unit and a touch screen processor electrically connected to the central processing unit, the touch screen processor is used to report the touch coordinate points detected on the touch screen to the central processing unit, the method includes: The central processor receives the touch coordinate point reported by the touch screen processor, where the touch coordinate point is the coordinate point detected to be touched on the touch screen; The central processing unit determines whether there is a touch coordinate point within an invalid touch area of the current user interface, wherein the invalid touch area corresponds to the user interface one by one; If a touch coordinate point is within the invalid touch area of the current user interface, the central processing unit counts the duration of each touch coordinate point within the invalid touch area; When the duration of the touch coordinate point being counted reaches a preset duration, determining whether the user interface when counting the duration begins is consistent with the currently displayed user interface; If they are consistent, the central processor sends a reference calibration instruction to the touch screen processor, where the calibration instruction is used to instruct the touch screen processor to calibrate the reference value of the touch screen; If they are inconsistent, continue to count whether the duration of the touch coordinate point reaches the specified duration, and the specified duration is longer than the preset duration; If the specified time is reached, the central processor sends a reference calibration instruction to the touch screen processor.
2. The method according to claim 1, characterized in that Before the central processor determines whether there is a touch coordinate point within the invalid touch area of the current user interface, the central processor also includes: determining the invalid touch area of the current user interface.
3. The method according to claim 2, characterized in that The central processing unit determines the invalid touch area of the current user interface, including: Get the current user interface; Determining the valid touch area corresponding to the current user interface according to the corresponding relationship between the current user interface and the valid touch area; A touch area outside the effective touch area is determined as the invalid touch area.
4. The method according to claim 1, wherein For each touch coordinate point in the invalid touch area, the central processor counts the duration of the touch coordinate point including: When it is determined that a touch coordinate point is within the invalid touch area of the current user interface, timing is started, and it is continuously determined whether the touch coordinate point persists; If the touch coordinate point disappears, the timer is reset; If the touch coordinate point persists, the measured duration is used as the duration of the touch coordinate point.
5. The method according to claim 1, wherein The method further comprises: The central processing unit obtains the average value of the detection values of each coordinate point in the touch screen within a preset time period; The average value is carried in the sent reference calibration instruction, and is used to instruct the touch screen processor to update the average value of each coordinate point to a corresponding reference value.
6. The method according to claim 1, characterized in that The method further comprises: The central processing unit obtains an average value of detection values of each touch coordinate point within a preset time period when the touch coordinate point lasts for a preset time period; The sent benchmark calibration instruction carries the average value and each touch coordinate point whose duration reaches a preset time, and is used to instruct the touch screen processor to update the benchmark value of the touch coordinate point whose duration reaches the preset time to the average value.
7. The method according to any one of claims 1 to 4, characterized in that The central processing unit sends a reference calibration instruction to the touch screen processor, including: The central processing unit obtains the touch coordinate point whose duration reaches a preset duration; The sent reference calibration instruction carries the touch coordinate point whose duration reaches the preset duration, and is used to instruct the touch screen processor to update the current detection value of the touch coordinate point whose duration reaches the preset duration to the reference value.
8. The method according to any one of claims 1 to 4, characterized in that Before the central processor sends the reference calibration instruction to the touch screen processor, the method further includes: Determine whether there is a touch coordinate point within the valid touch area of the current user interface, wherein the valid touch area does not overlap with the invalid touch area; If there is a touch coordinate point in the valid touch area, sending a reporting suppression instruction to the touch screen processor to instruct the touch screen processor to suppress reporting of the touch coordinate point in the invalid touch area; If there is no touch coordinate point within the effective touch area, the step of sending a reference calibration instruction to the touch screen processor is executed.
9. The method according to any one of claims 1 to 4, characterized in that The method further comprises: If there is a touch coordinate point in the valid touch area, the central processing unit continues to monitor whether there is a touch coordinate point in the valid touch area when detecting that there is a touch coordinate point in the invalid touch area; When it is detected that there is no touch coordinate point in the effective touch area, the central processing unit executes the step of sending a reference calibration instruction to the touch screen processor.
10. The method according to any one of claims 1 to 4, characterized in that The method further comprises: The central processing unit sends a reporting suppression instruction to the touch screen processor, which is used to instruct the touch screen processor to suppress reporting of touch coordinate points in the invalid touch area.
11. The method according to claim 1, wherein The touch screen is a capacitive touch screen, and the reference value is a capacitance value.
12. A touch screen calibration method, characterized in that: Applied to an electronic device, the electronic device includes a central processing unit and a touch screen processor electrically connected to the central processing unit, the method comprising: The touch screen processor receives a reference calibration instruction from the central processor, wherein the reference calibration instruction is sent by the central processor based on the following method: the central processor receives a touch coordinate point reported by the touch screen processor, wherein the touch coordinate point is a coordinate point detected to be touched in the touch screen; the central processor determines whether there is a touch coordinate point within an invalid touch area of the current user interface, wherein the invalid touch area corresponds to the user interface one-to-one; if there is a touch coordinate point within the invalid touch area of the current user interface, the central processor counts the duration of each touch coordinate point within the invalid touch area; when the duration of the touch coordinate point counted reaches a preset duration, the central processor determines whether the user interface when counting the duration is started is consistent with the currently displayed user interface; if they are consistent, the central processor sends a reference calibration instruction to the touch screen processor, wherein the calibration instruction is used to instruct the touch screen processor to calibrate the reference value of the touch screen; if they are inconsistent, the central processor continues to count whether the duration of the touch coordinate point reaches a specified duration, and the specified duration is longer than the preset duration; if the specified duration is reached, the central processor sends the reference calibration instruction to the touch screen processor; The touch screen processor calibrates the reference value of the touch screen according to the reference calibration instruction.
13. The method according to claim 12, characterized in that The method further comprises: The touch screen processor reports the detected touch coordinate point to the central processor, where the touch coordinate point is the detected coordinate point touched in the touch screen.
14. The method according to claim 12 or 13, characterized in that The calibrating the reference value of the touch screen includes: The detection value currently detected in the touch screen is updated to the reference value of the touch screen.
15. The method according to claim 12 or 13, characterized in that The calibrating the reference value of the touch screen includes: If the reference calibration instruction does not carry the calibration value of the coordinate point, updating the detection value in the currently detected touch screen to the reference value of the touch screen; If the reference calibration instruction carries a calibration value of a coordinate point, the calibration value is updated to the reference value of the corresponding coordinate point.
16. A touch screen calibration device, characterized in that: A central processing unit (CPU) for use in an electronic device, the electronic device comprising a CPU and a touch screen processor electrically connected to the CPU, the touch screen processor being configured to report touch coordinate points detected on the touch screen to the CPU, the device comprising: A receiving module, configured to receive a touch coordinate point reported by the touch screen processor, wherein the touch coordinate point is a coordinate point detected to be touched on the touch screen; a determination module, configured to determine whether a touch coordinate point is within an invalid touch area of the current user interface, wherein the invalid touch area corresponds to the user interface in a one-to-one manner; An instruction sending module is used to, if a touch coordinate point is within an invalid touch area of the current user interface, cause the central processing unit to count the duration of each touch coordinate point within the invalid touch area; when the duration of the touch coordinate point counted reaches a preset duration, determine whether the user interface when counting the duration is started is consistent with the currently displayed user interface; if they are consistent, send a benchmark calibration instruction to the touch screen processor, the calibration instruction is used to instruct the touch screen processor to calibrate the benchmark value of the touch screen; if they are inconsistent, continue to count whether the duration of the touch coordinate point reaches a specified duration, and the specified duration is longer than the preset duration; if it reaches the specified duration, the central processing unit sends a benchmark calibration instruction to the touch screen processor.
17. A touch screen calibration device, characterized in that: A touch screen processor for use in an electronic device, the electronic device comprising a central processing unit (CPU) and a touch screen processor electrically connected to the CPU, the touch screen processor being configured to report touch coordinate points detected on the touch screen to the CPU, the device comprising: an instruction receiving module, configured to receive a reference calibration instruction from the central processor, wherein the reference calibration instruction is sent by the central processor in the following manner: the central processor receives a touch coordinate point reported by the touch screen processor, the touch coordinate point being a detected touched coordinate point within the touch screen; the central processor determines whether a touch coordinate point is within an invalid touch area of the current user interface, wherein the invalid touch area corresponds to the user interface one-to-one; if a touch coordinate point is within the invalid touch area of the current user interface, the central processor counts the duration of each touch coordinate point within the invalid touch area; if the duration of the counted touch coordinate point reaches a preset duration, determining whether the user interface at the time of starting to count the duration is consistent with the currently displayed user interface; if they are consistent, the central processor sends a reference calibration instruction to the touch screen processor, the calibration instruction being used to instruct the touch screen processor to calibrate the reference value of the touch screen; if they are inconsistent, continuing to count whether the duration of the touch coordinate point reaches a specified duration, the specified duration being longer than the preset duration; if the specified duration is reached, the central processor sends a reference calibration instruction to the touch screen processor; The calibration module is configured to calibrate the reference value of the touch screen according to the reference calibration instruction.
18. An electronic device, characterized in that: It includes a central processing unit and a touch screen processor electrically connected to the central processing unit, The touch screen processor is used to report the touch coordinate point detected on the touch screen to the central processor, wherein the touch coordinate point is the coordinate point detected to be touched on the touch screen; The central processing unit is used to receive the touch coordinate points reported by the touch screen processor; The central processing unit is used to determine whether there is a touch coordinate point within an invalid touch area of the current user interface, wherein the invalid touch area corresponds to the user interface one by one; If a touch coordinate point is within the invalid touch area of the current user interface, the central processing unit counts the duration of each touch coordinate point within the invalid touch area; When the duration of the touch coordinate point being counted reaches a preset duration, determining whether the user interface when counting the duration begins is consistent with the currently displayed user interface; If they are consistent, the central processor sends a reference calibration instruction to the touch screen processor; If they are inconsistent, continue to count whether the duration of the touch coordinate point reaches the specified duration, and the specified duration is longer than the preset duration; If the specified time is reached, the central processor sends a reference calibration instruction to the touch screen processor; The touch screen processor is used to calibrate the reference value of the touch screen according to the reference calibration instruction.
19. A computer-readable storage medium, characterized in that The computer-readable storage medium stores program code, which can be called by a processor to execute the method according to any one of claims 1 to 15.
Citation Information
Patent Citations
Touch-control module, electronic equipment and pressure calibrating method
CN107390907A
Touch screen control method and device, and touch screen
CN108304091A
Touch screen recalibration device
CN201689402U