Method for testing precision of built-in position sensor of motorcycle shock absorber

By simulating multiple working conditions in the built-in position sensor test of motorcycle shock absorbers, analyzing data interference characteristics and optimizing filtering processing, the problem of dynamic performance not considered in traditional testing methods is solved, and a more accurate accuracy evaluation is achieved.

CN120275059AActive Publication Date: 2025-07-08RUIAN KEFENG ELECTRONICS

Patent Information

Application Number
CN202510749565.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-06
Publication Date
2025-07-08
Estimated Expiration
2045-06-06

AI Technical Summary

Technical Problem

The existing built-in position sensor accuracy test method for motorcycle shock absorbers is mainly carried out in a laboratory environment, and cannot simulate the dynamic performance of the motorcycle during actual driving. Complex factors such as vibration, impact and electromagnetic interference are not considered, resulting in a deviation from the actual use.

Method used

Various working conditions during motorcycle riding are used to obtain various data of the position sensor, and the timing changes and interference characteristics of the data are analyzed, the covariance matrix is optimized using the Kalman filtering algorithm, and the sensor accuracy is evaluated in combination with quantitative indicators.

Benefits of technology

It improves the accuracy of the built-in position sensor accuracy test of motorcycle shock absorbers, reduces the deviation between the test results and actual use, and enhances the reliability of the test.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120275059A_ABST
    Figure CN120275059A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of sensor precision testing, in particular to a motorcycle shock absorber built-in position sensor precision testing method, which comprises the following steps: acquiring position data of a motorcycle shock absorber built-in position sensor, shock acceleration of a shock absorber and moving speed of the shock absorber under different working conditions; acquiring a three-dimensional feature vector corresponding to each working condition, performing clustering division on all the three-dimensional feature vectors, calculating a comprehensive interference feature value of each category after clustering so as to divide each category into a large interference set and a small interference set, and optimizing a covariance matrix of position data corresponding to the large interference set and the small interference set during Kalman filtering; and testing the precision of the built-in position sensor of the motorcycle shock absorber based on the error between the filtered position data and the preset standard displacement data of the linear motor. The accuracy of the precision test of the built-in position sensor of the motorcycle shock absorber can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of sensor accuracy testing, and specifically relates to a method for testing the accuracy of an in-built position sensor of a motorcycle shock absorber. Background Art

[0002] The motorcycle shock absorber is an important component of the motorcycle running system. Installing a position sensor in the motorcycle shock absorber can monitor the working state of the shock absorber in real time, accurately obtain information such as the telescopic displacement and speed of the shock absorber. The accuracy of the position sensor directly affects the performance of the motorcycle shock absorption system. If the sensor accuracy is insufficient, it will cause the electronic control system to receive incorrect information, resulting in improper adjustment of the shock absorber, and further affecting the driving stability, comfort and controllability of the motorcycle. Therefore, testing the sensor accuracy can ensure the reliable performance of the sensor and ensure the normal operation of the motorcycle shock absorption system.

[0003] Currently, the accuracy testing of position sensors mostly uses static measurement methods. High-precision displacement measurement devices, such as laser interferometers and grating scales, are used to calibrate and test the sensors in a laboratory environment. The sensor is installed on a test bench, and by driving the test bench to generate precise displacements, the output data of the sensor is compared with the standard displacement value to calculate the error. However, this method has limitations. It can only simulate static working conditions and cannot reflect the dynamic performance of the sensor during the actual running of the motorcycle. Moreover, the test environment is idealized and does not consider the influence of complex factors such as vibration, shock, and electromagnetic interference during the operation of the motorcycle, resulting in a deviation between the test results and the actual use situation. Summary of the Invention

[0004] In order to solve the above technical problems, this application provides a method for testing the accuracy of an in-built position sensor of a motorcycle shock absorber to solve the existing problems.

[0005] The method for testing the accuracy of an in-built position sensor of a motorcycle shock absorber in this application adopts the following technical solutions: An embodiment of this application provides a method for testing the accuracy of an in-built position sensor of a motorcycle shock absorber, including the following steps: Obtain various types of data under different working conditions, including: various position data of the in-built position sensor of the motorcycle shock absorber, the acceleration of the shock absorber vibration, and the moving speed of the shock absorber; Analyze the time-series changes of various types of data under each working condition and extract the peaks in various types of data. According to the deviation situation between the time corresponding to each peak in the position data and the time corresponding to each peak in the acceleration data and the moving speed, combined with the deviation situation of the peak amplitudes in the position data and the number of peaks in the position data, obtain the three-dimensional feature vector corresponding to each working condition, and perform clustering division on all three-dimensional feature vectors; According to the average level of the same element in all three-dimensional feature vectors within each category after clustering, and the significant fluctuation of each element in all three-dimensional feature vectors within each category, the comprehensive interference eigenvalue of each category is obtained. The categories after clustering are divided into large and small interference sets based on the average level of all comprehensive interference eigenvalues, and the covariance matrix during Kalman filtering for the position data corresponding to the large and small interference sets is optimized; Based on the error between the filtered position data under different working conditions and the standard displacement data of the preset linear motor, a quantization index is obtained to test the accuracy of the built-in position sensor of the motorcycle shock absorber.

[0006] Preferably, the method for obtaining the three-dimensional feature vector corresponding to each working condition is: For each working condition, curve fitting is respectively performed on various types of data to obtain the time-series change curves of various types of data, and the peaks of the time-series change curves of various types of data are extracted; and according to the differences between the times corresponding to the peaks in the position data and the times corresponding to the peaks in the relative acceleration data and the moving speed, the relative peak offset value of the position data is obtained. The peak deviation coefficient of the position data is analyzed by comparing the amplitudes of the peaks in the position data, and the number of peaks in the position data is used as the eigenvalue of the interference effect. The normalized relative peak offset value, peak deviation coefficient, and eigenvalue under each working condition form the three-dimensional feature vector corresponding to each working condition.

[0007] Preferably, the method for obtaining the relative peak offset value further includes: Calculate the absolute values of the differences between the times corresponding to the peaks in the position data and the times corresponding to the peaks in the acceleration data and the speed data respectively, and take the average of all absolute values as the relative peak offset value of the position data.

[0008] Preferably, the method for obtaining the peak deviation coefficient further includes: calculating the difference between the amplitude of each peak in the position data and the standard displacement data of the corresponding linear motor at the position where each peak is located, calculating the ratio of this difference to the corresponding standard displacement data, and taking the sum of all ratios as the peak deviation coefficient of the position data.

[0009] Preferably, the method for obtaining the comprehensive interference eigenvalue of each category is: ; where represents the comprehensive interference eigenvalue of the th category after clustering; represents the mean value of the th element in all three-dimensional feature vectors in the th category after clustering; and respectively represent the The weights of the nd and th elements in all three-dimensional feature vectors of each category; represents the number of elements in the three-dimensional feature vector.

[0010] Preferably, the method for obtaining the weights is further: calculating the coefficient of variation of the same element in all three-dimensional feature vectors of each category after clustering as the weight of the same element.

[0011] Preferably, the method for dividing the large and small interference sets is: using the mean value of all comprehensive interference eigenvalues as the judgment threshold, and dividing the categories with comprehensive interference eigenvalues greater than the judgment threshold into the large interference set, otherwise, dividing them into the small interference set.

[0012] Preferably, the method for optimizing the covariance matrix when filtering the position data corresponding to the large and small interference sets includes: For the large interference set, increasing the covariance matrix by a first preset multiple; for the small interference set, reducing the covariance matrix by a second preset multiple, where the first preset multiple ranges from 2 to 4, and the second preset multiple ranges from 0.2 to 0.4.

[0013] Preferably, the method for obtaining the quantization index is: For the position data after filtering under each working condition, calculate the absolute error and relative error between the position data of each position and the standard displacement data of the linear motor respectively, and calculate the average value of the absolute errors corresponding to all positions and the average value of the relative errors corresponding to all positions under each working condition, which are respectively recorded as the first average value and the second average value, both of which are used as the quantization indexes of the accuracy of the position sensor under each working condition.

[0014] Preferably, the test on the accuracy of the built-in position sensor of the motorcycle shock absorber further includes: Preset the accuracy requirements for each quantization index. When the position sensor meets the accuracy requirements for all quantization indexes under all working conditions, the accuracy test of the built-in position sensor of the motorcycle shock absorber is qualified; if there is any quantization index that does not meet the accuracy requirements under any working condition, the test accuracy of the built-in position sensor of the motorcycle shock absorber is unqualified.

[0015] This application has at least the following beneficial effects: This application takes into account that the accuracy test of the traditional built-in position sensor of the motorcycle shock absorber mostly uses the static test method. Due to the lack of full analysis of complex dynamic factors such as vibration, shock, and electromagnetic interference during motorcycle operation, the test results deviate greatly from the actual application scenario. This application comprehensively collects, analyzes, and precisely processes the data of the built-in position sensor by simulating various working conditions during motorcycle riding; Since there are significant differences in the degree of interference of dynamic test data under different working conditions by actual measurements, in this application, a comparative analysis of hysteresis and interference influence intensity is carried out on the test data under each working condition, and the test data is accurately divided according to the analysis results, so as to accurately identify the comprehensive interference influence characteristics under different working conditions in the dynamic test process; Compared with the traditional static test method, this application can not only effectively reduce the deviation between the test results and the actual use situation, but also reduce the influence of the measurement interference differences under different working conditions in the actual detection process, and improve the accuracy of the precision test of the built-in position sensor of the motorcycle shock absorber. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0017] Figure 1 It is a flowchart of the steps of a method for testing the accuracy of a built-in position sensor of a motorcycle shock absorber provided by the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0018] In order to further elaborate on the technical means and effects adopted by the present application to achieve the predetermined invention purpose, the following, in combination with the accompanying drawings and preferred embodiments, details the specific implementation manners, structures, features and effects of a method for testing the accuracy of a built-in position sensor of a motorcycle shock absorber proposed according to the present application. In the following description, different "one embodiment" or "another embodiment" do not necessarily refer to the same embodiment. In addition, the specific features, structures or characteristics in one or more embodiments can be combined in any suitable form.

[0019] Unless otherwise defined, terms such as "including", "comprising" or any other variant thereof are intended to cover non-exclusive inclusion, so that a circuit structure, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such article or device. Without further limitation, an element defined by the statement "including one..." does not exclude the existence of another identical element in the article or device including the said element. In addition, the term "and / or" used herein includes any and all combinations of one or more of the related listed items. All technical and scientific terms used herein have the same meaning as commonly understood by those of ordinary skill in the technical field to which the present application belongs.

[0020] The following specifically describes the specific solution of a method for testing the accuracy of an in - built position sensor of a motorcycle shock absorber in conjunction with the accompanying drawings.

[0021] A method for testing the accuracy of an in - built position sensor of a motorcycle shock absorber provided by an embodiment of the present application. Specifically, please refer to Figure 1 , including the following steps: Step 1: Obtain various types of data under different working conditions, including: position data of the in - built position sensor of the motorcycle shock absorber, acceleration of the shock absorber vibration, and moving speed of the shock absorber.

[0022] In this embodiment, a high - precision linear motor is selected to achieve precise control of the telescopic displacement of the shock absorber and simulate the stroke changes of the shock absorber under different road conditions. At the same time, a vibration generator capable of generating vibrations with a frequency range of 0 - 50 Hz and an acceleration range of 0 - 5g is installed to simulate the road vibrations during motorcycle driving, where g is the acceleration due to gravity. On the other hand, a multi - channel data acquisition card is prepared, and the sampling frequency should be not less than 1 kHz to ensure accurate acquisition of various sensor data. Specifically, the in - built position sensor to be tested is firmly installed on the simulated shock absorber according to the actual installation method of the motorcycle to obtain the position data of the shock absorber at each position, that is, displacement data, which is called position data in this embodiment for the convenience of understanding and expression. At the same time, an acceleration sensor and a speed sensor are installed. The acceleration sensor is used to monitor the acceleration change of the shock absorber vibration; the speed sensor is used to measure the moving speed of the shock absorber.

[0023] Furthermore, in this embodiment, a laser interferometer with an accuracy of ±0.001 mm is used to calibrate the displacement output of the linear motor to ensure the accuracy and reliability of the output displacement. During the calibration process, multiple measurement points are selected within the stroke range of the linear motor, the deviation between the measurement value of the laser interferometer and the set value of the linear motor is recorded, and correction is made. According to the calibration specification of the accelerometer, a standard acceleration source is used to calibrate the acceleration sensor, and the calibration frequency range covers 0 - 50 Hz required for the test. Similarly, the speed sensor is calibrated. In this embodiment, a high - precision tachometer is used as a reference to ensure the accuracy of speed measurement. It should be noted that the implementer of the specific calibration process can select other methods. This embodiment only gives one implementation method and does not make special limitations on this.

[0024] In this embodiment, according to the common driving conditions of motorcycles, 100 different combinations of displacement, linear motor speed, and vibration parameters are set, that is, multiple different road conditions are simulated to collect data under different working conditions. Specifically, for example, when simulating a flat road surface, the linear motor is set to reciprocate 50 mm at a speed of 0.1 m / s, and the vibration generator outputs vibrations with a vibration frequency of 20 Hz and an acceleration of 1 g; when simulating a bumpy road surface, the speed is adjusted to 0.05 m / s, the displacement range is expanded to 80 mm, the vibration frequency is increased to 30 Hz, and the acceleration is increased to 3 g. In this embodiment, 5 different operating cycles are set for each working condition, and the duration of each cycle is 30 to 60 seconds to obtain sufficient data for analysis. In the actual application scenario, the specific data collection process can be set by the implementer, and this application does not make special restrictions for comparison.

[0025] Further start data collection, and synchronously collect the data of the position sensor, acceleration sensor, and speed sensor. Before each working condition runs, collect 10 seconds of static data as a reference benchmark for subsequent data processing. During the operation of each simulated working condition, continuously collect data at the sampling frequency of 1 kHz set in this embodiment to ensure the integrity and accuracy of the data. The collected data is stored in the computer in real time and adopts the HDF5 data storage format for subsequent processing and analysis.

[0026] Under normal circumstances, the main interferences in the flat road surface working condition may come from the slight vibration of the motor, the thermal noise of electronic components, and the electromagnetic interference of the surrounding environment; in the bumpy road surface working condition, the vibration intensity increases significantly, which may cause large fluctuations in the measured values of the sensors. At the same time, due to the intense vibration, additional noises may also be generated by the friction and collision between mechanical components, and the electromagnetic interference may be enhanced due to the vibration of the vehicle's electrical system. Therefore, during the simulation of the movement of a motorcycle under different working conditions, the accuracy of its test data may be affected by different sources and different degrees of interference, resulting in a large deviation in the test of the sensor accuracy due to the difference in dynamic interference when facing the accuracy test of the built-in sensor of the motorcycle shock absorber.

[0027] Based on the above analysis, in this embodiment, the Kalman filter algorithm is used to perform filtering and noise reduction processing on the collected data. Among them, the state observation equation of the system is constructed through the data collected by the position sensor and the data collected by the speed sensor; the observation equation is constructed through the relationship between the data measured by the position sensor and the real position. Using the Kalman filter to construct the state equation and observation equation of the system is well-known technology to those skilled in the art and will not be elaborated here.

[0028] In this embodiment, the influence difference of the state measurement interference of different working conditions in the actual dynamic simulation process will be considered, and the covariance matrix in the data filtering process for the built-in position sensor of the motorcycle shock absorber will be optimized and adjusted.

[0029] Step 2: Analyze the time-series changes of various types of data under each working condition and extract the peaks in various types of data. According to the deviation of the time corresponding to each peak in the position data from the time corresponding to each peak in the acceleration data and the moving speed, combined with the deviation of the peak amplitude in the position data and the number of peaks in the position data, obtain the three-dimensional feature vector corresponding to each working condition, and perform clustering division on all three-dimensional feature vectors.

[0030] First, due to the interference differences under different working condition changes in the actual simulation process, the data collected during the actual test will show asynchronous change characteristics due to working condition differences, that is, due to different degrees of interference, the response of the position, acceleration, and speed sensors is different; and during the test of the position sensor, through the asynchronous characteristics of the position sensor compared with the acceleration and speed, the interference characteristics of the position sensor during the test under different working conditions are analyzed during the filtering process.

[0031] For each working condition, perform curve fitting on various types of data to obtain the time-series change curves of various types of data. In this embodiment, preferably, for each type of data collected under each working condition, map it to a two-dimensional rectangular coordinate system with the abscissa being the collection time and the ordinate being the corresponding data value, to obtain the time-series change curve corresponding to each type of data collected; to accurately analyze the interference characteristics generated during the test of the position sensor under different working conditions, in this embodiment, by comparing the asynchronous characteristic differences of the data changes caused by the interference in the time-series change curves between the collected data, use the time-series change curve corresponding to each type of data as the input, and adopt a peak detection algorithm to obtain the position and amplitude of the peaks in the time-series change curve. The position of the peak represents the time corresponding to the peak; specifically, in this embodiment, the peak detection algorithm uses a sliding window method based on local maximum search.

[0032] Furthermore, calculate the relative peak offset value of the time corresponding to the peak in the position data compared with the time corresponding to the peak in the acceleration data and the speed data. Specifically, calculate the absolute value of the difference between the time corresponding to each peak in the position data and the time corresponding to each peak in the acceleration data and the speed data respectively, and take the average value of all absolute values as the relative peak offset value of the position data; the relative peak offset value reflects the lag characteristic of the response during the actual test of the position sensor under different working conditions. It should be noted that during the calculation process of the relative peak offset value, if the number of peaks in the position data is not equal to the number of peaks in the acceleration data and the number of peaks in the speed data, only calculate and analyze according to the situation corresponding to the data with the least number of peaks.

[0033] Further, for each peak in the position data, calculate the difference between the amplitude of each peak in the position data and the standard displacement data of the linear motor corresponding to the position where each peak is located, calculate the ratio of this difference to the corresponding standard displacement data, and take the sum of all the ratios as the peak deviation coefficient of the position data. It should be noted that during the simulation process, the standard displacement data of the linear motor at each position is fixed and can be obtained by the implementer through self-measurement. The specific process will not be elaborated in this embodiment. The larger the peak deviation coefficient, the greater the deviation caused by the interference of the position data collected under the current working condition.

[0034] Further, to accurately analyze the interference frequency characteristics of the position sensor test under different working conditions, for the current working condition, take the number of peaks in the position data as the characteristic value of the interference effect. The larger the characteristic value, the greater the degree of interference during the dynamic test.

[0035] Therefore, based on the above analysis, compare and analyze the interference effect characteristics of the position sensor dynamic test under different working conditions. Based on the analysis results, cluster and divide the interference characteristics under different working conditions to achieve the division and judgment of the interference modes under different working conditions.

[0036] Specifically, during the dynamic test of the position sensor under different working conditions, to eliminate the influence of dimension differences on the analysis of interference characteristics under different working conditions, take the relative peak offset value, peak deviation coefficient, and characteristic value calculated under each working condition as inputs and perform standardization processing using the normalization algorithm. The specific normalization process is a well-known prior art and will not be elaborated in this embodiment. The normalized relative peak offset value, peak deviation coefficient, and characteristic value under each working condition form a three-dimensional characteristic vector corresponding to each working condition, which is used to represent the measurement interference characteristics of the position sensor under each working condition.

[0037] It should be noted that each three-dimensional characteristic vector contains three elements, and the elements represented by the same position in different three-dimensional characteristic vectors are the same. In this embodiment, the element corresponding to the first position in the three-dimensional characteristic vector is the normalized offset value, the element corresponding to the second position is the normalized deviation coefficient, and the element corresponding to the third position is the normalized characteristic value.

[0038] Take the three-dimensional characteristic vectors of all working conditions as inputs and use the agglomerative hierarchical clustering algorithm to divide the measurement interference characteristics under different working conditions. During the clustering process, measure the similarity of the measurement interference characteristics between different working conditions by calculating the Euclidean distance between the three-dimensional characteristic vectors, and classify the data with similar measurement interference characteristics into the same category, so as to achieve the accurate classification of the measurement interference characteristics of the position sensor under different working conditions and compare the hysteresis and interference intensity differences between different working conditions.

[0039] Step 3: According to the average level of the same element in all three-dimensional feature vectors within each category after clustering, and the significant fluctuation of each element in all three-dimensional feature vectors within each category, obtain the comprehensive interference eigenvalue of each category. Combine the average level of all comprehensive interference eigenvalues to divide the categories after clustering into large and small interference sets, and optimize the covariance matrix when performing Kalman filtering on the various data corresponding to the large and small interference sets.

[0040] Conduct dynamic measurement interference sensitivity analysis under different working conditions for each category of data after clustering; since the same type of working conditions have similar interference characteristics, but there are differences in the response characteristics to hysteresis and interference intensity, it is necessary to further quantitatively analyze the sensitivity of different working conditions to measure interference characteristics. Specifically, calculate the coefficient of variation of the same element in all three-dimensional feature vectors in each category after clustering as the weight of the same element. The weight reflects the stability of specific interference characteristics under the same type of working conditions. The larger the weight, the more significant the fluctuation of the corresponding feature of the element among different working conditions and the worse the stability. The calculation method of the coefficient of variation is prior art and will not be elaborated in this embodiment.

[0041] Furthermore, the larger the calculated coefficient of variation, the greater the impact of the corresponding element on the comprehensive interference feature analysis due to poor stability. Therefore, in this embodiment, by analyzing the stability of measurement interference characteristics under different categories after clustering, calculate the comprehensive interference eigenvalue of each category after clustering , and the specific calculation formula is as follows: ; where, represents the comprehensive interference eigenvalue of the th category after clustering; represents the mean value of the th element in all three-dimensional feature vectors in the th category after clustering; and respectively represent the weights of the th and th elements in all three-dimensional feature vectors in the th category after clustering; represents the number of three-dimensional feature vectors in the th category.

[0042] It can be understood that the larger the calculated comprehensive interference eigenvalue, the greater the possibility of significant hysteresis and large interference intensity caused by interference during dynamic testing under different working conditions of the current category based on the comprehensive analysis of interference influence characteristics under different working conditions of each category.

[0043] Further, based on the above analysis results of the comprehensive interference characteristics of different categories after division, the measurement noise covariance matrix in the filtering and noise reduction process is adjusted to adapt to the differences in interference effects under different working conditions during the position sensor test process.

[0044] Specifically, for the accuracy test process of position sensors in the same batch, to avoid large errors in judging the interference effects during the sensor accuracy test caused by system defects during the dynamic test process; during the process of testing sensors in the same batch under different working conditions, the mean value of all calculated comprehensive interference characteristic values is used as the judgment threshold. ; during the process of testing each sensor under different working conditions, the categories with calculated comprehensive interference characteristic values greater than the judgment threshold are classified into the large interference set, and the categories with calculated comprehensive interference characteristic values less than or equal to the judgment threshold are classified into the small interference set.

[0045] Further, in this embodiment, the covariance matrix is dynamically adjusted according to the large interference set and small interference set divided according to the above process. For the large interference set, the covariance matrix is increased by a first preset multiple; for the small interference set, the covariance matrix is reduced by a second preset multiple, where the value range of the first preset multiple is from 2 to 4, and the value range of the second preset multiple is from 0.2 to 0.4. It should be noted that the process of obtaining the initial covariance matrix in the Kalman filtering process is a well-known prior art, and the specific calculation method will not be elaborated in this embodiment. Specifically, in this embodiment, for the large interference set, the covariance matrix is increased by 2 times to reduce the dependence on the measured values of position data; for the small interference set, indicating that the credibility of all its corresponding position data measured values is high, the covariance matrix can be reduced by 0.4 times to strengthen the measured data in the filtering process. Based on the above process, the filtering and noise reduction processing of the dynamic test data of the position sensor under different working conditions is completed.

[0046] Step 4: Based on the error between the filtered position data under different working conditions and the standard displacement data of the preset linear motor, a quantization index is obtained to test the accuracy of the in - built position sensor of the motorcycle shock absorber.

[0047] After completing the filtering process of the data of the built-in position sensor of the motorcycle shock absorber, the filtered position data is compared and analyzed with the standard displacement data of the linear motor. It should be noted that during the simulation process, the standard displacement data of the linear motor at each position is fixed and can be obtained by the implementer through self-measurement. The specific process is not elaborated in this embodiment and is not specifically limited herein. Specifically, for the position data after filtering under each working condition, the absolute error and relative error between the position data at each position and the standard displacement data are calculated respectively. It should be noted that the calculation methods of the absolute error and relative error are prior arts and the specific calculation process is not elaborated in this embodiment. For all the position data under each simulated working condition, the average value of the absolute errors corresponding to all positions and the average value of the relative errors corresponding to all positions under each working condition are calculated respectively, and are denoted as the first average value and the second average value, respectively, both of which are used as the quantization indexes of the position sensor accuracy under each working condition.

[0048] Specifically, according to the accuracy index requirements of the position sensor for the motorcycle shock absorption system, the accuracy requirements of each quantization index are preset. In this embodiment, the absolute error is controlled within ±0.5 mm and the relative error does not exceed ±2%. In the actual application scenario, the implementer sets it by himself / herself and this embodiment does not limit it. The calculated error data is compared item by item with the accuracy index requirements. When the position sensor fully meets the accuracy requirements for both quantization indexes under all set simulated working conditions, the accuracy test of the built-in position sensor is qualified; if there is any working condition where any quantization index does not meet the accuracy requirements, it is determined that the test accuracy of the position sensor is unqualified.

[0049] It can be understood that the reference to "one embodiment" or "some embodiments" etc. described in the specification of this application means that specific features, structures or characteristics described in combination with this embodiment are included in one or more embodiments of this application. Thus, if "in one embodiment", "in some embodiments", "in other some embodiments", "in still other embodiments" etc. appear at different places in this specification, it does not necessarily refer to the same embodiment, but means "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "include", "comprise", "have" and their variants all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0050] It should be noted that the above order of the embodiments of the present application is only for description and does not represent the superiority or inferiority of the embodiments. In addition, the specific embodiments of this specification have been described above. Furthermore, the processes depicted in the drawings do not necessarily require the specific order or sequential order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous. At the same time, the magnitude of the sequence numbers of the steps in the embodiments does not mean the sequence of execution. The execution sequence of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments in this specification.

[0051] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements on some of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A method for testing the accuracy of an in-built position sensor of a motorcycle shock absorber, characterized in that, It includes the following steps: Obtain various types of data under different working conditions, including: various position data of the built-in position sensor of the motorcycle shock absorber, the acceleration of the shock absorber vibration, and the moving speed of the shock absorber; Analyze the time-series changes of various types of data under each working condition and extract the peaks in various types of data. According to the deviation situation between the times corresponding to the peaks in the position data and the times corresponding to the peaks in the acceleration data and the moving speed, combined with the deviation situation of the peak amplitudes in the position data and the number of peaks in the position data, obtain the three-dimensional feature vector corresponding to each working condition, and perform clustering division on all three-dimensional feature vectors; According to the average level of the same element in all three-dimensional feature vectors within each category after clustering, and the significant fluctuation situation of each element in all three-dimensional feature vectors within each category, obtain the comprehensive interference eigenvalue of each category. Combine the average level of all comprehensive interference eigenvalues to divide the categories after clustering into large and small interference sets, and optimize the covariance matrix when performing Kalman filtering on the position data corresponding to the large and small interference sets; Based on the error between the filtered position data under different working conditions and the standard displacement data of the preset linear motor, obtain a quantization index to test the accuracy of the built-in position sensor of the motorcycle shock absorber.

2. The accuracy testing method of an in-built position sensor of a motorcycle shock absorber according to claim 1, characterized in that, The method for obtaining the three-dimensional feature vector corresponding to each working condition is as follows: For each working condition, perform curve fitting on various types of data respectively to obtain the time-series change curves of various types of data, and extract the peaks of the time-series change curves of various types of data; and according to the difference between the times corresponding to the peaks in the position data and the times corresponding to the peaks in the acceleration data and the moving speed, obtain the relative peak offset value of the position data, analyze the relative peak deviation coefficient of the amplitudes of the peaks in the position data, and use the number of peaks in the position data as the eigenvalue of the interference effect. The normalized relative peak offset value, peak deviation coefficient, and eigenvalue under each working condition form the three-dimensional feature vector corresponding to each working condition.

3. The accuracy test method for an in - built position sensor of a motorcycle shock absorber according to claim 2, wherein, The method for obtaining the relative peak offset value further includes: Calculate the absolute values of the differences between the times corresponding to the peaks in the position data and the times corresponding to the peaks in the acceleration data and the speed data respectively, and take the mean of all absolute values as the relative peak offset value of the position data.

4. A method for testing the accuracy of an in-built position sensor of a motorcycle shock absorber as claimed in claim 2, characterized in that, The method for obtaining the peak deviation coefficient further includes: calculate the difference between the amplitudes of the peaks in the position data and the standard displacement data of the linear motor corresponding to the positions where the peaks are located, calculate the ratio of the difference to the corresponding standard displacement data, and take the sum of all ratios as the peak deviation coefficient of the position data.

5. A method for testing the accuracy of an in - built position sensor of a motorcycle shock absorber according to claim 1, characterized in that, The method for obtaining the comprehensive interference eigenvalue of each category is as follows: ; among them, represents the comprehensive interference eigenvalue of the th category after clustering; represents the mean value of the th element among all three-dimensional feature vectors in the th category after clustering; and respectively represent the weights of the th and th elements among all three-dimensional feature vectors in the th category after clustering; represents the number of elements in the three-dimensional feature vector.

6. A method for testing the accuracy of an in-built position sensor of a motorcycle shock absorber according to claim 5, characterized in that, The method for obtaining the weight further is: calculate the coefficient of variation of the same element in all three-dimensional feature vectors in each category after clustering as the weight of the same element.

7. A method for testing the accuracy of an in-built position sensor of a motorcycle shock absorber as claimed in claim 1, characterized in that The method for dividing the large and small interference sets is: take the mean of all comprehensive interference eigenvalues as the judgment threshold, and divide the categories with comprehensive interference eigenvalues greater than the judgment threshold into the large interference set, otherwise, divide them into the small interference set.

8. A method for testing the accuracy of an in-built position sensor of a motorcycle shock absorber according to claim 1, characterized in that, The method for optimizing the covariance matrix of each position data corresponding to the large and small interference sets during filtering includes: For the large interference set, increase the covariance matrix by a first preset multiple; for the small interference set, reduce the covariance matrix by a second preset multiple, where the value range of the first preset multiple is from 2 to 4, and the value range of the second preset multiple is from 0.2 to 0.

4.

9. The accuracy test method of an in-built position sensor of a motorcycle shock absorber according to claim 1, characterized in that The method for obtaining the quantization index is: For each position data after filtering under each working condition, calculate the absolute error and relative error between the position data of each position and the standard displacement data of the linear motor respectively, and calculate the average value of the absolute errors corresponding to all positions and the average value of the relative errors corresponding to all positions under each working condition respectively, which are denoted as the first average value and the second average value respectively, and both are used as the quantization indexes of the position sensor accuracy under each working condition.

10. A method for testing the accuracy of an in-built position sensor of a motorcycle shock absorber as described in claim 1, characterized in that, The test for the accuracy of the built-in position sensor of the motorcycle shock absorber further includes: Preset the accuracy requirements for each quantization index. When the position sensor meets the accuracy requirements for all quantization indexes under all working conditions, the accuracy test of the built-in position sensor of the motorcycle shock absorber is qualified; if there is any quantization index that does not meet the accuracy requirements under any working condition, the test accuracy of the built-in position sensor of the motorcycle shock absorber is unqualified.

Citation Information

Patent Citations

  • Loading method, evaluation method and loading device for simulating tractor force adjustment control

    CN113092138A

  • Coupled vibration data analysis method for axle

    CN118965222A

  • Waveform synthesis methods for shock response spectrumover a short time interval, a digital recursive filterfor a shock response history and its applications

    KR1020060040354A

  • Vehicle detection method

    US20200191825A1

  • Product test method, terminal and computer-readable storage medium

    WO2024104489A1

Cited By

  • Optoelectronic equipment operation maintenance system and method based on multi-source data

    CN121475300A