A Method and Device for Anti-Interference of Industrial Touch Screens
By analyzing the distribution rules and characteristics of the position information collected by the touch screen, filtering out effective signals and filtering out interference signals, the problem of capacitive touch screens being easily caused by misoperation voltage is solved, and the anti-interference and operation reliability of the touch screen are improved.
Patent Information
- Application Number
- CN202110282358.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-16
- Publication Date
- 2025-06-27
- Estimated Expiration
- 2041-03-16
AI Technical Summary
Capacitive touch screens may cause charge movement when they are disturbed voltages, resulting in misoperation and other problems. How to improve the anti-interference of the touch screen has become a technical problem that needs to be solved urgently.
By obtaining multiple position information collected by the touch screen, analyzing their distribution rules and characteristics, filtering out user-triggered valid signals, filtering out interfering signals, and thus performing control operations corresponding to the valid signals.
Effectively filter and execute user-triggered effective signals, reduce the impact of interference signals, and improve the anti-interference and operation reliability of the touch screen.
Smart Images

Figure CN115079851B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the technical field of industrial automation, and particularly relates to a method, device, terminal device, and computer-readable storage medium for anti-interference of industrial touch screens. Background Art
[0002] A touch screen is an inductive liquid crystal display device that can receive input signals such as touches of a fingertip. When a user touches a graphic button on the screen, the tactile feedback system on the screen can drive various connecting devices according to a pre-programmed program, which can be used to replace a mechanical button panel and create vivid audio-visual effects through a liquid crystal display screen. Currently, common touch screens include capacitive touch screens or resistive touch screens, etc.
[0003] In the industrial automation scenario, due to a large amount of interference in the factory, the touch screen is often vulnerable to internal or external voltage interference. Taking the capacitive touch screen as an example: Capacitive touch screen technology works by using the current induction of the human body. When the capacitive touch screen is subjected to a certain interference voltage, it may cause the movement of charges inside the touch screen, resulting in interference operations and other situations.
[0004] Therefore, how to improve the anti-interference ability of the touch screen has become an urgent technical problem to be solved. Summary of the Invention
[0005] In view of this, the embodiments of this application provide a method, device, terminal device, and computer-readable storage medium for anti-interference of industrial touch screens, which can solve the technical problem that when the capacitive touch screen is subjected to a certain interference voltage, it may cause the movement of charges inside the touch screen, resulting in interference operations and other situations.
[0006] The first aspect of the embodiments of this application provides a method for anti-interference of industrial touch screens, and the method includes:
[0007] Obtain a plurality of position information collected by the touch screen; the position information refers to that the touch screen detects a touch signal and collects the coordinate information corresponding to the touch signal;
[0008] Obtain the distribution law between the plurality of position information; the distribution law is used to reflect the distribution density and distribution uniformity of the plurality of position information, and the distribution uniformity is used to measure the degree of uniformity of the distribution between the plurality of position information;
[0009] If the distribution law meets a first preset condition, obtain the distribution characteristics between the plurality of position information; the distribution characteristics refer to the characteristics of the distribution relationship between different position information;
[0010] If the distribution feature meets the second preset condition, perform the operation of the control corresponding to the location information.
[0011] The second aspect of the embodiments of the present application provides a device for anti-interference of an industrial touch screen. The device includes:
[0012] A first acquisition unit, configured to acquire a plurality of location information collected by the touch screen; the location information refers to the touch screen detecting a touch signal and acquiring the coordinate information corresponding to the touch signal;
[0013] A second acquisition unit, configured to acquire the distribution law between the plurality of location information; the distribution law is used to reflect the distribution density and distribution uniformity of the plurality of location information, and the distribution uniformity is used to measure the degree of uniformity of the distribution between the plurality of location information;
[0014] A first judgment unit, configured to, if the distribution law meets the first preset condition, acquire the distribution feature between the plurality of location information; the distribution feature refers to the feature of the distribution relationship between different location information;
[0015] A second judgment unit, configured to, if the distribution feature meets the second preset condition, perform the operation of the control corresponding to the location information.
[0016] The third aspect of the embodiments of the present application provides a terminal device, including a touch screen, a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the method described in the first aspect are implemented.
[0017] The fourth aspect of the embodiments of the present application provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method described in the first aspect are implemented.
[0018] The beneficial effects of the embodiments of the present application compared with the prior art are as follows: In the present application, a plurality of location information collected by the touch screen is acquired; the distribution law between the plurality of location information is acquired; if the distribution law meets the first preset condition, the distribution feature between the plurality of location information is acquired; if the distribution feature meets the second preset condition, the operation of the control corresponding to the location information is performed. Since the signals triggered by interference are often chaotic, while the signals triggered by the human body often have regularity, the present application analyzes the distribution law and distribution feature of the location information through the above solution, so as to screen the location information triggered by the effective signals triggered by the user according to the distribution law and distribution feature, and then filter out the location information triggered by the interference signals, and perform the operation of the control corresponding to the location information triggered by the effective signals, so as to achieve the anti-interference effect. Description of the Drawings
[0019] To more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the accompanying drawings required for use in the embodiments or the description of related technologies. Obviously, the accompanying drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other accompanying drawings can be obtained based on these drawings.
[0020] Figure 1 It shows a schematic flowchart of a method for anti-interference of an industrial touch screen provided by the present application;
[0021] Figure 2 It shows a specific schematic flowchart of step 102 in a method for anti-interference of an industrial touch screen provided by the present application;
[0022] Figure 3 It shows a schematic diagram of the distribution of position information provided by the present application;
[0023] Figure 4 It shows a specific schematic flowchart of step 1022 in a method for anti-interference of an industrial touch screen provided by the present application;
[0024] Figure 5 It shows a schematic diagram of the distribution of position information provided by the present application;
[0025] Figure 6 It shows a schematic diagram of the distribution of position information provided by the present application;
[0026] Figure 7 It shows a specific schematic flowchart of step 103 in a method for anti-interference of an industrial touch screen provided by the present application;
[0027] Figure 8 It shows a specific schematic flowchart of step 104 in a method for anti-interference of an industrial touch screen provided by the present application;
[0028] Figure 9 It shows a schematic flowchart of another method for anti-interference of an industrial touch screen provided by the present application;
[0029] Figure 10 It shows a schematic diagram of a device for anti-interference of an industrial touch screen provided by the present application;
[0030] Figure 11 It is a schematic diagram of a terminal device provided by an embodiment of the present invention. Specific Embodiments
[0031] In the following description, specific details such as specific system architectures and technologies are presented for the purpose of illustration rather than limitation, so as to thoroughly understand the embodiments of the present application. However, those skilled in the art should clearly understand that the present application can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid unnecessary details from interfering with the description of the present application.
[0032] The present application is applicable to various types of touch screens, such as: resistive touch screens, capacitive touch screens, piezoelectric touch screens, infrared touch screens, and surface acoustic wave touch screens.
[0033] Due to the differences in materials, processes, and technologies used in different types of touch screens, there are different types of interference sources in different types of touch screens. The technical solutions provided by the present application can be used for misoperations triggered by different types of interference sources. For better explanation of the technical solutions of the present application, the present application takes the capacitive touch screen as an example to explain the technical solutions of the present application.
[0034] Among them, the capacitive touch screen works by using the current induction of the human body. The capacitive touch screen is a four-layer composite glass screen. The inner surface and the interlayer of the glass screen are each coated with a layer of ITO (nanometer indium tin metal oxide). The outermost layer is a thin layer of silica glass protective layer. The interlayer ITO coating serves as the working surface, and four electrodes are led out from the four corners. The inner layer ITO is the shielding layer to ensure a good working environment. When a finger touches the metal layer, due to the human body electric field, a coupling capacitor is formed between the user and the touch screen surface. For high-frequency current, the capacitor is a direct conductor, so the finger draws away a very small current from the contact point. This current flows out from the electrodes at the four corners of the touch screen respectively, and the current flowing through these four electrodes is proportional to the distance from the finger to the four corners. The controller calculates the position information (i.e., the position of the touch point) accurately by calculating the ratio of these four currents.
[0035] However, due to the above electrical characteristics of the capacitive touch screen, internal or external interference voltages can be coupled into the touch screen through capacitance. These interference voltages may cause the movement of charges inside the touch screen, resulting in misoperations of the touch screen.
[0036] In view of this, the embodiments of the present application provide a method, device, terminal device, and computer-readable storage medium for anti-interference of industrial touch screens, which can solve the above technical problems.
[0037] Please refer to Figure 1 , Figure 1 which shows a schematic flowchart of a method for anti-interference of industrial touch screens provided by the present application.
[0038] As Figure 1As shown in the figure, the method may include the following steps:
[0039] Step 101: Obtain multiple location information collected by the touch screen; the location information refers to the touch screen detecting a touch signal and collecting the coordinate information corresponding to the touch signal.
[0040] It should be noted that there is a certain time interval between the touch screen detecting a touch signal and performing the operation corresponding to the touch signal. And this time interval is relatively short. Generally, the number of touch signals triggered by users is limited (due to the physiological limit of the human body, so within a very short time interval, the human body cannot trigger a large number of touch signals). If multiple coordinate information is collected within this time interval, the source of the triggered touch signal may be an interference source. Therefore, it is necessary to identify the multiple location information through the technical solution of this embodiment. That is, the node where the technical solution of this embodiment is executed is within this time interval.
[0041] As an optional embodiment of the present application, a number threshold may be preset (which can be set according to the limit click times of the human body within the above time interval), and it is determined whether the location information is triggered by the user according to the number threshold. That is, if the number of multiple location information is greater than the number threshold, steps 101 to 103 are executed. If the number of multiple location information is not greater than the number threshold, the multiple location information is used as a valid signal, and the corresponding operation of the valid signal is executed.
[0042] Step 102: Obtain the distribution law between the multiple location information; the distribution law is used to reflect the distribution density and distribution uniformity of the multiple location information, and the distribution uniformity is used to measure the degree of uniformity of the distribution between the multiple location information.
[0043] Since the controls displayed on the touch screen are often separated by a certain distance and are relatively fixed in position (for example: the close control of the page is often in the upper left corner or the upper right corner, and the return control is often in the lower right corner), when the user operates the touch screen, the generated location information often has a certain regularity and is relatively evenly distributed. However, the location information obtained by the interference source generating a trigger signal is often chaotic, dense and high-frequency, without regularity.
[0044] Therefore, based on the above considerations, this embodiment analyzes the distribution law between the multiple location information to distinguish the valid signal (the location information triggered by the user) and the invalid signal (the location information triggered by the interference source).
[0045] Among them, the distribution law includes, but is not limited to, information such as distribution density and distribution uniformity, which characterize the correlation between multiple location information. It can be understood that the distribution density is used to characterize the density of the distribution between multiple location information. The distribution uniformity is used to measure the degree of uniformity of the distribution between multiple location information. The above dimensions will be explained one by one through the following embodiments:
[0046] As an optional embodiment of the present application, step 102 includes the following steps 1031 to 1034. Please refer to Figure 2 , Figure 2 FIG. shows a specific schematic flowchart of step 102 in a method for anti-interference of an industrial touch screen provided by the present application.
[0047] Step 1021, obtain boundary points and / or center points among the multiple location information.
[0048] Since calculating the distribution density and distribution uniformity of multiple location information in the entire screen is easily affected by other blank areas, resulting in the distribution density and distribution uniformity being unable to better characterize the correlation between multiple location information. Therefore, in this embodiment, according to the distribution of multiple location information, the touch area where the multiple location information is located is obtained. To judge the distribution density and distribution uniformity of the multiple location information in the touch area.
[0049] The touch area can be obtained based on boundary points and / or center points. Among them, the boundary point refers to the outermost position information in a specified direction, and the center point refers to the position information at the central position of the multiple location information.
[0050] The method for obtaining boundary points is: among the multiple location information, select the outermost position information in the specified direction to obtain it.
[0051] The method for obtaining the center point is: connect the boundary points on the diagonal line, and use the intersection point of multiple diagonal lines as the midpoint.
[0052] Among them, the method for obtaining boundary points and the method for obtaining center points can also be any methods that can be realized in any traditional technology, and no limitations are made here.
[0053] The boundary points and the center point are as Figure 3 shown. Please refer to Figure 3 , Figure 3 FIG. shows a schematic diagram of the distribution of location information provided by the present application. As Figure 3 shown, point a, point b, point c, and point d are boundary points in the up, down, left, and right directions, and point o is the center point. It should be noted that Figure 3 is only for illustrative purposes, and no limitations are made on the number of location information, positions, the number of boundary points, etc. (the number of boundary points varies according to different polygons), and can be adjusted adaptively according to the application scenario.
[0054] Step 1022: Obtain the touch area where the multiple location information is located according to the boundary points and / or the center point.
[0055] The terminal device obtains the boundary points and / or the center point in the multiple location information, obtains the boundary of the touch area according to the boundary points, obtains the center of the circular area according to the center point, and further obtains the touch area where the multiple location information is located. Different-shaped touch areas correspond to different obtaining methods:
[0056] As an optional embodiment of the present application, step 1022 includes the following steps 1022a to 1022d. Please refer to Figure 4 , Figure 4 shows a specific schematic flowchart of step 1022 in a method for anti-interference of an industrial touch screen provided by the present application.
[0057] Step 1022a: If the preset shape is circular, use the circular area with the line segment formed by the center point and the boundary point as the radius as the touch area; the preset shape is the shape of the preset touch area.
[0058] The preset shape includes but is not limited to a circle or a polygon, and the polygon includes a triangle, a rectangle, a pentagon, etc.
[0059] Due to the characteristics of a circle, only after obtaining the radius according to two points can the touch area be determined. Among them, the boundary points of the circular area can be randomly selected or the boundary point farthest from the center point can be selected.
[0060] Please refer to Figure 5 , Figure 5 shows a schematic diagram of the distribution of location information provided by the present application. As Figure 5 shown, the touch area is a circular area with the line segment formed by the center point o and the boundary point a as the radius as the touch area. It should be noted that Figure 5 is only for example, and no limitations are imposed on the quantity, position of the location information, the quantity of the boundary points, etc. (the quantity of the boundary points varies according to the polygon), and it can be adaptively adjusted according to the application scenario.
[0061] Step 1022b: If the preset shape is a polygon, select the boundary points in each direction according to the direction of each side of the polygon.
[0062] Step 1022c: Obtain the straight line on the corresponding boundary point in the direction according to each direction and the boundary point corresponding to the direction.
[0063] Step 1022d: Use the polygon area enclosed by all the straight lines as the touch area.
[0064] Exemplarily, taking a rectangle as an example: Please refer to Figure 6 , Figure 6 which shows a schematic diagram of the distribution of location information provided by the present application. As Figure 6 shown, boundary points a, b, c, and d are selected in the four directions of up, down, left, and right respectively. According to the four directions of up, down, left, and right and the corresponding boundary points a, c, b, and d in the four directions of up, down, left, and right, straight lines 1, 2, 3, and 4 are formed at the corresponding boundary points in the four directions of up, down, left, and right. The polygonal region enclosed by straight lines 1, 2, 3, and 4 is used as the touch area. It should be noted that Figure 6 this is only for illustrative purposes, and no limitations are imposed on the quantity of location information, location, quantity of boundary points, etc. (the quantity of boundary points varies according to different polygons), and it can be adaptively adjusted according to the application scenario.
[0065] Step 1023: Calculate the distribution density of the multiple location information in the touch area.
[0066] The methods for calculating the distribution density include but are not limited to methods for calculating the distribution density such as probability density functions or characteristic functions. The calculation of the distribution density is a conventional technique and will not be elaborated here.
[0067] Step 1024: Calculate the distribution uniformity of the multiple location information in the touch area.
[0068] The methods for calculating the distribution uniformity include but are not limited to methods for calculating the distribution uniformity such as uniform distribution functions. The calculation of the distribution uniformity is a conventional technique and will not be elaborated here.
[0069] Step 103: If the distribution pattern meets the first preset condition, obtain the distribution characteristics between the multiple location information; the distribution characteristics refer to the characteristics of the distribution relationship between different location information.
[0070] The first preset condition is the preset ranges corresponding to the distribution density and the distribution uniformity respectively, including three cases: ① The distribution density is within the first preset range; ② The distribution uniformity is within the second preset range; ③ The distribution density is within the first preset range and the distribution uniformity is within the second preset range.
[0071] Preferably, in order to improve the recognition accuracy, the recognition method of the third case can be preferentially adopted to improve the recognition accuracy. It can be understood that although the recognition accuracy is relatively low when using other recognition methods, it is beneficial to reduce the calculation amount, and it can be selected according to the actual application scenario.
[0072] As an alternative embodiment of the present application, the distribution characteristics include, but are not limited to, the number of location information, the distance between every two pieces of distribution information, and the area where the distribution information is located. Step 103 includes the following steps 1031 to 1033. Please refer to Figure 7 , Figure 7 FIG. Figure 7 shows a specific schematic flowchart of step 103 in a method for anti-interference of an industrial touch screen provided by the present application.
[0073] Step 1031, if the distribution density is within a first preset range and the distribution uniformity is within a second preset range, it is determined that the distribution law conforms to the first preset condition.
[0074] Step 1032, count the number of the location information.
[0075] Step 1033, calculate the distance between every two pieces of the location information.
[0076] According to the coordinate values of each location information, calculate the distance between every two pieces of location information.
[0077] Step 104, if the distribution characteristics conform to a second preset condition, perform the operation of the control corresponding to the location information.
[0078] The second preset condition includes the following seven cases:
[0079] ① The location information is within a preset area. ② The distance is not greater than a third preset range. ③ The number of location information is less than a preset number. ④ The location information is within a preset area and the distance is not greater than a third preset range. ⑤ The location information is within a preset area and the number of location information is less than a preset number. ⑥ The distance is not greater than a third preset range and the number of location information is less than a preset number. ⑦ The location information is within a preset area, the distance is not greater than a third preset range, and the number of location information is less than a preset number.
[0080] Preferably, in order to improve the recognition accuracy, the seventh case can be preferentially used as the second preset condition to improve the recognition accuracy. That is, step 104 is specifically: if the location information is within a preset area, the distance is not greater than a third preset range, and the number of the location information is less than a preset number, it is determined that the distribution characteristics conform to the second preset condition, and perform the operation of the control corresponding to the location information.
[0081] It can be understood that although the recognition accuracy is relatively low when using other recognition methods, it is beneficial to reduce the calculation amount, and it can be selected according to the actual application scenario.
[0082] As an alternative embodiment of the present application, the distribution feature further includes a first change amplitude of the coordinate values corresponding to the position information, a second change amplitude of the distances between multiple pieces of the position information, and a growth amplitude of the number of the position information. Step 104 includes the following steps 1041 to 1042. Please refer to Figure 8 , Figure 8 FIG. shows a specific schematic flowchart of step 104 in a method for anti-interference of an industrial touch screen provided by the present application.
[0083] Step 1041: If the position information is within a preset area and / or the distance is not greater than a third preset range and / or the number of the position information is less than a preset number, then count the first change amplitude of the coordinate values corresponding to multiple pieces of the position information, the second change amplitude of the distances between multiple pieces of the position information, and the growth amplitude of the number of the position information within a first preset time period.
[0084] Due to the physiological limits of the human body, it is impossible for the human body to trigger a large number of touch signals within a very short time interval, that is, a sharp increase phenomenon is impossible to occur in a short time. Therefore, in this embodiment, the first change amplitude of the coordinate values corresponding to multiple pieces of the position information, the second change amplitude of the distances between multiple pieces of the position information, and the growth amplitude of the number of the position information within a first preset time period are considered.
[0085] It should be noted that step 1041 includes the following seven cases:
[0086] ① If the position information is within a preset area, then count the first change amplitude of the coordinate values corresponding to multiple pieces of the position information, the second change amplitude of the distances between multiple pieces of the position information, and the growth amplitude of the number of the position information within a first preset time period.
[0087] ② If the distance is not greater than a third preset range, then count the first change amplitude of the coordinate values corresponding to multiple pieces of the position information, the second change amplitude of the distances between multiple pieces of the position information, and the growth amplitude of the number of the position information within a first preset time period.
[0088] ③ If the number of the position information is less than a preset number, then count the first change amplitude of the coordinate values corresponding to multiple pieces of the position information, the second change amplitude of the distances between multiple pieces of the position information, and the growth amplitude of the number of the position information within a first preset time period.
[0089] ④ If the position information is within a preset area and the distance is not greater than a third preset range, then count the first change amplitude of the coordinate values corresponding to multiple pieces of the position information, the second change amplitude of the distances between multiple pieces of the position information, and the growth amplitude of the number of the position information within a first preset time period.
[0090] ⑤ If the location information is within the preset area and the number of location information is less than the preset number, then calculate the first change range of the coordinate values corresponding to the multiple location information, the second change range of the distances between the multiple location information, and the growth rate of the number of location information within the first preset time period.
[0091] ⑥ If the distance is not greater than the third preset range and the number of location information is less than the preset number, then calculate the first change range of the coordinate values corresponding to the multiple location information, the second change range of the distances between the multiple location information, and the growth rate of the number of location information within the first preset time period.
[0092] ⑦ If the location information is within the preset area, the distance is not greater than the third preset range, and the number of location information is less than the preset number, then calculate the first change range of the coordinate values corresponding to the multiple location information, the second change range of the distances between the multiple location information, and the growth rate of the number of location information within the first preset time period.
[0093] Step 1042, if the first change range is less than the first threshold and / or the second change range is less than the second threshold and / or the growth rate is less than the third threshold, then determine that the distribution feature meets the second preset condition and perform the operation on the control corresponding to the location information.
[0094] It should be noted that step 1042 includes the following seven cases:
[0095] ① If the first change range is less than the first threshold, then determine that the distribution feature meets the second preset condition and perform the operation on the control corresponding to the location information.
[0096] ② If the second change range is less than the second threshold, then determine that the distribution feature meets the second preset condition and perform the operation on the control corresponding to the location information.
[0097] ③ If the growth rate is less than the third threshold, then determine that the distribution feature meets the second preset condition and perform the operation on the control corresponding to the location information.
[0098] ④ If the first change range is less than the first threshold and the second change range is less than the second threshold, then determine that the distribution feature meets the second preset condition and perform the operation on the control corresponding to the location information.
[0099] ⑤ If the first change range is less than the first threshold and the growth rate is less than the third threshold, then determine that the distribution feature meets the second preset condition and perform the operation on the control corresponding to the location information.
[0100] ⑥ If the second change range is less than the second threshold and the growth rate is less than the third threshold, then determine that the distribution feature meets the second preset condition and perform the operation on the control corresponding to the location information.
[0101] ⑦ If the first change amplitude is less than the first threshold, the second change amplitude is less than the second threshold, and the growth amplitude is less than the third threshold, it is determined that the distribution feature meets the second preset condition, and the operation of the control corresponding to the location information is executed.
[0102] Preferably, in order to improve the recognition accuracy, step 1042 may preferably adopt the seventh case to improve the recognition accuracy. It can be understood that although the recognition accuracy is relatively low when other cases are adopted, it is beneficial to reduce the calculation amount, and it can be selected according to the actual application scenario.
[0103] If the first change amplitude is less than the first threshold, the second change amplitude is less than the second threshold, and the growth amplitude is less than the third threshold, it means that the coordinate values of different location information, the distances between multiple location information, and the number of location information do not show a sharp increase, and it can be determined that the distribution feature meets the second preset condition.
[0104] If the first change amplitude is not less than the first threshold, the second change amplitude is not less than the second threshold, and the growth amplitude is not less than the third threshold, it means that the coordinate values of different location information, the distances between multiple location information, and the number of location information show a sharp increase, and it can be determined that the distribution feature does not meet the second preset condition.
[0105] After determining that the distribution feature meets the second preset condition, the location information is used as a valid signal, and the operation of the control corresponding to the location information is executed. For example: when the control corresponding to the location information is a confirmation control, the "confirmation" operation is executed; when the control corresponding to the location information is a return control, the "return" operation is executed.
[0106] If the distribution rule does not meet the preset condition, the multiple location information is removed. The removal method can be to restart the power supply or reset the key chip, etc.
[0107] In this embodiment, by obtaining multiple location information collected by the touch screen; obtaining the distribution rule between the multiple location information; if the distribution rule meets the first preset condition, obtaining the distribution feature between the multiple location information; if the distribution feature meets the second preset condition, executing the operation of the control corresponding to the location information. Since the signals triggered by interference are often chaotic, while the signals triggered by the human body often have regularity, the present application analyzes the distribution rule and distribution feature of the location information through the above scheme to screen the location information triggered by the valid signal triggered by the user according to the distribution rule and distribution feature, and then filters out the location information triggered by the interference signal, and executes the operation of the control corresponding to the location information triggered by the valid signal, achieving the anti-interference effect.
[0108] Optionally, on the basis of the above Figure 1 shown embodiment, before step 101, the following steps are further included. Please refer toFigure 9 , Figure 9 It shows a schematic flowchart of another anti-interference method for an industrial touch screen provided by this application.
[0109] Step 901: When a switch signal is received, the operation permission of a preset area in the touch screen is enabled, and the steps of obtaining multiple position information collected by the touch screen and subsequent steps are executed.
[0110] To prevent interference signals from interfering with the touch screen when there is no user operation on the touch screen, a permission switch is set for the touch screen in this embodiment, and the operation permission of a preset area in the touch screen is controlled through the permission switch. The permission switch includes an entity switch and a non-entity switch. The entity switch refers to an entity button on the body or a control in the touch screen, etc. The non-entity switch refers to a switch method such as sending a wireless signal through a wireless module.
[0111] The operation permission includes but is not limited to full-screen touch permission, left-half screen touch permission, right-half screen touch permission, upper-half screen touch permission, lower-half screen touch permission, or specified area touch permission, etc.
[0112] When the user triggers the permission switch to send a switch signal, after the terminal device receives the switch signal, it enables the operation permission of a preset area in the touch screen and executes Step 101 to Step 104.
[0113] When no switch signal is received, the operation permission of the touch screen is closed (that is, when the user does not need to operate the touch screen, the operation permission of the touch screen is closed) to prevent interference signals from interfering with the touch screen.
[0114] Step 902: If no position information is collected for more than a second preset duration, the operation permission of the touch screen is closed.
[0115] To prevent the user from forgetting to turn off the permission switch, when no position information is collected for more than a second preset duration, the operation permission of the touch screen is closed.
[0116] Step 101: Obtain multiple position information collected by the touch screen; the position information refers to that the touch screen detects a touch signal and collects the coordinate information corresponding to the touch signal.
[0117] Step 102: Obtain the distribution law among the multiple position information; the distribution law is used to reflect the distribution density and distribution uniformity of the multiple position information, and the distribution uniformity is used to measure the degree of uniformity of the distribution among the multiple position information.
[0118] Step 103: If the distribution law meets a first preset condition, obtain the distribution characteristics among the multiple position information; the distribution characteristics refer to the characteristics of the distribution relationship between different position information.
[0119] Step 104, if the distribution feature meets the second preset condition, then perform the operation of the control corresponding to the location information.
[0120] In this embodiment, when a switch signal is received, the operation permission of a preset area in the touch screen is enabled, and the steps of obtaining a plurality of location information collected by the touch screen and subsequent steps are performed. When the switch signal is not received, the operation permission of the touch screen is disabled. In the above manner, the operation permission is controlled according to the switch signal to prevent misoperation of the touch screen when there is no one operating.
[0121] Such as Figure 10 The present application provides a device 10 for anti-interference of an industrial touch screen. Please refer to Figure 10 , Figure 10 shows a schematic diagram of a device for anti-interference of an industrial touch screen provided by the present application. Such as Figure 10 shown, a device for anti-interference of an industrial touch screen includes:
[0122] A first acquisition unit 1001, configured to acquire a plurality of location information collected by the touch screen; the location information refers to the touch screen detecting a touch signal and acquiring coordinate information corresponding to the touch signal;
[0123] A second acquisition unit 1002, configured to acquire a distribution rule between the plurality of location information; the distribution rule is used to reflect the distribution density and distribution uniformity of the plurality of location information, and the distribution uniformity is used to measure the degree of uniformity of the distribution between the plurality of location information;
[0124] A first judgment unit 1003, configured to, if the distribution rule meets the first preset condition, acquire a distribution feature between the plurality of location information; the distribution feature refers to a feature of the distribution relationship between different location information;
[0125] A second judgment unit 1004, configured to, if the distribution feature meets the second preset condition, perform the operation of the control corresponding to the location information.
[0126] An anti-interference device for an industrial touch screen provided by this application obtains multiple position information collected by the touch screen; obtains the distribution law between the multiple position information; if the distribution law meets the first preset condition, obtains the distribution characteristics between the multiple position information; if the distribution characteristics meet the second preset condition, performs the operation of the control corresponding to the position information. Since the signals triggered by interference are often chaotic, while the signals triggered by the human body often have regularity, this application analyzes the distribution law and distribution characteristics of the position information through the above scheme to screen the position information triggered by the effective signals triggered by the user according to the distribution law and distribution characteristics, and then filters out the position information triggered by the interference signals, and performs the operation of the control corresponding to the position information triggered by the effective signals, achieving the anti-interference effect.
[0127] Figure 11 is a schematic diagram of a terminal device provided by an embodiment of the present invention. As Figure 11 shown, a terminal device 11 in this embodiment includes: a touch screen 110, a processor 111, a memory 112, and a computer program 113 stored in the memory 112 and executable on the processor 111, such as a program for anti-interference of an industrial touch screen. When the processor 111 executes the computer program 113, it implements the steps in the above-mentioned method embodiments for anti-interference of an industrial touch screen, such as Figure 1 the steps 101 to 103 shown. Alternatively, when the processor 111 executes the computer program 113, it implements the functions of each unit in the above-mentioned device embodiments, such as Figure 10 the functions of the units 1001 to 1003 shown.
[0128] Exemplarily, the computer program 113 can be divided into one or more units. The one or more units are stored in the memory 112 and executed by the processor 111 to complete the present invention. The one or more units can be a series of computer program instruction segments capable of performing specific functions, and the instruction segments are used to describe the execution process of the computer program 113 in the terminal device 11. For example, the specific functions of the computer program 113 divided into each unit are as follows:
[0129] A first acquisition unit for acquiring multiple position information collected by the touch screen; the position information refers to the touch screen detecting a touch signal and acquiring the coordinate information corresponding to the touch signal;
[0130] A second acquisition unit for acquiring the distribution law between the multiple position information; the distribution law is used to reflect the distribution density and distribution uniformity of the multiple position information, and the distribution uniformity is used to measure the degree of uniformity of the distribution between the multiple position information;
[0131] A first judgment unit, configured to obtain a distribution feature between the multiple location information if the distribution rule meets a first preset condition; the distribution feature refers to a feature of the distribution relationship between different location information.
[0132] A second judgment unit, configured to perform an operation on a control corresponding to the location information if the distribution feature meets a second preset condition.
[0133] The terminal device may be a device with a touch screen such as a computer, a display control integrated machine, and a mobile terminal. The terminal device includes, but is not limited to, a touch screen 110, a processor 111, a memory 112, and a computer program 113 stored in the memory 112 and executable on the processor 111. Those skilled in the art can understand that Figure 11 This is only an example of a terminal device 11, and does not constitute a limitation on the terminal device 11. It may include more or fewer components than shown in the figure, or combine certain components, or different components. For example, the terminal device may further include an input / output module, a network access module, a bus, etc.
[0134] The touch screen 110 is configured to collect a trigger signal triggered by a contact. The touch screen 110 may be any one of a resistive touch screen, a capacitive touch screen, a piezoelectric touch screen, an infrared touch screen, or a surface acoustic wave touch screen.
[0135] The processor 111 may be a central processing unit (CPU), or may also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0136] The memory 112 may be an internal storage unit of the terminal device 11, such as a hard disk or memory of the terminal device 11. The memory 112 may also be an external storage device of the terminal device 11, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a Flash Card, etc. equipped on the terminal device 11. Further, the memory 112 may also include both the internal storage unit of the terminal device 11 and the external storage device. The memory 112 is used to store the computer program and other programs and data required by the terminal device 11. The memory 112 may also be used to temporarily store the data that has been output or will be output.
[0137] It should be understood that the sequence numbers of the steps in the above embodiments do not imply the order of execution. The execution order of each process should be determined according to its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
[0138] It should be noted that the information interaction, execution process, etc. between the above-mentioned device / units, due to being based on the same concept as the method embodiments of the present application, for the specific functions and the technical effects brought, please refer to the method embodiment part, which will not be elaborated here.
[0139] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the above-mentioned division of each functional unit and module is used as an example. In actual application, the above functions can be allocated to different functional units and modules according to needs, that is, the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment can be integrated into a processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit. In addition, the specific names of each functional unit and module are only for the convenience of mutual distinction and do not limit the protection scope of the present application. The specific working process of the units and modules in the above system can refer to the corresponding process in the foregoing method embodiments and will not be elaborated here.
[0140] The embodiments of the present application also provide a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0141] An embodiment of the present application provides a computer program product. When the computer program product runs on a mobile terminal, it enables the mobile terminal to implement the steps in the above-mentioned method embodiments when executed.
[0142] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, to implement all or part of the processes in the above-mentioned method embodiments of the present application, a computer program can be used to instruct relevant hardware to complete. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by a processor, it can implement the steps in the above-mentioned method embodiments. Among them, the computer program includes computer program code, and the computer program code can be in the form of source code, object code, executable file or some intermediate form, etc. The computer-readable medium can at least include: any entity or device that can carry the computer program code to the photographing device / terminal device, recording medium, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal, and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk, or an optical disc, etc. In some jurisdictions, according to legislation and patent practice, the computer-readable medium cannot be an electrical carrier signal and a telecommunication signal.
[0143] In the above embodiments, the descriptions of the various embodiments have their own emphases. For the parts not detailed or recorded in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0144] Those of ordinary skill in the art can realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.
[0145] In the embodiments provided in the present application, it should be understood that the disclosed device / network device and method can be implemented in other ways. For example, the device / network device embodiments described above are merely illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection between each other can be through some interfaces. The indirect coupling or communication connection of the device or unit can be in electrical, mechanical or other forms.
[0146] The units described as separate components may or may not be physically separated. The components displayed as units may or may not be physical units, that is, they can be located in one place or distributed to multiple network units.
[0147] It should be understood that when used in the specification and the appended claims of the present application, the term "comprising" indicates the presence of the described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or their combinations.
[0148] It should also be understood that the term "and / or" used in the specification and the appended claims of the present application refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0149] As used in the specification and the appended claims of the present application, the term "if" can be interpreted as "when", "once", "in response to determining", or "in response to detecting" according to the context. Similarly, the phrase "if determined" or "if [the described condition or event] is detected" can be interpreted as meaning "once determined", "in response to determining", "once [the described condition or event] is detected", or "in response to detecting [the described condition or event]" according to the context.
[0150] In addition, in the description of the specification and the appended claims of the present application, the terms "first", "second", "third", etc. are only used for distinguishing descriptions and cannot be understood as indicating or implying relative importance.
[0151] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that a particular feature, structure, or characteristic described in connection with that embodiment is included in one or more embodiments of this application. Thus, statements such as "in one embodiment", "in some embodiments", "in other some embodiments", "in still other embodiments", etc. that appear in different places in this specification do not necessarily all refer to the same embodiment, but rather mean "one or more but not all embodiments", unless otherwise specifically emphasized. The terms "comprising", "including", "having" and their variants all mean "including but not limited to", unless otherwise specifically emphasized.
[0152] The above-described embodiments are only used to illustrate the technical solutions of this application, rather than to limit them; although this application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and 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 this application, and should all be included within the protection scope of this application.
Claims
1. A method for anti-interference of an industrial touch screen, characterized in that The method includes: Obtaining a plurality of position information collected by the touch screen; the position information refers to the touch screen detecting a touch signal and collecting the coordinate information corresponding to the touch signal; Obtaining the distribution law among the plurality of position information; the distribution law is used to reflect the distribution density and distribution uniformity of the plurality of position information, and the distribution uniformity is used to measure the degree of uniformity of the distribution among the plurality of position information; If the distribution law meets the first preset condition, obtaining the distribution characteristics among the plurality of position information; the distribution characteristics refer to the characteristics of the distribution relationship between different position information; If the distribution characteristics meet the second preset condition, performing an operation on the control corresponding to the position information; The distribution characteristics include the number of position information, the distance between every two distribution information, and the area where the distribution information is located; The step of, if the distribution law meets the first preset condition, obtaining the distribution characteristics among the plurality of position information includes: If the distribution density is within the first preset range and the distribution uniformity is within the second preset range, determining that the distribution law meets the first preset condition; Counting the number of the position information; Calculating the distance between every two of the position information; The step of, if the distribution characteristics meet the second preset condition, performing an operation on the control corresponding to the position information includes: If the position information is within a preset area, the distance is not greater than the third preset range, and the number of the position information is less than the preset number, determining that the distribution characteristics meet the second preset condition and performing an operation on the control corresponding to the position information.
2. The method according to claim 1, wherein The step of obtaining the distribution law among the plurality of position information includes: Obtaining boundary points and / or center points among the plurality of position information; Obtaining the touch area where the plurality of position information is located according to the boundary points and / or the center points; Calculating the distribution density of the plurality of position information in the touch area; Calculating the distribution uniformity of the plurality of position information in the touch area.
3. The method according to claim 2, wherein The step of obtaining the touch area where the plurality of position information is located according to the boundary points and / or the center points includes: If the preset shape is a circle, taking the circular area with the line segment formed by the center point and the boundary point as the radius as the touch area; the preset shape is the shape of the preset touch area; If the preset shape is a polygon, selecting boundary points in each direction according to the direction of each side of the polygon; Obtaining a straight line on the boundary point corresponding to the direction in the direction according to each direction and the boundary point corresponding to the direction; Taking the polygon area surrounded by all the straight lines as the touch area.
4. The method according to claim 1, wherein The distribution characteristics further include the first change amplitude of the coordinate value corresponding to the position information, the second change amplitude of the distance between the plurality of position information, and the growth amplitude of the number of position information; If the position information is within a preset area and / or the distance is not greater than a third preset range and / or the number of the position information is less than a preset number, it is determined that the distribution feature meets a second preset condition, and an operation on a control corresponding to the position information is performed, including: If the position information is within a preset area and / or the distance is not greater than a third preset range and / or the number of the position information is less than a preset number, a first change amplitude of coordinate values corresponding to a plurality of the position information, a second change amplitude of distances between a plurality of the position information, and a growth amplitude of the number of the position information within a first preset duration are statistically calculated; If the first change amplitude is less than a first threshold and / or the second change amplitude is less than a second threshold and / or the growth amplitude is less than a third threshold, it is determined that the distribution feature meets the second preset condition, and an operation on a control corresponding to the position information is performed.
5. The method according to claim 1, wherein After obtaining the distribution rule among the plurality of position information, it further includes: If the distribution rule does not meet the preset condition, the plurality of position information is excluded.
6. The method according to claim 1, wherein Before obtaining the plurality of position information collected by the touch screen, it further includes: When a switch signal is received, the operation permission for a preset area in the touch screen is enabled, and the steps of obtaining the plurality of position information collected by the touch screen and subsequent steps are performed.
7. The method according to claim 6, wherein After the operation permission for a preset area in the touch screen is enabled when the switch signal is received and the steps of obtaining the plurality of position information collected by the touch screen are performed, it further includes: If no position information is collected after exceeding a second preset duration, the operation permission of the touch screen is closed.
8. A terminal device, comprising a touch screen, a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
9. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, the steps of the method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Touch screen control method and device of mobile terminal and mobile terminal
CN106648233A
Touch screen correcting method and device
CN106775071A