CN-121994394-A - Method for testing operating force of automobile switch
Abstract
The invention discloses an automobile switch operating force testing method which comprises the steps of (1) pressing a key, monitoring force and travel data in real time, recording and storing generated data sequences when the operating force is larger than or equal to a preset minimum force Fmin, and stopping the operation when the operating force is larger than or equal to a preset minimum force Fmin, (2) traversing the force data sequences, identifying extreme points and storing the extreme points into an array, processing the extreme points of adjacent types, calculating a force peak Gu Chazhi, discarding the extreme points with absolute values smaller than the minimum threshold, merging the same data to obtain an effective extreme point array set, (3) traversing the array set, calculating force peaks Gu Chazhi of the extreme points of adjacent different types, comparing the effective difference values with the preset threshold to form an array, and (4) sorting the difference value array, judging that a curve is invalid, and storing the peak-valley extreme point data into a two-dimensional array when the curve is invalid, and combining the travel data to form a force-travel relation array. According to the method, through multi-condition filtering and peak-valley detection, automatic and accurate testing of the operating force of the automobile switch is realized, and the problems of poor interference resistance and easiness in misjudgment of the existing method are solved.
Inventors
- TIAN BEN
- ZHOU JINPENG
- Lin Pinli
- WANG ZHENGZHONG
- Hong Yangle
- RUAN XUDONG
- Cheng Kangzhan
- GUO XIAOWEI
- CHEN XIANGUO
- LIANG SONG
Assignees
- 浙江长江汽车电子有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20260410
Claims (9)
- 1. A method for testing the operating force of an automobile switch, comprising the steps of: (1) The method comprises the steps of executing pressing operation on an automobile switch key, monitoring force data and travel data in the pressing process in real time, starting to record and store data in real time when the operation force is more than or equal to a preset minimum operation force Fmin, generating a force data sequence FnArray </SUB > ] and a travel data sequence SnArray </SUB >; (2) Traversing force data sequence FnArray [ ], identifying extremum points according to the change of the force values of adjacent points and storing the data of the extremum points into an extremum point array, wherein the extremum points are divided into two types of force peak points and force valley points, the force value of the current point is larger than the force value of the previous point and is the force peak point, and the force value of the current point is smaller than the force value of the previous point and is the force valley point; If the current extremum point is different from the previous extremum point in type, calculating a force peak Gu Chazhi of the current extremum point and the previous extremum point, and when the absolute value of the force peak Gu Chazhi is smaller than a minimum threshold fn_ minlimit of a preset force peak Gu Chazhi, discarding the data of the current extremum point to form an extremum point array after data filtering; Combining extreme points of the same data in the extreme point array to finish data filtering to obtain an effective extreme point array set after data filtering; (3) Traversing the effective extremum point group set, if the current extremum point and the previous extremum point are different in type, calculating a force peak Gu Chazhi of the current extremum point and the previous extremum point, comparing the force peak Gu Chazhi with a minimum threshold fn_ minlimit and a maximum threshold fn_ maxlimit of a preset force peak Gu Chazhi, screening effective force peaks Gu Chazhi which are larger than fn_ minlimit and smaller than fn_ maxlimit, and forming a force peak Gu Chazhi array PEAKDIFFS [ numDiffs ], wherein numDiffs is the data length; (4) Sorting the data of the force peak Gu Chazhi array PEAKDIFFS [ numDiffs ], judging whether an effective force peak Gu Chazhi exists or not, if not, judging that the corresponding operation force curve is invalid, and if so, storing the data of the peak Gu Duiji value points corresponding to each group of force peaks Gu Chazhi into a two-dimensional array fn_ outarray [ i, j ], and combining a stroke data sequence SnArray to form a force-stroke relation array (F, S); (5) And determining characteristic parameters of the automobile switch operating force based on effective force peak points, effective force valley points and corresponding strokes in the force-stroke relation array (F, S), comparing the characteristic parameters with preset standards, and completing switch qualification judgment and generating a test report.
- 2. The method for testing the operating force of the automobile switch according to claim 1 is characterized in that in the step (1), a Z-axis of triaxial equipment is controlled by a PLC to execute pressing operation on an automobile switch key, the Z-axis is a vertical force control axis, a force signal acquired in the pressing process is converted into a voltage value through a tension pressure sensor arranged at the tail end of the Z-axis, the PLC monitors the voltage value output by the tension pressure sensor in real time and converts the voltage value into the force value in real time to obtain the force data, after the Z-axis of the triaxial equipment touches the automobile switch key, when the operating force monitored by the PLC is larger than or equal to Fmin, a timer is called to interrupt, the force data and the stroke data are recorded in real time and stored in a buffer zone of the PLC, a displacement signal in the pressing process is acquired through a grating ruler, the PLC obtains the stroke value according to the displacement signal, and when the operating force exceeds a threshold value or is pressed in place, the triaxial equipment stops pressing and returns to an initial position.
- 3. The method according to claim 1, wherein in the steps (2) and (3), the extremum point array includes an index of force data sequence FnArray [ ], a force value, and a force direction, and when the current point force value is greater than the previous point force value, the force direction=0 is a force peak point mark; The current extreme point and the previous extreme point are the same in type, specifically the two are force peak points or force valley points with the same direction of force, and the current extreme point and the previous extreme point are different in type, specifically the two are force peak points and force valley points with different directions of force.
- 4. A method according to claim 1,2 or 3, wherein in step (4), the data of the force peak Gu Chazhi array PEAKDIFFS [ numDiffs ] is sorted from large to small by using bubbling sorting.
- 5. A method according to claim 1,2 or 3, wherein in the step (4), the data of the peak Gu Duiji value points corresponding to each group of force peaks Gu Chazhi includes a force peak point force value, a force peak point index, a force valley point force value and a force valley point index.
- 6. The method according to claim 5, wherein in the step (4), if the effective peak Gu Chazhi exists, the number of groups of effective peaks Gu Chazhi is further determined: a. if there is only one set of valid force peaks Gu Chazhi, storing the corresponding extreme point data for the set of force peaks Gu Chazhi into a two-dimensional array fn_ outarray [ i, j ]; b. If a plurality of groups of effective force peaks Gu Chazhi exist, only N force peaks Gu Chazhi which are arranged from large to small are reserved, wherein N is the number of gears pressed by an automobile switch once, extreme points corresponding to the peaks Gu Chazhi are found, and after the extreme points are ordered from small to large according to indexes corresponding to the force peak points and the force valley points, the corresponding extreme point data are stored in a two-dimensional array fn_ outarray [ i, j ]; And (3) respectively replacing the force peak point index and the force valley point index in fn_ outarray [ i, j ] with peak force stroke data and valley force stroke data corresponding to the same index in SnArray [ ], thereby forming a force-stroke relation array (F, S).
- 7. The method for testing the operating force of the automobile switch according to claim 1, 2 or 3, wherein the automobile switch comprises a set of force peak points and force valley points corresponding to the stress-travel relation arrays (F1, S1) and (F2, S2), respectively, and in the step (5), the characteristic parameters of the operating force of the automobile switch comprise F1, S1, F2, S2 and SNAP values, wherein the calculation formula of the SNAP values is SNAP= (F1-F2)/F2X100%, and the SNAP values are hand feeling characteristics of switch pressing.
- 8. The method for testing the operating force of the switch of the automobile according to claim 1,2 or 3, wherein the method is realized based on a testing system consisting of a host computer system, a PLC (programmable logic controller), triaxial machine equipment and a detection sensing assembly, wherein the PLC is respectively in communication connection with the host computer system, the triaxial machine equipment and the detection sensing assembly, and the detection sensing assembly comprises a tension pressure sensor and a grating ruler.
- 9. A method for testing the operating force of an automobile switch according to claim 1, 2 or 3, wherein the method is applicable to the testing of the operating force of an automobile key switch and an automobile knob switch.
Description
Method for testing operating force of automobile switch Technical Field The invention relates to the technical field of automobile electronic product production test, in particular to a test method of automobile switch operating force. Background In the production test process of the automobile switch products, the hand feeling of the switch keys directly influences the use experience of users, and abnormal switch functions can be caused if the keys are stuck, so that the peak and trough detection of the operating force is a core scene of the mechanical property test of the automobile switch key products. At present, peak and trough detection algorithms commonly used in industry include a derivative method, a threshold filtering method, a wavelet transformation method and the like. The calculation conditions of part of algorithms are too ideal, the resistance to noise fluctuation interference is weak, detection misjudgment is extremely easy to cause, the calculation efficiency of the algorithms is low, required condition parameters are more, the parameter adjustment operation is complex, and a plurality of effective peaks and valleys cannot be effectively extracted. The method is characterized in that a threshold value filtering method is used for filtering original data, but the threshold value filtering method is used for filtering partial noise, an unstable variable of the threshold value is introduced, debugging is needed for a plurality of times, the debugging time is long, the algorithm stability is poor, a wavelet transformation method is used as a time-frequency analysis tool, the detection effect of the wavelet transformation method is highly dependent on the selection of wavelet basis functions, decomposition layer numbers and threshold value parameters, the selection of the parameters often needs professional experience and repeated debugging, the generalization capability between force signals of different types of switches is poor, the detection flow is complex, and the result stability is poor. Disclosure of Invention The invention aims to overcome the defects of the prior art, provides a method for testing the operating force of an automobile switch, realizes automatic, accurate and stable testing of the operating force of the automobile switch, and solves the problems that the existing testing method is poor in interference resistance, easy to misjudge and incapable of effectively extracting a plurality of peak-valley values. The technical scheme of the invention is that the method for testing the operating force of the automobile switch comprises the following steps: (1) The method comprises the steps of executing pressing operation on an automobile switch key, monitoring force data and travel data in the pressing process in real time, starting to record and store data in real time when the operation force is more than or equal to a preset minimum operation force Fmin, generating a force data sequence FnArray </SUB > ] and a travel data sequence SnArray </SUB >; (2) Traversing force data sequence FnArray [ ], identifying extremum points according to the change of the force values of adjacent points and storing the data of the extremum points into an extremum point array, wherein the extremum points are divided into two types of force peak points and force valley points, the force value of the current point is larger than the force value of the previous point and is the force peak point, and the force value of the current point is smaller than the force value of the previous point and is the force valley point; If the current extremum point is different from the previous extremum point in type, calculating a force peak Gu Chazhi of the current extremum point and the previous extremum point, and when the absolute value of the force peak Gu Chazhi is smaller than a minimum threshold fn_ minlimit of a preset force peak Gu Chazhi, discarding the data of the current extremum point to form an extremum point array after data filtering; Combining extreme points of the same data in the extreme point array to finish data filtering to obtain an effective extreme point array set after data filtering; (3) Traversing the effective extremum point group set, if the current extremum point and the previous extremum point are different in type, calculating a force peak Gu Chazhi of the current extremum point and the previous extremum point, comparing the force peak Gu Chazhi with a minimum threshold fn_ minlimit and a maximum threshold fn_ maxlimit of a preset force peak Gu Chazhi, screening effective force peaks Gu Chazhi which are larger than fn_ minlimit and smaller than fn_ maxlimit, and forming a force peak Gu Chazhi array PEAKDIFFS [ numDiffs ], wherein numDiffs is the data length; (4) Sorting the data of the force peak Gu Chazhi array PEAKDIFFS [ numDiffs ], judging whether an effective force peak Gu Chazhi exists or not, if not, judging that the corresponding operation force curve is invalid, and if so