An automated performance detection method, detection device and system for a membrane switch
By establishing a thin film switch usage database and clustering algorithm, a real pressure parameter range is generated, which solves the problem of low authenticity of detection results in the prior art, and achieves more accurate and targeted automated performance detection.
Patent Information
- Application Number
- CN202510412776.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-03
- Publication Date
- 2025-06-17
- Estimated Expiration
- 2045-04-03
AI Technical Summary
The detection results of the automation performance detection method of thin film switches in the prior art are relatively low, mainly due to the difference between the pressing angle and pressing mode of the automation equipment and the manual operation.
By establishing a usage database for membrane switches, multiple usage parameters are obtained, including pressing pressure degree, pressing angle, pressing duration, operator gender, age and working duration. The clustering algorithm and punishment coefficient calculation standard pressing pressure is used to generate real pressure parameter ranges, and randomly generate test parameters to simulate real operation scenarios.
It improves the authenticity of the detection results of the automation performance of the film switch, can more accurately reflect the operator's usage characteristics, and enhances the targetedness of the detection.
Smart Images

Figure CN119916195B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of electrical appliance testing, and specifically to an automated performance detection method, detection device and system for membrane switches. Background Art
[0002] A membrane switch is a human-machine interface component widely used in various electronic devices, usually used to control devices such as buttons, display screens, and keyboards. It has the characteristics of simple structure, waterproof, dustproof, durable and light. The main working principle of the membrane switch is to realize the triggering of the button and signal transmission through the interaction between the conductive layer and the insulating layer in its structure, that is, when the button is pressed, the circuit is closed; when the button is released, the circuit is disconnected. Since the membrane switch needs to reach specific electrical performance, sensitivity and feedback ability to be used normally, it is particularly important to perform automated tests on the membrane switch to obtain the service life and working stability. In the prior art, the performance test method of the membrane switch is to press the finished product of the membrane switch through an automated device, and use a sensor to automatically record the electrical parameters, response time, etc. from the start to the end of the pressing, so as to analyze the actual working performance of the membrane switch. However, there are differences between the pressing angle and pressing mode of the automated device and the habits of real operators. For example, when covering the switch surface with a finger or a pressing device in the same way, the pressing device can only apply uniform force in one direction, while the human hand can have different pressing states during each pressing process due to different pressing angles and positions of the fingers, resulting in a low authenticity of the detection results of the automated device. Summary of the Invention
[0003] The purpose of this application is to provide an automated performance detection method, detection device and system for membrane switches, so as to solve the technical problem of low authenticity of the detection results of the automated performance detection method of membrane switches in the prior art.
[0004] To achieve the above purpose, this application provides the following technical solutions:
[0005] In the first aspect, this application proposes an automated performance detection method for membrane switches, and the automated performance detection method for membrane switches includes:
[0006] Based on multiple usage parameters of the membrane switch, a usage database is formed; each usage parameter is obtained in advance, and each usage parameter at least includes the pressing force, pressing angle, pressing duration, gender, age, and working duration of the operator when the membrane switch is used;
[0007] Based on the usage database, a first pressure parameter range is obtained; the first pressure parameter range includes the first minimum pressing force and the first maximum pressing force when the membrane switch is tested; the first minimum pressing force is the minimum triggering pressure of the membrane switch;
[0008] Generate test parameters based on the first pressure parameter range; the test parameters at least include the pressing force, pressing angle, and pressing duration during the thin film switch test;
[0009] Test the thin film switch based on the test parameters to obtain a test result;
[0010] Generate a performance index based on the test result; the performance index is at least used to characterize the quality of the test performance of the thin film switch.
[0011] As a specific solution in the technical solution of this application, the obtaining the first pressure parameter range based on the usage database includes:
[0012] Based on the usage database, use a clustering algorithm to obtain multiple clustering clusters; the age span of each clustering cluster is N years, and the genders of the operators in each usage parameter in the same clustering cluster are the same; where N is an integer greater than or equal to 2;
[0013] Based on each clustering cluster, obtain the standard pressing force corresponding to each clustering cluster; the standard pressing force is at least used to characterize the average pressing force of each operator in each clustering cluster;
[0014] Obtain the male-female ratio of the operators in the usage database;
[0015] Based on the male-female ratio and the standard pressing forces corresponding to each clustering cluster, obtain the first maximum pressing force;
[0016] Based on the first maximum pressing force, obtain the first pressure parameter range.
[0017] As a specific solution in the technical solution of this application, the obtaining the standard pressing force corresponding to each clustering cluster based on each clustering cluster includes:
[0018] Based on each clustering cluster, obtain the first clustering cluster; the first clustering cluster is any clustering cluster among the clustering clusters;
[0019] Based on the first clustering cluster, obtain the first usage parameter; the first usage parameter is any usage parameter other than the usage parameters with the maximum and minimum pressing forces in the first clustering cluster;
[0020] Based on the first usage parameter, obtain the corresponding penalty coefficient; the penalty coefficient at least characterizes the product of the age value and the working duration value corresponding to the first usage parameter;
[0021] Based on the first usage parameter and the corresponding penalty coefficient, obtain the standard pressing force corresponding to the first clustering cluster.
[0022] As a specific solution in the technical solution of the present application, the calculation formula for obtaining the standard pressing force corresponding to the first clustering cluster based on the first usage parameter and the corresponding penalty coefficient is as follows:
[0023]
[0024]
[0025] Wherein, represents the standard pressing force corresponding to the i-th clustering cluster; represents the number of usage parameters in the i-th clustering cluster, where is a positive integer greater than 2; represents the penalty coefficient corresponding to the j-th usage parameter in the i-th clustering cluster; represents the pressing force degree in the j-th usage parameter in the i-th clustering cluster; represents the value of the working duration in the j-th usage parameter in the i-th clustering cluster, where is greater than 0; represents the value of the operator's age in the j-th usage parameter in the i-th clustering cluster; represents that the normalization function is used to map the value within the brackets to the interval range of [-0.5, 0.5].
[0026] As a specific solution in the technical solution of the present application, the calculation formula for obtaining the first maximum pressing force based on the male-female ratio and the standard pressing force corresponding to each clustering cluster is as follows:
[0027]
[0028] Wherein, represents the first maximum pressing force; represents the male ratio of the operators in the database; represents the average value of the standard pressing forces corresponding to each male clustering cluster; represents the female ratio of the operators in the database; represents the average value of the standard pressing forces corresponding to each female clustering cluster.
[0029] As a specific solution in the technical solution of the present application, the test parameters include the first test parameter, and generating the test parameters based on the first pressure parameter range includes:
[0030] Randomly generate a test angle and a test duration based on the usage database; the test angle is the pressing angle during the test; the test duration is the pressing duration during the test; the test angle is greater than or equal to the minimum pressing angle in the usage database and less than or equal to the maximum pressing angle in the usage database; the test duration is greater than or equal to the minimum pressing duration in the usage database and less than or equal to the maximum pressing duration in the usage database;
[0031] Obtain the contact area during the test based on the test angle;
[0032] Obtain the second pressure parameter range during the test based on the contact area and the first pressure parameter range; the second pressure parameter range includes the second minimum pressing force and the second maximum pressing force during the membrane switch test; the second minimum pressing force is greater than or equal to the first minimum pressing force; the second maximum pressing force is less than or equal to the first maximum pressing force;
[0033] Randomly generate a test pressure based on the second pressure parameter range; the test pressure is the pressing force during the test; the test pressure is within the second pressure parameter range;
[0034] Generate a first test parameter based on the test angle, the test pressure, and the test duration.
[0035] As a specific solution in the technical solution of the present application, the test parameter further includes a second test parameter, and the obtaining the second pressure parameter range during the test based on the contact area and the first pressure parameter range includes:
[0036] Take the first maximum pressing force as the second maximum pressing force based on the first pressure parameter range;
[0037] Obtain the second minimum pressing force based on the contact area and the first minimum pressing force;
[0038] Obtain the second pressure parameter range during the test based on the second minimum pressing force and the second maximum pressing force.
[0039] As a specific solution in the technical solution of the present application, after generating the first test parameter based on the test angle, the test pressure, and the test duration, the method further includes:
[0040] Adjust the test angle to obtain an adjusted angle;
[0041] Obtain the adjusted contact area based on the adjusted angle;
[0042] Generate a second test parameter based on the adjusted angle and the adjusted contact area.
[0043] In a second aspect, the present application provides an automatic performance detection device for a membrane switch. The automatic performance detection device for the membrane switch includes:
[0044] A reading module, configured to form a usage database based on multiple usage parameters of the membrane switch; each usage parameter is obtained in advance, and each usage parameter at least includes the pressing force, pressing angle, pressing duration, gender, age, and working duration of the operator when the membrane switch is used;
[0045] A processing module, configured to obtain a first pressure parameter range based on the usage database; the first pressure parameter range includes a first minimum pressing force and a first maximum pressing force when the membrane switch is tested; the first minimum pressing force is the minimum trigger pressure of the membrane switch;
[0046] And, based on the first pressure parameter range, generate test parameters; the test parameters at least include the pressing force, pressing angle, and pressing duration when the membrane switch is tested;
[0047] And, based on the test parameters, test the membrane switch to obtain a test result;
[0048] And, based on the test result, generate a performance index; the performance index is at least used to characterize the quality of the test performance of the membrane switch.
[0049] As a specific solution in the technical solution of the present application, the processing module is further configured to obtain multiple clustering clusters based on the usage database by using a clustering algorithm; the age span of each clustering cluster is 5 years, and the genders of the operators in each usage parameter in the same clustering cluster are the same;
[0050] And, based on each clustering cluster, obtain a standard pressing force corresponding to each clustering cluster; the standard pressing force is at least used to characterize the average pressing force of each operator in each clustering cluster;
[0051] And, obtain the male-female ratio of the operators in the usage database;
[0052] And, based on the male-female ratio and the standard pressing forces corresponding to each clustering cluster, obtain a first maximum pressing force;
[0053] And, based on the first maximum pressing force, obtain a first pressure parameter range.
[0054] As a specific solution in the technical solution of the present application, the reading module is further configured to obtain a first clustering cluster based on each clustering cluster; the first clustering cluster is any clustering cluster among all the clustering clusters;
[0055] The processing module is further configured to obtain a first usage parameter based on the first clustering cluster; the first usage parameter is any usage parameter other than the usage parameters with the maximum and minimum pressing forces in the first clustering cluster;
[0056] And, based on the first usage parameter, obtain a corresponding penalty coefficient; the penalty coefficient at least represents the magnitude of the product of the age value and the working hours value corresponding to the first usage parameter;
[0057] And, based on the first usage parameter and the corresponding penalty coefficient, obtain the standard pressing force corresponding to the first clustering cluster.
[0058] As a specific solution in the technical solution of the present application, the formula for the processing module to obtain the standard pressing force corresponding to the first clustering cluster based on the first usage parameter and the corresponding penalty coefficient is as follows:
[0059]
[0060]
[0061] Wherein, represents the standard pressing force corresponding to the i-th clustering cluster; represents the number of usage parameters in the i-th clustering cluster, where is a positive integer greater than 2; represents the penalty coefficient corresponding to the j-th usage parameter in the i-th clustering cluster; represents the pressing force in the j-th usage parameter in the i-th clustering cluster; represents the value of the working hours in the j-th usage parameter in the i-th clustering cluster, where is greater than 0; represents the value of the operator's age in the j-th usage parameter in the i-th clustering cluster; represents the normalization function for mapping the value within the brackets to the interval [-0.5, 0.5].
[0062] As a specific solution in the technical solution of the present application, the formula for the processing module to obtain the first maximum pressing force based on the male-female ratio and the standard pressing force corresponding to each clustering cluster is as follows:
[0063]
[0064] Wherein, represents the first maximum pressing force; represents the male ratio of the operators in the database; represents the average value of the standard pressing forces corresponding to each male clustering cluster; Represents the proportion of female operators in the database; Represents the average value of the standard pressing force corresponding to each female cluster.
[0065] As a specific solution in the technical solution of this application, the processing module is further configured to randomly generate a test angle and a test duration based on the usage database; the test angle is the pressing angle during the test; the test duration is the pressing duration during the test; the test angle is greater than or equal to the minimum pressing angle in the usage database and less than or equal to the maximum pressing angle in the usage database; the test duration is greater than or equal to the minimum pressing duration in the usage database and less than or equal to the maximum pressing duration in the usage database;
[0066] And, based on the test angle, obtain the contact area during the test;
[0067] And, based on the contact area and the first pressure parameter range, obtain the second pressure parameter range during the test; the second pressure parameter range includes the second minimum pressing force and the second maximum pressing force during the thin film switch test; the second minimum pressing force is greater than or equal to the first minimum pressing force; the second maximum pressing force is less than or equal to the first maximum pressing force;
[0068] And, based on the second pressure parameter range, randomly generate a test pressure; the test pressure is the pressing force during the test; the test pressure is within the second pressure parameter range;
[0069] And, based on the test angle, the test pressure, and the test duration, generate a first test parameter.
[0070] As a specific solution in the technical solution of this application, the processing module is further configured to use the first maximum pressing force as the second maximum pressing force based on the first pressure parameter range;
[0071] And, based on the contact area and the first minimum pressing force, obtain the second minimum pressing force;
[0072] And, based on the second minimum pressing force and the second maximum pressing force, obtain the second pressure parameter range during the test.
[0073] As a specific solution in the technical solution of this application, the processing module is further configured to adjust the test angle to obtain an adjusted angle;
[0074] And, based on the adjusted angle, obtain the adjusted contact area;
[0075] And, based on the adjusted angle and the adjusted contact area, generate a second test parameter.
[0076] In a third aspect, the present application proposes an automated performance detection system for a membrane switch. The automated performance detection system for the membrane switch includes:
[0077] A reader for forming a usage database based on multiple usage parameters of the membrane switch; each usage parameter is obtained in advance, and each usage parameter includes at least the pressing force, pressing angle, pressing duration, gender, age, and working hours of the operator when the membrane switch is used;
[0078] A processor for obtaining a first pressure parameter range based on the usage database; the first pressure parameter range includes a first minimum pressing force and a first maximum pressing force when the membrane switch is tested; the first minimum pressing force is the minimum trigger pressure of the membrane switch;
[0079] And generating test parameters based on the first pressure parameter range; the test parameters include at least the pressing force, pressing angle, and pressing duration when the membrane switch is tested;
[0080] And testing the membrane switch based on the test parameters to obtain a test result;
[0081] And generating a performance index based on the test result; the performance index is at least used to characterize the quality of the test performance of the membrane switch.
[0082] As a specific solution in the technical solution of the present application, the processor is further configured to obtain multiple clustering clusters based on the usage database by using a clustering algorithm; the age span of each clustering cluster is 5 years, and the gender of the operator in each usage parameter in the same clustering cluster is the same;
[0083] And obtaining a standard pressing force corresponding to each clustering cluster based on each clustering cluster; the standard pressing force is at least used to characterize the average pressing force of each operator in each clustering cluster;
[0084] And obtaining the male-female ratio of the operators in the usage database;
[0085] And obtaining a first maximum pressing force based on the male-female ratio and the standard pressing force corresponding to each clustering cluster;
[0086] And obtaining a first pressure parameter range based on the first maximum pressing force.
[0087] As a specific solution in the technical solution of the present application, the reader is further configured to obtain a first clustering cluster based on each clustering cluster; the first clustering cluster is any clustering cluster among the clustering clusters;
[0088] The processor is further configured to obtain a first usage parameter based on the first clustering cluster; the first usage parameter is any usage parameter other than the usage parameters with the maximum and minimum pressing forces in the first clustering cluster;
[0089] and, based on the first usage parameter, obtain a corresponding penalty coefficient; the penalty coefficient at least characterizes the magnitude of the product of the age value and the working duration value corresponding to the first usage parameter;
[0090] and, based on the first usage parameter and the corresponding penalty coefficient, obtain the standard pressing force corresponding to the first clustering cluster.
[0091] As a specific solution in the technical solution of this application, the formula for the processor to obtain the standard pressing force corresponding to the first clustering cluster based on the first usage parameter and the corresponding penalty coefficient is as follows:
[0092]
[0093]
[0094] where, represents the standard pressing force corresponding to the i-th clustering cluster; represents the number of usage parameters in the i-th clustering cluster, where is a positive integer greater than 2; represents the penalty coefficient corresponding to the j-th usage parameter in the i-th clustering cluster; represents the pressing force in the j-th usage parameter in the i-th clustering cluster; represents the value of the working duration in the j-th usage parameter in the i-th clustering cluster, where is greater than 0; represents the value of the operator's age in the j-th usage parameter in the i-th clustering cluster; represents that the normalization function is used to map the value within the brackets to the interval [-0.5, 0.5].
[0095] As a specific solution in the technical solution of this application, the formula for the processor to obtain the first maximum pressing force based on the male-female ratio and the standard pressing force corresponding to each clustering cluster is as follows:
[0096]
[0097] where, represents the first maximum pressing force; represents the male ratio of the operators in the database; represents the average value of the standard pressing forces corresponding to each male clustering cluster; Represents the female proportion of the operator in the database; Represents the average value of the standard pressing force corresponding to each female clustering cluster.
[0098] As a specific solution in the technical solution of this application, the processor is further configured to randomly generate a test angle and a test duration based on the usage database; the test angle is the pressing angle during the test; the test duration is the pressing duration during the test; the test angle is greater than or equal to the minimum pressing angle in the usage database and less than or equal to the maximum pressing angle in the usage database; the test duration is greater than or equal to the minimum pressing duration in the usage database and less than or equal to the maximum pressing duration in the usage database;
[0099] And, based on the test angle, obtain the contact area during the test;
[0100] And, based on the contact area and the first pressure parameter range, obtain the second pressure parameter range during the test; the second pressure parameter range includes the second minimum pressing force and the second maximum pressing force during the thin film switch test; the second minimum pressing force is greater than or equal to the first minimum pressing force; the second maximum pressing force is less than or equal to the first maximum pressing force;
[0101] And, based on the second pressure parameter range, randomly generate a test pressure; the test pressure is the pressing force during the test; the test pressure is within the second pressure parameter range;
[0102] And, based on the test angle, the test pressure, and the test duration, generate a first test parameter.
[0103] As a specific solution in the technical solution of this application, the processor is further configured to use the first maximum pressing force as the second maximum pressing force based on the first pressure parameter range;
[0104] And, based on the contact area and the first minimum pressing force, obtain the second minimum pressing force;
[0105] And, based on the second minimum pressing force and the second maximum pressing force, obtain the second pressure parameter range during the test.
[0106] As a specific solution in the technical solution of this application, the processor is further configured to adjust the test angle to obtain an adjusted angle;
[0107] And, based on the adjusted angle, obtain the adjusted contact area;
[0108] And, based on the adjusted angle and the adjusted contact area, generate a second test parameter.
[0109] Compared with the prior art, the beneficial effects of the present application are as follows:
[0110] By randomly generating test parameters of different combinations of pressing parameters, the present application simulates the situation where an operator presses a membrane switch in a real scenario, thereby improving the authenticity of the automated performance detection results. Moreover, the present application can analyze relevant data of the operator according to the specific usage scenario of the membrane switch, and then generate corresponding parameter ranges based on the operator characteristics, thereby improving the pertinence of the automated performance detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0111] Figure 1 It is a schematic flow chart of a method for automatically detecting the performance of a membrane switch proposed in an embodiment of the present application;
[0112] Figure 2 It is a schematic structural diagram of an apparatus for automatically detecting the performance of a membrane switch proposed in an embodiment of the present application;
[0113] Figure 3 It is a schematic structural diagram of a system for automatically detecting the performance of a membrane switch proposed in an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0114] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts shall fall within the protection scope of the present application.
[0115] In the specification of the embodiments of the present application and the above-mentioned accompanying drawings, terms such as "first" and "second" are used to distinguish similar objects, and do not necessarily need to be used to describe a specific order or sequence. For example, the first maximum pressing force and the second maximum pressing force proposed below belong to different pressing forces. It should be understood that the names used in this way can be interchanged under appropriate circumstances, so that the embodiments described here can be implemented in an order other than that illustrated or described here. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device including a series of steps or modules does not necessarily have to be limited to those steps or modules clearly listed, but may include other steps or modules not clearly listed or inherent to these processes, methods, products or devices. The division of modules in the embodiments of the present application is only a logical division, and there may be other division methods in actual implementation. For example, multiple modules can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the shown or discussed coupling or direct coupling or communication connection to each other can be through some interfaces, and the indirect coupling or communication connection between modules can be electrical or other similar forms, which are not limited in the embodiments of the present application. And the modules or sub-modules described as separate components may or may not be physically separated, may or may not be physical modules, or may be distributed to multiple circuit modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of the embodiments of the present application.
[0116] In order to solve the technical problem in the background art that the authenticity of the detection results of the membrane switch is relatively low in the existing detection methods, the present application proposes an automated performance detection method for the membrane switch, as Figure 1 shown. The automated performance detection method for the membrane switch includes steps S100 to S500.
[0117] Step S100: Based on multiple usage parameters of the membrane switch, form a usage database.
[0118] In this embodiment, each usage parameter is obtained in advance, and each usage parameter includes at least the pressing force, pressing angle, pressing duration, gender, age, and working duration of the operator when the membrane switch is used. It should be noted that before forming the usage database, it is necessary to determine the specific usage scenario of the membrane switch. Because the user group and usage environment of the membrane switch will vary in different usage scenarios, different usage scenarios will affect the parameter settings for the automated detection of the membrane switch. In the following embodiments, taking the membrane switch test in the factory assembly line as an example of a usage scenario, the automated performance detection method of the membrane switch proposed in this application is illustrated. It does not mean that the automated performance detection method of the membrane switch proposed in this application is only applicable to the membrane switch test in the factory assembly line. It should be understood that the automated performance detection method of the membrane switch proposed in this application is applicable to the membrane switch test in any usage scenario.
[0119] In this embodiment, relevant information of the membrane switch operator can be obtained through methods such as questionnaire surveys and public databases. For example, relevant information of workers on a certain factory assembly line is obtained. It should be noted that the relevant information of the operator includes physical information (age, gender, etc.), working environment information (temperature, humidity, etc.), and working information (working intensity, working duration, etc.). Further, the pressing force and pressing time when the workers on the assembly line press the membrane switch are collected through sensors (pressure sensors and timers, etc.), and then a usage database is formed.
[0120] Step S200: Based on the usage database, obtain the first pressure parameter range.
[0121] It should be clear that the first pressure parameter range includes the first minimum pressing force and the first maximum pressing force during the membrane switch test. That is to say, in this embodiment, the range between the first minimum pressing force and the first maximum pressing force is the first pressure parameter range. Each type of membrane switch has a minimum trigger pressure, so the first minimum pressing force can be the minimum trigger pressure of the membrane switch. The first maximum pressing force can be the maximum pressing force in the database. If the first maximum pressing force is the maximum pressing force in the database, the authenticity of the test parameters randomly generated in step S300 is relatively poor. If the authenticity of the test parameters is relatively poor, the authenticity of the membrane switch detection result is still relatively low. In order to obtain test parameters with higher authenticity, in an embodiment of this application, step S200, based on the usage database, obtaining the first pressure parameter range includes steps S210 to S250.
[0122] Step S210: Based on the usage database, use a clustering algorithm to obtain multiple clustering clusters.
[0123] It should be clear that in a factory assembly line, since male and female operators have different pressing forces on the membrane switch, generally, male operators generate a greater pressing force, while female operators generate a smaller pressing force. Operators of different age groups also have different pressing forces on the membrane switch. Generally, young and middle-aged operators have a greater pressing force, while the elderly have a smaller pressing force. If the maximum pressing force in the database is used as the upper limit of the first pressure parameter range, the authenticity of the subsequent obtained test parameters is relatively poor. Based on this, in this embodiment, various usage parameters in the database are clustered. In this embodiment, the age span of each clustering cluster is 5 years, and the genders of the operators in each usage parameter within the same clustering cluster are the same. Of course, in other embodiments, the age span of each clustering cluster can be other age values, such as 2 years or 3 years, etc.
[0124] Step S220: Based on each clustering cluster, obtain the standard pressing force corresponding to each clustering cluster.
[0125] In the embodiment of the present application, the standard pressing force is at least used to represent the average pressing force of each operator in each clustering cluster. That is to say, in this embodiment, the average pressing force in each clustering cluster can be used as the standard pressing force corresponding to each clustering cluster.
[0126] It should be noted that the older the operator is, the smaller the pressing force of the operator. For the same operator, as the working hours increase, the fatigue degree increases, and the pressing force on the membrane switch also becomes smaller. In order to further improve the authenticity of the subsequent obtained test parameters, in an embodiment of the present application, step S220, based on each clustering cluster, obtaining the standard pressing force corresponding to each clustering cluster includes steps S221 to S224.
[0127] Step S221: Based on each clustering cluster, obtain the first clustering cluster.
[0128] In this embodiment, the first clustering cluster is any clustering cluster among all clustering clusters. That is to say, in the present application, the standard pressing force corresponding to each clustering cluster can be obtained by referring to the obtaining method of the standard pressing force of the first clustering cluster.
[0129] Step S222: Based on the first clustering cluster, obtain the first usage parameter.
[0130] In this embodiment, the first usage parameter is any usage parameter other than the usage parameters with the maximum and minimum pressing forces in the first clustering cluster. That is to say, in this embodiment, the usage parameters with the maximum and minimum pressing forces in the first clustering cluster are removed to reduce the data acquisition error.
[0131] Step S223: Obtain the corresponding penalty coefficient based on the first usage parameter.
[0132] In this embodiment, the penalty coefficient at least characterizes the magnitude of the product of the age value and the working hours value corresponding to the first usage parameter. In this embodiment, the penalty coefficient can directly be the product of the age value and the working hours value corresponding to the first usage parameter. For the convenience of adjusting the standard pressing force by the penalty coefficient in the subsequent process, in an embodiment of the present application, in step S223, the calculation formula for obtaining the corresponding penalty coefficient based on the first usage parameter can be as follows:
[0133]
[0134] Wherein, represents the penalty coefficient corresponding to the j-th usage parameter in the i-th clustering cluster; represents the value of the working hours in the j-th usage parameter in the i-th clustering cluster, where is greater than 0; represents the value of the operator's age in the j-th usage parameter in the i-th clustering cluster; represents the normalization function for mapping the value within the brackets to the interval [-0.5, 0.5]. That is to say, in this embodiment, if an operator has a greater age or longer working hours, the corresponding penalty coefficient is greater.
[0135] Step S224: Obtain the standard pressing force corresponding to the first clustering cluster based on the first usage parameter and the corresponding penalty coefficient.
[0136] In this embodiment, any reasonable method can be adopted to obtain the standard pressing force corresponding to the first clustering cluster based on the first usage parameter and the corresponding penalty coefficient. For example, in step S224, the calculation formula for obtaining the standard pressing force corresponding to the first clustering cluster based on the first usage parameter and the corresponding penalty coefficient can be as follows:
[0137]
[0138] Wherein, represents the standard pressing force corresponding to the i-th clustering cluster; represents the number of usage parameters in the i-th clustering cluster, where is a positive integer greater than 2; represents the penalty coefficient corresponding to the j-th usage parameter in the i-th clustering cluster; It represents the pressing force in the j-th usage parameter of the i-th clustering cluster. In this embodiment, the standard pressing force is adjusted by the penalty coefficient so that the standard pressing force approaches the pressing force of normal users in this age stage. It is easy to understand that in this embodiment, if the operator is older and has a longer working duration, the pressing force applied to the membrane switch is correspondingly increased by the penalty coefficient. If the operator is younger and has a shorter working duration, the pressing force applied to the membrane switch is correspondingly decreased by the penalty coefficient, so that the obtained standard pressing force approaches the pressing force of normal users in this age stage.
[0139] Step S230: Obtain the male-female ratio of the operator in the usage database.
[0140] As can be seen from the foregoing, male operators and female operators also have different pressing forces on the membrane switch. It is easy to understand that if there are more female operators of the membrane switch, the overall pressing force borne by the membrane switch during use is relatively small. If there are more male operators of the membrane switch, the overall pressing force borne by the membrane switch during use is relatively large. In other words, the maximum pressing force borne by the membrane switch during use is closely related to the male-female ratio of the operator.
[0141] Step S240: Obtain the first maximum pressing force based on the male-female ratio and the standard pressing force corresponding to each clustering cluster.
[0142] In this embodiment, the first maximum pressing force can be obtained based on the male-female ratio and the standard pressing force corresponding to each clustering cluster in any reasonable manner. For example, in step S240, the calculation formula for obtaining the first maximum pressing force based on the male-female ratio and the standard pressing force corresponding to each clustering cluster can be as follows:
[0143]
[0144] Wherein, represents the first maximum pressing force; represents the male ratio of the operator in the usage database; represents the average value of the standard pressing forces corresponding to each male clustering cluster; represents the female ratio of the operator in the usage database; represents the average value of the standard pressing forces corresponding to each female clustering cluster.
[0145] Step S250: Obtain the first pressure parameter range based on the first maximum pressing force.
[0146] As can be seen from the foregoing, in this embodiment, the lower limit of the first pressure parameter range is the minimum trigger pressure of the membrane switch, and the upper limit of the first pressure parameter range is the first maximum pressing force.
[0147] Step S300: Generate test parameters based on the first pressure parameter range.
[0148] In an embodiment of the present application, the test parameters at least include the pressing force, pressing angle, and pressing duration during the thin film switch test. It should be noted that the pressing force, pressing angle, and pressing duration during the thin film switch test in the test parameters can all be randomly generated. For example, the pressing force during the thin film switch test can be randomly generated within the first pressure parameter range, and the pressing angle and pressing duration during the thin film switch test can also be randomly generated. In this embodiment, the pressing angle during the test can be greater than or equal to the smallest pressing angle in the usage database and less than or equal to the largest pressing angle in the usage database. The pressing duration of the test can be greater than or equal to the smallest pressing duration in the usage database and less than or equal to the largest pressing duration in the usage database. It should be clear that randomly generating a certain value from a certain numerical range is a mature technology and will not be elaborated here.
[0149] It should be noted that during the detection process, in order to improve the coverage of the test results, the detection is carried out by randomly generating test parameters, so as to simulate the randomness of the operator's pressing in the real usage scenario and improve the authenticity of the detection results. The pressing angle has an impact on the pressing force. It should be clear that the minimum trigger pressure of the thin film switch refers to the minimum force that can successfully press the thin film switch along the direction perpendicular to the thin film switch. As can be seen from the previous text, different users have different usage habits. If the applied force is not in the vertical direction and the magnitude of the applied force is equal to the minimum trigger pressure of the thin film switch, it is very likely that the thin film switch cannot be successfully pressed. In other words, if the pressing angle of the randomly generated test parameter is not perpendicular to the thin film switch and the pressing force is close to the minimum trigger pressure of the thin film switch, the thin film switch may not be successfully pressed according to this test parameter. If the thin film switch cannot be successfully pressed, the test process is invalid, that is, the authenticity of the detection result is poor.
[0150] In order to enable each test parameter to successfully press the thin film switch and improve the authenticity of the detection results. In an embodiment of the present application, in step S300, generating test parameters based on the first pressure parameter range includes steps S310 to S350.
[0151] Step S310: Randomly generate a test angle and a test duration based on the usage database.
[0152] In this embodiment, the test angle is the pressing angle during the test, and the test duration is the pressing duration during the test. The test angle is greater than or equal to the smallest pressing angle in the usage database and less than or equal to the largest pressing angle in the usage database. The test duration is greater than or equal to the smallest pressing duration in the usage database and less than or equal to the largest pressing duration in the usage database.
[0153] Step S320: Based on the test angle, obtain the contact area during the test.
[0154] It is easy to understand that generally, the more perpendicular the direction of finger pressing on the membrane switch, the larger the contact area between the finger and the membrane switch, and the smaller the pressing force required to successfully press the membrane switch. That is to say, if the deviation of the pressing angle from the direction perpendicular to the membrane switch is greater, the contact area between the finger and the membrane switch is smaller, that is, the pressing force required to successfully press the membrane switch is greater. Based on this, in step S320, the calculation formula for obtaining the contact area during the test based on the test angle can be as follows:
[0155]
[0156] Wherein, represents the contact area during the test corresponding to the x-th test parameter; represents the maximum contact area of the membrane switch; represents the included angle between the direction of the test angle in the x-th test parameter and the direction of pressing the membrane switch vertically. It is easy to understand that in this embodiment, if the included angle between the direction of the test angle and the direction of pressing the membrane switch vertically is larger, that is, the difference in the two pressing directions is larger, the contact area during the test is smaller.
[0157] Step S330: Based on the contact area and the first pressure parameter range, obtain the second pressure parameter range during the test.
[0158] In this embodiment, obtaining the second pressure parameter range during the test is for randomly generating the test pressure in the test parameters from the second pressure parameter range later. It is easy to understand that the more accurate the second pressure parameter range is, the more reasonable the obtained test pressure is. That is to say, in this embodiment, the second pressure parameter range includes the second minimum pressing force and the second maximum pressing force during the test of the membrane switch; the second minimum pressing force is greater than or equal to the first minimum pressing force; the second maximum pressing force is less than or equal to the first maximum pressing force.
[0159] As can be seen from the foregoing, the second minimum pressing force is positively correlated with the contact area during testing. That is, the smaller the contact area, the greater the second minimum pressing force; the larger the contact area, the smaller the second minimum pressing force. In other words, in this embodiment, as long as the above rules are met, any reasonable method can be used to obtain the second pressure parameter range during testing based on the contact area and the first pressure parameter range. For example, in a specific embodiment of the present application, step S330 of obtaining the second pressure parameter range during testing based on the contact area and the first pressure parameter range includes steps S331 to S333.
[0160] Step S331: Based on the first pressure parameter range, use the first maximum pressing force as the second maximum pressing force.
[0161] In this embodiment, the upper limit of the second pressure parameter range is the second maximum pressing force.
[0162] Step S332: Based on the contact area and the first minimum pressing force, obtain the second minimum pressing force.
[0163] As can be seen from the foregoing, since the magnitude of the second minimum pressing force is related to the contact area during testing, the calculation formula for the second minimum pressing force can be as follows:
[0164]
[0165] Wherein, represents the second minimum pressing force corresponding to the xth test parameter; represents the minimum trigger pressure of the membrane switch; represents the contact area during testing corresponding to the xth test parameter; represents the maximum contact area of the membrane switch.
[0166] Step S333: Based on the second minimum pressing force and the second maximum pressing force, obtain the second pressure parameter range during testing.
[0167] As can be seen from the foregoing, the upper limit of the second pressure parameter range is the second maximum pressing force, and the lower limit is the second minimum pressing force. If the second minimum pressing force and the second maximum pressing force are obtained, the second pressure parameter range is obtained.
[0168] Step S340: Randomly generate a test pressure based on the second pressure parameter range.
[0169] In this embodiment, the test pressure is the pressing force during the test, and the test pressure is within the second pressure parameter range. In this embodiment, the pressing force generated based on the second pressure parameter range takes into account the pressing direction. Compared with the pressing force generated without considering the pressing direction, the randomly generated pressing force in this embodiment has a higher authenticity. That is, the authenticity of the subsequent obtained test results is also higher.
[0170] Step S350: Generate a first test parameter based on the test angle, the test pressure, and the test duration.
[0171] In this embodiment, the first test parameter is jointly composed of the test angle, the test pressure, and the test duration.
[0172] It should be clear that since the operator cannot achieve a stable pressing force like a machine when pressing the membrane switch, that is, maintaining a stable pressing force, the pressing force fluctuates during the pressing process. Therefore, it is necessary to dynamically simulate the pressing force to further improve the authenticity of the detection results. Based on this, in an embodiment of the present application, after step S350 of generating the first test parameter based on the test angle, the test pressure, and the test duration, the method further includes steps S360 to S380.
[0173] Step S360: Adjust the test angle to obtain an adjusted angle.
[0174] It should be clear that during the long-term working process, the pressing force of the operator on the membrane switch fluctuates greatly, while the fluctuation of the pressing angle is generally small. That is to say, in this embodiment, the test angle can be fine-tuned based on the test angle in the first test parameter. For example, the adjusted angle can be the test angle , or the test angle and so on.
[0175] Step S370: Obtain the adjusted contact area based on the adjusted angle.
[0176] In this embodiment, the step of obtaining the adjusted contact area based on the adjusted angle is the same as step S320, and will not be elaborated here.
[0177] Step S380: Generate a second test parameter based on the adjusted angle and the adjusted contact area.
[0178] In this embodiment, for the step of generating the second test parameter based on the adjusted contact area, refer to steps S330 to S350, and will not be elaborated here.
[0179] Step S400: Test the membrane switch based on the test parameter to obtain a test result.
[0180] It should be clear that testing the membrane switch based on various test parameters (including the first test parameter and the second test parameter in the foregoing) is a mature technology and will not be elaborated here. In this embodiment, the test results include electrical parameters of the membrane switch (such as resistance and voltage, etc.), mechanical performance parameters (such as pressing stroke change and switch rebound speed, etc.), and working performance parameters (such as reaction delay and lifespan, etc.).
[0181] Step S500: Generate a performance index based on the test results.
[0182] In this embodiment, the performance index is at least used to characterize the quality of the test performance of the membrane switch. In the embodiments of the present application, any reasonable method can be adopted to generate a performance index based on the test results. For example, for a batch of membrane switches, automated performance tests are carried out for their application scenarios, so as to obtain a large number of test result samples. According to these test result samples, the steps of generating a performance index include Step S510 to Step S540.
[0183] Step S510: Preprocess each test result sample (such as data cleaning, etc.).
[0184] It should be clear that data cleaning is a mature technology and will not be elaborated here.
[0185] Step S520: Set corresponding weights for data in different dimensions according to the requirements of the membrane switch usage scenario.
[0186] It should be clear that setting corresponding weights for data in different dimensions based on the requirements of the usage scenario is a mature technology and will not be elaborated here.
[0187] Step S530: Calculate the data mean values of different data dimensions for the preprocessed test result samples respectively.
[0188] It should be clear that calculating the average value of multiple data values is a mature technology and will not be elaborated here.
[0189] Step S540: Generate a performance index based on the data mean values of different data dimensions and the weights of data in different dimensions. The calculation formula for generating the performance index is as follows:
[0190]
[0191] Wherein, represents the performance index corresponding to the membrane switch; m represents the number of data in different dimensions; represents the weight corresponding to the data in the v-th dimension; represents the data mean value corresponding to the data in the v-th dimension; represents a normalization function, which is used to normalize the value to [0, 1] and remove the dimension.
[0192] In this embodiment, the quality of the membrane switch is directly judged based on the performance index. For example, the method of setting a threshold can be adopted. If the performance index is less than the preset value, it can be considered that the membrane switch of the current batch does not meet the usage requirements of the scenario; if the performance index is greater than or equal to the preset value, it can be considered that the membrane switch of the current batch meets the usage requirements of the scenario.
[0193] It should be clear that in the embodiment of the automatic performance detection method of the membrane switch proposed in this application, by randomly generating test parameters of different pressing parameter combinations, the situation where the operator presses the membrane switch in the real situation is simulated, which improves the authenticity of the automatic performance detection result. And this application can analyze the relevant data of the operator according to the specific usage scenario of the membrane switch, so as to generate the corresponding parameter range according to the operator characteristics, and improve the pertinence of the automatic performance detection.
[0194] After introducing the automatic performance detection method of the membrane switch proposed in the embodiment of this application, the following introduces an automatic performance detection device for a membrane switch proposed in this application. As Figure 2 shown, the automatic performance detection device 10 of the membrane switch includes:
[0195] A reading module 11, which is used to form a usage database based on multiple usage parameters of the membrane switch; each usage parameter is obtained in advance, and each usage parameter at least includes the pressing force, pressing angle, pressing duration, gender, age, and working duration of the operator when the membrane switch is used;
[0196] A processing module 12, which is used to obtain a first pressure parameter range based on the usage database; the first pressure parameter range includes the first minimum pressing force and the first maximum pressing force when the membrane switch is tested; the first minimum pressing force is the minimum triggering pressure of the membrane switch;
[0197] And, based on the first pressure parameter range, generate test parameters; the test parameters at least include the pressing force, pressing angle, and pressing duration when the membrane switch is tested;
[0198] And, based on the test parameters, test the membrane switch to obtain a test result;
[0199] And, based on the test result, generate a performance index; the performance index is at least used to characterize the quality of the test performance of the membrane switch.
[0200] As a specific embodiment in the present application, the processing module 12 is further configured to obtain a plurality of clustering clusters based on the usage database by using a clustering algorithm; the age span of each clustering cluster is 5 years, and the genders of the operators in each usage parameter within the same clustering cluster are the same;
[0201] And, based on each clustering cluster, obtain the standard pressing force corresponding to each clustering cluster; the standard pressing force is at least used to characterize the average pressing force of each operator in each clustering cluster;
[0202] And, obtain the male-female ratio of the operators in the usage database;
[0203] And, based on the male-female ratio and the standard pressing forces corresponding to each clustering cluster, obtain the first maximum pressing force;
[0204] And, based on the first maximum pressing force, obtain the first pressure parameter range.
[0205] As a specific embodiment in the present application, the reading module 11 is further configured to obtain a first clustering cluster based on each clustering cluster; the first clustering cluster is any clustering cluster among the clustering clusters;
[0206] The processing module 12 is further configured to obtain a first usage parameter based on the first clustering cluster; the first usage parameter is any usage parameter other than the usage parameters with the maximum and minimum pressing degrees in the first clustering cluster;
[0207] And, based on the first usage parameter, obtain the corresponding penalty coefficient; the penalty coefficient at least characterizes the magnitude of the product of the age value and the working duration value corresponding to the first usage parameter;
[0208] And, based on the first usage parameter and the corresponding penalty coefficient, obtain the standard pressing force corresponding to the first clustering cluster.
[0209] As a specific embodiment in the present application, the formula for the processing module 12 to obtain the standard pressing force corresponding to the first clustering cluster based on the first usage parameter and the corresponding penalty coefficient is as follows:
[0210]
[0211]
[0212] Wherein, represents the standard pressing force corresponding to the i-th clustering cluster; represents the number of usage parameters in the i-th clustering cluster, where is a positive integer greater than 2; denotes the penalty coefficient corresponding to the j-th usage parameter in the i-th clustering cluster; denotes the pressing force in the j-th usage parameter in the i-th clustering cluster; denotes the value of the working duration in the j-th usage parameter in the i-th clustering cluster, where is greater than 0; denotes the value of the operator's age in the j-th usage parameter in the i-th clustering cluster; denotes that the normalization function is used to map the value within the brackets to the range of [-0.5, 0.5].
[0213] As a specific embodiment in the present application, the processing module 12 obtains the calculation formula of the first maximum pressing force based on the male-female ratio and the standard pressing force corresponding to each clustering cluster as follows:
[0214]
[0215] where, denotes the first maximum pressing force; denotes the male ratio of the operators in the database; denotes the average value of the standard pressing forces corresponding to each male clustering cluster; denotes the female ratio of the operators in the database; denotes the average value of the standard pressing forces corresponding to each female clustering cluster.
[0216] As a specific embodiment in the present application, the processing module 12 is further configured to randomly generate a test angle and a test duration based on the usage database; the test angle is the pressing angle during the test; the test duration is the pressing duration during the test; the test angle is greater than or equal to the minimum pressing angle in the usage database and less than or equal to the maximum pressing angle in the usage database; the test duration is greater than or equal to the minimum pressing duration in the usage database and less than or equal to the maximum pressing duration in the usage database;
[0217] and, based on the test angle, obtain the contact area during the test;
[0218] and, based on the contact area and the first pressure parameter range, obtain the second pressure parameter range during the test; the second pressure parameter range includes the second minimum pressing force and the second maximum pressing force during the thin-film switch test; the second minimum pressing force is greater than or equal to the first minimum pressing force; the second maximum pressing force is less than or equal to the first maximum pressing force;
[0219] And, based on the second pressure parameter range, a test pressure is randomly generated; the test pressure is the pressing force during the test; the test pressure is within the second pressure parameter range;
[0220] And, based on the test angle, the test pressure, and the test duration, a first test parameter is generated.
[0221] As a specific embodiment in the present application, the processing module 12 is further configured to use the first maximum pressing force as the second maximum pressing force based on the first pressure parameter range;
[0222] And, based on the contact area and the first minimum pressing force, the second minimum pressing force is obtained;
[0223] And, based on the second minimum pressing force and the second maximum pressing force, the second pressure parameter range during the test is obtained.
[0224] As a specific embodiment in the present application, the processing module 12 is further configured to adjust the test angle to obtain an adjusted angle;
[0225] And, based on the adjusted angle, the adjusted contact area is obtained;
[0226] And, based on the adjusted angle and the adjusted contact area, a second test parameter is generated.
[0227] It should be clear that in the embodiment of the automatic performance detection device for the membrane switch proposed in the present application, by randomly generating test parameters with different combinations of pressing parameters, the situation where the operator presses the membrane switch under real conditions is simulated, improving the authenticity of the automatic performance detection results. And the present application can perform relevant data analysis on the operator according to the specific usage scenario of the membrane switch, so as to generate corresponding parameter ranges according to the operator characteristics, improving the pertinence of the automatic performance detection.
[0228] After introducing the automatic performance detection device for the membrane switch proposed in the embodiment of the present application, the following introduces an automatic performance detection system for a membrane switch proposed in the present application. As Figure 3 shown, the automatic performance detection system 20 for the membrane switch includes:
[0229] A reader 21, configured to form a usage database based on multiple usage parameters of the membrane switch; each usage parameter is obtained in advance, and each usage parameter includes at least the pressing force, pressing angle, pressing duration, gender, age, and working duration of the operator when the membrane switch is used;
[0230] A processor 22, configured to obtain a first pressure parameter range based on the usage database; the first pressure parameter range includes a first minimum pressing force and a first maximum pressing force during the thin film switch test; the first minimum pressing force is the minimum triggering pressure of the thin film switch;
[0231] And, based on the first pressure parameter range, generate test parameters; the test parameters at least include the pressing force, pressing angle, and pressing duration during the thin film switch test;
[0232] And, based on the test parameters, test the thin film switch to obtain a test result;
[0233] And, based on the test result, generate a performance index; the performance index is at least used to characterize the quality of the thin film switch test performance.
[0234] As a specific embodiment in the present application, the processor 22 is further configured to obtain a plurality of clustering clusters based on the usage database by using a clustering algorithm; the age span of each clustering cluster is 5 years, and the genders of the operators in each usage parameter in the same clustering cluster are the same;
[0235] And, based on each clustering cluster, obtain a standard pressing force corresponding to each clustering cluster; the standard pressing force is at least used to characterize the average pressing force of each operator in each clustering cluster;
[0236] And, obtain the male-female ratio of the operators in the usage database;
[0237] And, based on the male-female ratio and the standard pressing force corresponding to each clustering cluster, obtain the first maximum pressing force;
[0238] And, based on the first maximum pressing force, obtain the first pressure parameter range.
[0239] As a specific embodiment in the present application, the reader 21 is further configured to obtain a first clustering cluster based on each clustering cluster; the first clustering cluster is any clustering cluster among each clustering cluster;
[0240] The processor 22 is further configured to obtain a first usage parameter based on the first clustering cluster; the first usage parameter is any usage parameter other than the usage parameters with the maximum and minimum pressing forces in the first clustering cluster;
[0241] And, based on the first usage parameter, obtain a corresponding penalty coefficient; the penalty coefficient at least characterizes the magnitude of the product of the age value and the working duration value corresponding to the first usage parameter;
[0242] And, based on the first usage parameter and the corresponding penalty coefficient, obtain the standard pressing force corresponding to the first clustering cluster.
[0243] As a specific embodiment in the present application, the formula for the processor 22 to obtain the standard pressing force corresponding to the first clustering cluster based on the first usage parameter and the corresponding penalty coefficient is as follows:
[0244]
[0245]
[0246] Wherein, represents the standard pressing force corresponding to the i-th clustering cluster; represents the number of usage parameters in the i-th clustering cluster, where is a positive integer greater than 2; represents the penalty coefficient corresponding to the j-th usage parameter in the i-th clustering cluster; represents the pressing force degree in the j-th usage parameter in the i-th clustering cluster; represents the value of the working duration in the j-th usage parameter in the i-th clustering cluster, where is greater than 0; represents the value of the operator's age in the j-th usage parameter in the i-th clustering cluster; represents that the normalization function is used to map the value within the brackets to the interval range of [-0.5, 0.5].
[0247] As a specific embodiment in the present application, the formula for the processor 22 to obtain the first maximum pressing force based on the male-female ratio and the standard pressing force corresponding to each clustering cluster is as follows:
[0248]
[0249] Wherein, represents the first maximum pressing force; represents the male ratio of the operators in the usage database; represents the average value of the standard pressing forces corresponding to each male clustering cluster; represents the female ratio of the operators in the usage database; represents the average value of the standard pressing forces corresponding to each female clustering cluster.
[0250] As a specific embodiment in the present application, the processor 22 is further configured to randomly generate a test angle and a test duration based on the usage database; the test angle is the pressing angle during the test; the test duration is the pressing duration during the test; the test angle is greater than or equal to the minimum pressing angle in the usage database and less than or equal to the maximum pressing angle in the usage database; the test duration is greater than or equal to the minimum pressing duration in the usage database and less than or equal to the maximum pressing duration in the usage database;
[0251] And, based on the test angle, obtain the contact area during the test;
[0252] And, based on the contact area and the first pressure parameter range, obtain the second pressure parameter range during the test; the second pressure parameter range includes the second minimum pressing force and the second maximum pressing force during the thin film switch test; the second minimum pressing force is greater than or equal to the first minimum pressing force; the second maximum pressing force is less than or equal to the first maximum pressing force;
[0253] And, based on the second pressure parameter range, randomly generate a test pressure; the test pressure is the pressing force during the test; the test pressure is within the second pressure parameter range;
[0254] And, based on the test angle, the test pressure, and the test duration, generate a first test parameter.
[0255] As a specific embodiment in the present application, the processor 22 is further configured to use the first maximum pressing force as the second maximum pressing force based on the first pressure parameter range;
[0256] And, based on the contact area and the first minimum pressing force, obtain the second minimum pressing force;
[0257] And, based on the second minimum pressing force and the second maximum pressing force, obtain the second pressure parameter range during the test.
[0258] As a specific embodiment in the present application, the processor 22 is further configured to adjust the test angle to obtain an adjusted angle;
[0259] And, based on the adjusted angle, obtain the adjusted contact area;
[0260] And, based on the adjusted angle and the adjusted contact area, generate a second test parameter.
[0261] It should be clear that in the embodiments of the automated performance detection system for the membrane switch proposed in this application, by randomly generating test parameters with different combinations of pressing parameters, the situation where an operator presses the membrane switch in a real scenario is simulated, thereby improving the authenticity of the automated performance detection results. Moreover, this application can analyze relevant data of the operator according to the specific usage scenario of the membrane switch, and thus generate corresponding parameter ranges based on the operator's characteristics, improving the pertinence of the automated performance detection.
[0262] It should be clear that the computer-readable storage medium in this application includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. The information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase change memory, static random access memory, dynamic random access memory, other types of random access memory, read-only memory, electrically erasable programmable read-only memory, flash memory, or other memory technologies, compact disc read-only memory, digital versatile disc, or other optical storage, magnetic cassette tape, disk storage, or other magnetic storage devices, or any other non-transmission medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media do not include transient computer-readable media, such as modulated data signals and carrier waves.
[0263] In the above embodiments, the descriptions of the respective embodiments have their own focuses. For parts not detailed in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0264] Those skilled in the art can clearly understand that for the sake of convenience and brevity of description, the specific working processes of the methods, devices, and equipment described above can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated herein.
[0265] In several embodiments provided by the embodiments of this application, it should be understood that the disclosed devices, apparatuses, and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the modules is only a logical function division, and there can be other division methods in actual implementation. For example, multiple modules 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 couplings or direct couplings or communication connections to each other can be through some interfaces, and the indirect couplings or communication connections of the devices or modules can be in electrical, mechanical, or other forms.
[0266] The module described as a separation component may or may not be physically separated. The component shown as a module may or may not be a physical module, that is, it may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0267] In addition, in each embodiment of this application, each functional module can be integrated in a processing module, or each module can exist physically alone, or two or more modules can be integrated in one module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can be stored in a computer-readable storage medium.
[0268] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product.
[0269] The computer program product includes one or more computer instructions. When the computer program is loaded and executed on a computer, it generates in whole or in part the processes or functions described in the embodiments of this application. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (such as coaxial cable, optical fiber, digital subscriber line) or wirelessly (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can store or a data storage device such as a server or data center that includes one or more integrated available media. The available medium can be a magnetic medium (such as a floppy disk, hard disk, magnetic tape), an optical medium (such as a digital video disc), or a semiconductor medium (such as a solid-state drive (SSD)).
[0270] Although the embodiments of this application have been shown and described, for those of ordinary skill in the art, it can be understood that various changes, modifications, substitutions, and variations can be made to these embodiments without departing from the principles of this application.
Claims
1. A method for automatically detecting the performance of a membrane switch, characterized in that: include: Based on multiple usage parameters of the membrane switch, a usage database is formed; each usage parameter is acquired in advance, and each usage parameter at least includes the pressing force, pressing angle, pressing time, operator's gender, age, and working time when the membrane switch is used; Based on the usage database, a first pressure parameter range is acquired; the first pressure parameter range includes a first minimum pressing force and a first maximum pressing force during the membrane switch test; the first minimum pressing force is a minimum triggering pressure of the membrane switch; Based on the first pressure parameter range, generating test parameters; the test parameters at least include the pressing force, pressing angle and pressing duration during the membrane switch test; Based on the test parameters, the membrane switch is tested to obtain a test result; generating a performance index based on the test results; The performance index is at least used to characterize the quality of the test performance of the membrane switch.
2. The automatic performance detection method of a membrane switch according to claim 1, characterized in that: The obtaining of a first pressure parameter range based on the usage database includes: Based on the usage database, a clustering algorithm is used to obtain multiple clusters; the age span of each cluster is N years, and the gender of operators in each usage parameter in the same cluster is the same; wherein N is an integer greater than or equal to 2; Based on each cluster, a standard pressing force corresponding to each cluster is obtained; the standard pressing force is at least used to characterize an average pressing force of each operator in each cluster; Obtaining the male-female ratio of operators in the usage database; Obtaining a first maximum pressing force based on the male-female ratio and the standard pressing force corresponding to each cluster; A first pressure parameter range is acquired based on the first maximum pressing force.
3. The automatic performance detection method of a membrane switch according to claim 2, characterized in that: The step of obtaining the standard pressing force corresponding to each cluster based on each cluster includes: Based on each clustering cluster, a first clustering cluster is obtained; the first clustering cluster is any clustering cluster among each clustering cluster; Based on the first cluster, a first usage parameter is acquired; the first usage parameter is any usage parameter except the usage parameter with the largest pressing force and the usage parameter with the smallest pressing force in the first cluster; Based on the first usage parameter, a corresponding penalty coefficient is obtained; the penalty coefficient at least represents the size of the product of the age value and the working time value corresponding to the first usage parameter; Based on the first usage parameter and the corresponding penalty coefficient, a standard pressing force corresponding to the first cluster is obtained.
4. The method for automatic performance detection of a membrane switch according to claim 3, characterized in that: The calculation formula for obtaining the standard pressing force corresponding to the first cluster based on the first usage parameter and the corresponding penalty coefficient is as follows: in, represents the standard pressing force corresponding to the i-th cluster; represents the number of parameters used in the i-th cluster, where is a positive integer greater than 2; Represents the penalty coefficient corresponding to the jth usage parameter in the i-th cluster; represents the pressing intensity in the jth usage parameter in the i-th cluster; represents the value of the working time in the jth usage parameter in the i-th cluster, where Greater than 0; represents the value of the operator's age in the jth usage parameter in the i-th cluster; It indicates that the normalization function is used to map the values in the brackets to the interval [-0.5, 0.5].
5. The automated performance detection method for a membrane switch according to any one of claims 2 to 4, characterized in that: The calculation formula for obtaining the first maximum pressing force based on the male-female ratio and the standard pressing force corresponding to each cluster is as follows: in, Indicates the first maximum pressing force; indicates the proportion of males using the operators in the database; Represents the average value of the standard pressing force corresponding to each male cluster; indicates the proportion of women using the operators in the database; Represents the average value of the standard pressing force corresponding to each female cluster.
6. The method for automatic performance detection of a membrane switch according to claim 5, characterized in that: The test parameter includes a first test parameter, and the generating of the test parameter based on the first pressure parameter range includes: Based on the usage database, a test angle and a test duration are randomly generated; the test angle is the pressing angle during the test; the test duration is the pressing duration during the test; the test angle is greater than or equal to the smallest pressing angle in the usage database, and less than or equal to the largest pressing angle in the usage database; the test duration is greater than or equal to the smallest pressing duration in the usage database, and less than or equal to the largest pressing duration in the usage database; Based on the test angle, obtaining the contact area during the test; Based on the contact area and the first pressure parameter range, a second pressure parameter range during the test is obtained; the second pressure parameter range includes a second minimum pressing force and a second maximum pressing force during the membrane switch test; the second minimum pressing force is greater than or equal to the first minimum pressing force; the second maximum pressing force is less than or equal to the first maximum pressing force; Based on the second pressure parameter range, a test pressure is randomly generated; the test pressure is the pressing force during the test; the test pressure is within the second pressure parameter range; A first test parameter is generated based on the test angle, the test pressure and the test duration.
7. The method for automatic performance detection of a membrane switch according to claim 6, characterized in that: The test parameters further include a second test parameter, and obtaining the second pressure parameter range during the test based on the contact area and the first pressure parameter range includes: Based on the first pressure parameter range, using the first maximum pressing force as the second maximum pressing force; Based on the contact area and the first minimum pressing force, acquiring the second minimum pressing force; Based on the second minimum pressing force and the second maximum pressing force, a second pressure parameter range during testing is acquired.
8. The method for automatic performance detection of a membrane switch according to claim 6, characterized in that: After generating the first test parameter based on the test angle, the test pressure and the test duration, the method further includes: Adjusting the test angle to obtain an adjusted angle; Based on the adjustment angle, obtaining an adjusted contact area; A second test parameter is generated based on the adjustment angle and the adjusted contact area.
9. An automatic performance detection device for a membrane switch, characterized in that: include: A reading module, used to form a usage database based on multiple usage parameters of the membrane switch; each usage parameter is acquired in advance, and each usage parameter at least includes the pressing force, pressing angle, pressing time, operator's gender, age, and working time when the membrane switch is used; A processing module, configured to obtain a first pressure parameter range based on the usage database; the first pressure parameter range includes a first minimum pressing force and a first maximum pressing force during the membrane switch test; the first minimum pressing force is a minimum triggering pressure of the membrane switch; And, based on the first pressure parameter range, generating test parameters; the test parameters at least include the pressing force, pressing angle and pressing duration during the membrane switch test; and, based on the test parameters, testing the membrane switch to obtain a test result; and, based on the test results, generating a performance index; The performance index is at least used to characterize the quality of the test performance of the membrane switch.
10. An automated performance testing system for a membrane switch, characterized in that: include: A reader, used to form a usage database based on multiple usage parameters of the membrane switch; each usage parameter is acquired in advance, and each usage parameter at least includes the pressing force, pressing angle, pressing time, operator's gender, age, and working time when the membrane switch is used; A processor, configured to obtain a first pressure parameter range based on the usage database; the first pressure parameter range includes a first minimum pressing force and a first maximum pressing force during the membrane switch test; the first minimum pressing force is a minimum triggering pressure of the membrane switch; And, based on the first pressure parameter range, generating test parameters; the test parameters at least include the pressing force, pressing angle and pressing duration during the membrane switch test; and, based on the test parameters, testing the membrane switch to obtain a test result; and, based on the test results, generating a performance index; The performance index is at least used to characterize the quality of the test performance of the membrane switch.
Citation Information
Patent Citations
Equipment data query method and device, server and computer readable storage medium
CN114356958A
Test method, system, readable storage medium and electronic device for process control
US20210149782A1