CN116030075A - Touch method based on pressure sensor - Google Patents
Touch method based on pressure sensor Download PDFInfo
- Publication number
- CN116030075A CN116030075A CN202310049044.2A CN202310049044A CN116030075A CN 116030075 A CN116030075 A CN 116030075A CN 202310049044 A CN202310049044 A CN 202310049044A CN 116030075 A CN116030075 A CN 116030075A
- Authority
- CN
- China
- Prior art keywords
- area
- touch
- pressure sensor
- qualified
- parameter
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Position Input By Displaying (AREA)
Abstract
The invention discloses a touch control method based on a pressure sensor, which relates to the technical field of pressure sensors, and solves the technical problems that the normal stress area of the pressure sensor is analyzed in a point position test mode without carrying out point position test on a plurality of different areas of the pressure sensor, whether the corresponding area is in an abnormal state is checked, the optimal touch control subarea of the touch control abnormality of the pressure sensor is re-analyzed through pressure parameter analysis, whether the optimal touch control subarea is crossed with a qualified circular area is checked, the area of the crossed area is re-analyzed, whether the corresponding pressure sensor is qualified is judged according to the analysis result, the touch points of the pressure sensor at a plurality of different positions can be accurately tested in an area division mode, and whether the pressure sensor is in the abnormal touch state is judged in an area cross analysis mode is subsequently re-analyzed, so that the accuracy of touch debugging is improved, and the accuracy of the test is improved.
Description
Technical Field
The invention belongs to the technical field of pressure sensors, and particularly relates to a touch control method based on a pressure sensor.
Background
The pressure sensor is a device or apparatus capable of sensing pressure signals and converting the pressure signals into usable output electrical signals according to a certain rule, and is generally composed of a pressure sensitive element and a signal processing unit, and can be divided into a gauge pressure sensor, a differential pressure sensor and an absolute pressure sensor according to different test pressure types.
The invention of patent publication number CN105183363B discloses a terminal and a touch control method based on a pressure sensor, wherein the back surface of the terminal is provided with the pressure sensor, and the back surface is the surface opposite to a touch screen of the terminal; the terminal comprises: a first detection unit for detecting a first operation of a first portion of the hand at the first region of the back surface using the pressure sensor; a display unit, configured to display the first operation in a third area of the touch screen according to a rule; a processing unit for responding to the first operation; the second detection unit is used for detecting a second operation of a second part of the hand in a second area of the touch screen by using the touch screen; a processing unit for responding to the second operation; and the second area and the third area form the whole area of the touch screen.
When touch test processing is performed on the pressure sensor, whether the pressure sensor is normally in a touch state is generally judged directly according to corresponding test parameters, but in the specific implementation process, errors are easy to exist in the judging mode, the normal stress area of the pressure sensor is analyzed in a mode that point location test is not performed on a plurality of different areas of the pressure sensor, whether the corresponding area is in an abnormal state is checked, and the accuracy of touch test is improved.
Disclosure of Invention
The present invention aims to solve at least one of the technical problems existing in the prior art; therefore, the invention provides a touch method based on a pressure sensor, which is used for solving the technical problem that a normal stress area of the pressure sensor is analyzed in a mode that point location tests are not carried out on a plurality of different areas of the pressure sensor, and whether the corresponding areas are in an abnormal state or not is checked.
To achieve the above object, an embodiment according to a first aspect of the present invention provides a touch method based on a pressure sensor, including the steps of:
s1, acquiring a touch screen of a pressure sensor in advance, dividing the acquired touch screen into a plurality of micro areas to be touched by adopting a preset template dividing mode, and confirming a qualified circle area from the touch screen;
s2, performing pre-test touch processing on the divided multiple micro-areas to be touched, analyzing pressure parameters provided by different micro-areas to be touched, and confirming the optimal micro-areas to be touched, so as to obtain the optimal touch areas;
s3, re-analyzing the optimal touch partition with abnormal touch of the sensor through pressure parameter analysis, checking whether the optimal touch partition has a crossing condition with a qualified circular area, re-analyzing the area of the crossing area, and judging whether the corresponding pressure sensor is qualified according to an analysis result;
s4, directly transmitting the qualified pressure sensor number to an external display terminal, binding the abnormal signal and the abnormal sensor number, transmitting the abnormal signal and the abnormal sensor number to the external display terminal for display, and checking by external personnel so as to make correct countermeasures in time.
Preferably, in the step S1, the specific manner of dividing the touch screen into a plurality of micro areas to be touched is as follows:
s11, receiving a touch screen, and then rotating the touch screen at a high speed to obtain a group of circles, confirming the corresponding circle center from the circles, and setting the circle center as the center point of the touch screen;
s12, matching the touch sensing picture after the center point is confirmed with a preset template, wherein coordinate parameters are set in the preset template, combining the center point with an origin between the preset template, and dividing the touch sensing picture by adopting a plurality of groups of palace grids in the preset template after combining, so as to obtain a plurality of groups of micro areas to be touched of the touch sensing picture;
and S13, confirming the qualified circular area in the touch sense picture according to the center point and the preset radius parameter, and performing circular processing according to the center point and the preset radius parameter by using the center point center of a circle, so that the qualified circular area required to be used subsequently is obtained.
Preferably, in the step S2, the specific manner of analyzing the pressure parameters provided by the different micro-areas to be touched is as follows:
s21, providing standard pressure for a plurality of micro areas to be touched by adopting micro pressure supply equipment, recording output pressure parameters of a pressure sensor in the providing process, and marking the output pressure parameters as YL i Wherein i represents different micro-areas to be touched;
s22, outputting a plurality of output pressure parameters YL i Performing difference processing with a preset parameter YS, wherein the preset parameter YS is a preset value, and obtaining a plurality of groups of different comparison difference BD i Then a plurality of different comparison differences BD i Performing absolute value processing to convert the comparison difference value determined to be negative into a positive value;
s23, comparing the absolute value processed plurality of comparison differences BD i Sequentially analyzing, and comparing the difference BD from several groups i The minimum value is extracted internally and marked as BD imin Confirming the designated micro-area to be touched through the mark i in the minimum value, and judging the micro-area to be touched as the optimal touch area;
s24, checking whether the optimal touch partition is located in the area range of the qualified circular area, if so, indicating that the touch of the pressure sensor is normal, and if not, indicating that the touch of the pressure sensor is abnormal.
Preferably, in the step S3, the specific manner of re-analyzing the area of the intersection area is:
s31, analyzing whether the optimal touch partition and the qualified circular area have a crossing condition in advance, if so, performing next processing, otherwise, representing that the pressure sensor is abnormal in touch;
s32, acquiring the intersection point between the optimal touch control partition and the qualified circular area, marking the intersection point as J1 and J2 respectively, acquiring the coordinate parameters of J1 and J2 from the coordinate parameters of a preset template, marking the coordinate parameters as J1 (X1, Y1) and J2 (X2, Y2), marking the turning point of the optimal touch control partition in the qualified circular area as ZZ, acquiring the coordinate parameters of the turning point ZZ, and marking the coordinate parameters as ZZ (X3, Y3);
s33, connecting the circle center O of the qualified circle area, the circle centers J1 and the circle centers J2 to obtain a first area partition, and obtaining the area parameter of the first area integral area, and marking the area parameter as MJ1;
s34, acquiring area parameters of a sector area with circle centers O and J1 and J2, wherein the specific acquisition mode is that the area occupation ratio of the sector area in the whole qualified circle area is acquired, and the area parameter belonging to the sector area is acquired according to the total area parameter and the area occupation ratio of the qualified circle area and is marked as MJ2;
s35, acquiring the area parameter of the triangle area through ZZ (X3, Y3), J1 (X1, Y1) and J2 (X2, Y2), and marking the triangle area parameter as MJ3;
s36, obtaining an intersection area parameter JC between the optimal touch control partition and the qualified circular area by adopting MJ 2-MJ1+MJ3=JC, and comparing the intersection area parameter JC with a preset area parameter CS, wherein the preset area parameter CS is a preset value, the specific value of the preset area parameter CS is drawn by an operator according to experience, when JC < CS, the intersection area is too small, the pressure sensor is abnormal, an abnormal signal is generated, otherwise, the pressure sensor is in a normal state, and the pressure sensor is qualified.
Compared with the prior art, the invention has the beneficial effects that: dividing the touch screen into a plurality of micro areas to be touched by adopting a preset template dividing mode, and confirming a qualified circular area from the touch screen; pre-testing touch processing is carried out on the plurality of segmented micro areas to be touched, and pressure parameters provided by different micro areas to be touched are analyzed, so that an optimal touch area is obtained; the method comprises the steps of analyzing pressure parameters, re-analyzing the optimal touch subarea with abnormal touch of the sensor, checking whether the optimal touch subarea has a crossing condition with a qualified circular area, re-analyzing the area of the crossing area, judging whether the corresponding pressure sensor is qualified according to an analysis result, accurately testing touch points of a plurality of different positions of the pressure sensor in a region segmentation mode, and judging whether the pressure sensor is in a touch abnormal state in a subsequent area crossing analysis mode, so that the accuracy of touch debugging is improved, the accuracy of testing is improved, and the accuracy of a judgment result is improved.
Drawings
FIG. 1 is a schematic flow chart of the method of the present invention;
fig. 2 is a schematic diagram of an intersection area of an optimal touch area and a qualified circular area according to the present invention.
Detailed Description
The technical solutions of the present invention will be clearly and completely described in connection with the embodiments, and it is obvious that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, the application provides a touch control method based on a pressure sensor, which includes the following steps:
s1, acquiring a touch screen of a pressure sensor in advance, dividing the touch screen into a plurality of micro areas to be touched by adopting a preset template dividing mode on the acquired touch screen, and confirming a qualified circle area from the touch screen, wherein the specific mode for dividing is as follows:
s11, receiving a touch screen, and then rotating the touch screen at a high speed (the touch screen is generally in a regular polygonal shape, sometimes in a quadrilateral shape, sometimes in a round shape or other normal specification shape), so as to obtain a group of circles, confirming the corresponding circle center from the circles, and setting the circle center as the center point of the touch screen;
s12, matching the touch sensing picture after the center point is confirmed with a preset template, wherein coordinate parameters are set in the preset template, combining the center point with an origin between the preset template, and dividing the touch sensing picture by adopting a plurality of groups of palace grids in the preset template after combining, so as to obtain a plurality of groups of micro areas to be touched of the touch sensing picture;
s13, confirming a qualified circle area in the touch sense picture according to the center point and preset radius parameters (wherein the preset radius parameters are preset values, the specific values of the preset radius parameters are determined by operators according to personal experience), and performing circle processing according to the center point and the preset radius parameters so as to obtain the qualified circle area to be used subsequently;
s2, performing pre-test touch processing on the divided plurality of micro-areas to be touched, analyzing pressure parameters provided by different micro-areas to be touched, and confirming the optimal micro-areas to be touched, so as to obtain the optimal touch area, wherein the specific mode for analyzing is as follows:
s21, providing standard pressure for a plurality of micro areas to be touched by adopting micro pressure supply equipment, recording output pressure parameters of a pressure sensor in the providing process, and marking the output pressure parameters as YL i Wherein i represents different micro-areas to be touched;
s22, outputting a plurality of output pressure parameters YL i Performing difference processing with a preset parameter YS, wherein the preset parameter YS is a preset value, and the specific value of the preset parameter YS is empirically determined by an operator to obtain a plurality of different comparison differences BD i Then a plurality of different comparison differences BD i Performing absolute value processing to convert the comparison difference value determined to be negative into a positive value;
s23, comparing the absolute value processed plurality of comparison differences BD i Sequentially analyzing, and comparing the difference BD from several groups i The minimum value is extracted internally and marked as BD imin Confirming the designated micro-area to be touched through the mark i in the minimum value, and judging the micro-area to be touched as the optimal touch area;
s24, checking whether the optimal touch partition is located in the area range of the qualified circular area, if so, representing that the touch of the pressure sensor is normal, and if not, representing that the touch of the pressure sensor is abnormal;
s3, re-analyzing the optimal touch partition with abnormal touch of the sensor through pressure parameter analysis, checking whether the optimal touch partition has a crossing condition with a qualified circular area, re-analyzing the area of the crossing area, and judging whether the corresponding pressure sensor is qualified according to an analysis result, wherein the specific mode for re-analyzing is as follows:
s31, analyzing whether the optimal touch partition and the qualified circular area have a crossing condition in advance, if so, performing next processing, otherwise, representing that the pressure sensor is abnormal in touch;
s32, as shown in FIG. 2, acquiring the intersection point between the optimal touch partition and the qualified circular area, marking the intersection point as J1 and J2 respectively, acquiring the coordinate parameters of J1 and J2 from the coordinate parameters of a preset template, marking the coordinate parameters as J1 (X1, Y1) and J2 (X2, Y2), marking the turning point of the optimal touch partition in the qualified circular area as ZZ, acquiring the coordinate parameters of the turning point ZZ, and marking the coordinate parameters as ZZ (X3, Y3);
s33, connecting the circle center O of the qualified circle area, the circle centers J1 and the circle centers J2 to obtain a first area partition, and obtaining the area parameter of the first area integral area, and marking the area parameter as MJ1;
s34, acquiring area parameters of a sector area with circle centers O and J1 and J2, wherein the specific acquisition mode is that the area occupation ratio of the sector area in the whole qualified circle area is acquired, and the area parameter belonging to the sector area is acquired according to the total area parameter and the area occupation ratio of the qualified circle area and is marked as MJ2;
s35, acquiring the area parameter of the triangle area through ZZ (X3, Y3), J1 (X1, Y1) and J2 (X2, Y2), and marking the triangle area parameter as MJ3;
s36, obtaining an intersection area parameter JC between the optimal touch control partition and the qualified circular area by adopting MJ 2-MJ1+MJ3=JC, and comparing the intersection area parameter JC with a preset area parameter CS, wherein the preset area parameter CS is a preset value, the specific value of the preset area parameter CS is drawn by an operator according to experience, when JC < CS, the intersection area is too small, the pressure sensor is abnormal, an abnormal signal is generated, otherwise, the pressure sensor is in a normal state, and the pressure sensor is qualified in test;
s4, directly transmitting the qualified pressure sensor number to an external display terminal, binding the abnormal signal and the abnormal sensor number, transmitting the abnormal signal and the abnormal sensor number to the external display terminal for display, and checking by external personnel so as to make correct countermeasures in time.
The partial data in the formula are all obtained by removing dimension and taking the numerical value for calculation, and the formula is a formula closest to the real situation obtained by simulating a large amount of collected data through software; the preset parameters and the preset threshold values in the formula are set by those skilled in the art according to actual conditions or are obtained through mass data simulation.
The working principle of the invention is as follows: the touch sensing picture of the pressure sensor is obtained in advance, the obtained touch sensing picture is divided into a plurality of micro areas to be touched by adopting a preset template dividing mode, and qualified circular areas are confirmed from the touch sensing picture; pre-testing touch processing is carried out on the plurality of segmented micro areas to be touched, pressure parameters provided by different micro areas to be touched are analyzed, and therefore the optimal micro areas to be touched are confirmed, and therefore the optimal touch areas are obtained; the method comprises the steps of analyzing pressure parameters, re-analyzing the optimal touch subarea with abnormal touch of the sensor, checking whether the optimal touch subarea has a crossing condition with a qualified circular area, re-analyzing the area of the crossing area, judging whether the corresponding pressure sensor is qualified according to an analysis result, accurately testing touch points of a plurality of different positions of the pressure sensor in a region segmentation mode, and judging whether the pressure sensor is in a touch abnormal state in a subsequent area crossing analysis mode, so that the accuracy of touch debugging is improved, the accuracy of testing is improved, and the accuracy of a judgment result is improved.
The above embodiments are only for illustrating the technical method of the present invention and not for limiting the same, and it should be understood by those skilled in the art that the technical method of the present invention may be modified or substituted without departing from the spirit and scope of the technical method of the present invention.
Claims (4)
1. The touch control method based on the pressure sensor is characterized by comprising the following steps of:
s1, acquiring a touch screen of a pressure sensor in advance, dividing the acquired touch screen into a plurality of micro areas to be touched by adopting a preset template dividing mode, and confirming a qualified circle area from the touch screen;
s2, performing pre-test touch processing on the divided multiple micro-areas to be touched, analyzing pressure parameters provided by different micro-areas to be touched, and confirming the optimal micro-areas to be touched, so as to obtain the optimal touch areas;
s3, re-analyzing the optimal touch partition with abnormal touch of the sensor through pressure parameter analysis, checking whether the optimal touch partition has a crossing condition with a qualified circular area, re-analyzing the area of the crossing area, and judging whether the corresponding pressure sensor is qualified according to an analysis result;
s4, directly transmitting the qualified pressure sensor number to an external display terminal, binding the abnormal signal and the abnormal sensor number, transmitting the abnormal signal and the abnormal sensor number to the external display terminal for display, and checking by external personnel so as to make correct countermeasures in time.
2. The touch method based on the pressure sensor according to claim 1, wherein in the step S1, the specific manner of dividing the touch screen into a plurality of micro-areas to be touched is as follows:
s11, receiving a touch screen, and then rotating the touch screen at a high speed to obtain a group of circles, confirming the corresponding circle center from the circles, and setting the circle center as the center point of the touch screen;
s12, matching the touch sensing picture after the center point is confirmed with a preset template, wherein coordinate parameters are set in the preset template, combining the center point with an origin between the preset template, and dividing the touch sensing picture by adopting a plurality of groups of palace grids in the preset template after combining, so as to obtain a plurality of groups of micro areas to be touched of the touch sensing picture;
and S13, confirming the qualified circular area in the touch sense picture according to the center point and the preset radius parameter, and performing circular processing according to the center point and the preset radius parameter by using the center point center of a circle, so that the qualified circular area required to be used subsequently is obtained.
3. The touch method based on the pressure sensor according to claim 2, wherein in the step S2, the specific manner of analyzing the pressure parameters provided by the different micro-areas to be touched is as follows:
s21, providing standard pressure for a plurality of micro areas to be touched by adopting micro pressure supply equipment, recording output pressure parameters of a pressure sensor in the providing process, and marking the output pressure parameters as YL i Wherein i represents different micro-areas to be touched;
s22, outputting a plurality of output pressure parameters YL i Performing difference processing with a preset parameter YS, wherein the preset parameter YS is a preset value, and obtaining a plurality of groups of different comparison difference BD i Then a plurality of different comparison differences BD i Performing absolute value processing to convert the comparison difference value determined to be negative into a positive value;
s23, comparing the absolute value processed plurality of comparison differences BD i Sequentially analyzing, and comparing the difference BD from several groups i The minimum value is extracted internally and marked as BD imin Confirming the designated micro-area to be touched through the mark i in the minimum value, and judging the micro-area to be touched as the optimal touch area;
s24, checking whether the optimal touch partition is located in the area range of the qualified circular area, if so, indicating that the touch of the pressure sensor is normal, and if not, indicating that the touch of the pressure sensor is abnormal.
4. The touch method based on the pressure sensor according to claim 3, wherein in the step S3, the specific manner of re-analyzing the area of the intersection area is as follows:
s31, analyzing whether the optimal touch partition and the qualified circular area have a crossing condition in advance, if so, performing next processing, otherwise, representing that the pressure sensor is abnormal in touch;
s32, acquiring the intersection point between the optimal touch control partition and the qualified circular area, marking the intersection point as J1 and J2 respectively, acquiring the coordinate parameters of J1 and J2 from the coordinate parameters of a preset template, marking the coordinate parameters as J1 (X1, Y1) and J2 (X2, Y2), marking the turning point of the optimal touch control partition in the qualified circular area as ZZ, acquiring the coordinate parameters of the turning point ZZ, and marking the coordinate parameters as ZZ (X3, Y3);
s33, connecting the circle center O of the qualified circle area, the circle centers J1 and the circle centers J2 to obtain a first area partition, and obtaining the area parameter of the first area integral area, and marking the area parameter as MJ1;
s34, acquiring area parameters of a sector area with circle centers O and J1 and J2, wherein the specific acquisition mode is that the area occupation ratio of the sector area in the whole qualified circle area is acquired, and the area parameter belonging to the sector area is acquired according to the total area parameter and the area occupation ratio of the qualified circle area and is marked as MJ2;
s35, acquiring the area parameter of the triangle area through ZZ (X3, Y3), J1 (X1, Y1) and J2 (X2, Y2), and marking the triangle area parameter as MJ3;
s36, obtaining an intersection area parameter JC between the optimal touch control partition and the qualified circular area by adopting MJ 2-MJ1+MJ3=JC, and comparing the intersection area parameter JC with a preset area parameter CS, wherein the preset area parameter CS is a preset value, the specific value of the preset area parameter CS is drawn by an operator according to experience, when JC < CS, the intersection area is too small, the pressure sensor is abnormal, an abnormal signal is generated, otherwise, the pressure sensor is in a normal state, and the pressure sensor is qualified.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310049044.2A CN116030075A (en) | 2023-02-01 | 2023-02-01 | Touch method based on pressure sensor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310049044.2A CN116030075A (en) | 2023-02-01 | 2023-02-01 | Touch method based on pressure sensor |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116030075A true CN116030075A (en) | 2023-04-28 |
Family
ID=86072172
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310049044.2A Pending CN116030075A (en) | 2023-02-01 | 2023-02-01 | Touch method based on pressure sensor |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116030075A (en) |
-
2023
- 2023-02-01 CN CN202310049044.2A patent/CN116030075A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20180107196A1 (en) | Method of Detecting Home Appliance Bus Control System | |
CN109115877B (en) | Curvature modal damage identification method based on DIC technology | |
CN117269731B (en) | PCBA performance automatic test system based on Internet of things | |
JP6379475B2 (en) | Vibration analyzer | |
CN111522725A (en) | SSD performance automatic evaluation method, device, equipment and medium | |
CN117889943B (en) | Gas ultrasonic flowmeter inspection method and system based on machine learning | |
CN114460439A (en) | Digital integrated circuit test system | |
JP2018170418A5 (en) | ||
KR102042936B1 (en) | Method of detecting abnormal test signal channel of automatic test equipment | |
CN114138581B (en) | Mainboard test method and system | |
CN118226236B (en) | Intelligent recognition method and device for PCB defects | |
JP2020144096A (en) | Condition monitoring/diagnosis method of object by multi-directional signal merging and diagnostic system | |
CN116030075A (en) | Touch method based on pressure sensor | |
CN113485898A (en) | Vibration measuring point display method, device, equipment and storage medium | |
CN210724738U (en) | Detection device and system for touch key switch | |
CN116665748B (en) | Automatic test equipment for flash memory chip and test method thereof | |
KR101182718B1 (en) | Multipurpose System for testing industrial instrumentation | |
CN116069654A (en) | Sound level meter software simulation evaluation device and method | |
JP3787840B2 (en) | Waveform analyzer | |
KR20030020535A (en) | Performance diagnostic apparatus and method for hydraulic pneumatic solenoid valves | |
JP2638556B2 (en) | Probe card checker | |
CN111539321A (en) | Force sensor serial number checking system and method | |
CN113537288A (en) | Method and system for training target model based on modification of sample signal | |
CN111090037A (en) | Reliability detection method for instrument control card | |
CN117745716B (en) | Visualization method and system for PCBA defects |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |