An instrument vehicle speed processing method, device and electronic equipment

By filtering and smoothing the vehicle speed during steady-state driving, the problem of frequent speed fluctuations on the instrument panel is solved, achieving stable speed display and improving driving safety and comfort.

CN120080868BActive Publication Date: 2025-11-21GREAT WALL MOTOR CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510184669.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-02-19
Publication Date
2025-11-21
Estimated Expiration
2045-02-19

AI Technical Summary

Technical Problem

During steady-state driving, the instrument speedometer fluctuates frequently due to changes in external environmental factors, affecting the driver's reliability and comfort.

Method used

By periodically acquiring the vehicle's original speed signal, combining the current and historical speeds with filtering coefficients, a stable target speed is obtained, and the instrument panel displays this speed.

Benefits of technology

It eliminates speed jumps caused by road bumps and sensor interference, provides a reliable speed reference, and improves driving safety and comfort.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120080868B_ABST
    Figure CN120080868B_ABST
Patent Text Reader

Abstract

The present application provides a kind of instrument vehicle speed processing method, device and electronic equipment, the instrument vehicle speed processing method includes: when vehicle is in preset working condition, periodically obtain the original speed signal of vehicle, obtain the speed corresponding to each cycle;According to the speed corresponding to current cycle, the historical speed corresponding to previous cycle and historical filtering coefficient, determine the filtering coefficient corresponding to current cycle;Based on filtering coefficient and the historical filtering speed corresponding to previous cycle, the speed corresponding to current cycle is filtered and handled, and the filtering speed corresponding to current cycle is obtained;Smooth processing is carried out to filtering speed, and target speed is obtained;Control instrument displays target speed.The present application can eliminate the speed jump caused by factors such as road bump, sensor instantaneous interference and the like by filtering and handling and smoothing processing to the speed collected in each cycle, so that instrument display speed is stable, reliable speed reference is provided for driver, distraction is avoided, and driving safety is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of automotive technology, and in particular to a method, device, and electronic device for processing vehicle speed on an instrument panel. Background Technology

[0002] As automotive intelligence advances rapidly, the adoption rate of intelligent instrument panels is increasing, and the accuracy of speedometer displays is also improving. Currently, instrument panels typically directly acquire and display the actual vehicle speed detected by sensors, resulting in fluctuations in the displayed speed. This is especially true when cruise control is engaged, as external environmental factors such as sudden changes in wind resistance and road gradient can cause fluctuations in the actual vehicle speed, meaning the vehicle is not in a perfectly stable driving state. These speed fluctuations lead to frequent jumps in the displayed speed, raising concerns about the reliability of the vehicle's intelligent systems, interfering with the driver's judgment of whether the vehicle is operating normally, increasing psychological stress, and reducing driving comfort and safety. Summary of the Invention

[0003] This application provides a method, device, and electronic device for processing vehicle speed, in order to solve the problem that fluctuations in the actual vehicle speed cause frequent jumps in the speed displayed on the instrument panel when the vehicle is in a steady-state driving condition.

[0004] In a first aspect, embodiments of this application provide a method for processing vehicle speedometer readings, the method comprising:

[0005] When the vehicle is in a preset operating condition, the original vehicle speed signal is periodically acquired to obtain the vehicle speed corresponding to each cycle.

[0006] The filter coefficient for the current period is determined based on the vehicle speed corresponding to the current period, the historical vehicle speed corresponding to the previous period, and the historical filter coefficient.

[0007] Based on the filter coefficients and the historical filtered vehicle speeds corresponding to the previous period, the vehicle speeds corresponding to the current period are filtered to obtain the filtered vehicle speeds corresponding to the current period.

[0008] The filtered vehicle speed is smoothed to obtain the target vehicle speed;

[0009] The control instrument displays the target vehicle speed.

[0010] Secondly, embodiments of this application also provide an instrument speed processing device, the device comprising:

[0011] The acquisition module is used to periodically acquire the original vehicle speed signal of the vehicle when the vehicle is in a preset operating condition, and obtain the vehicle speed corresponding to each cycle.

[0012] The determination module is used to determine the filter coefficient corresponding to the current cycle based on the vehicle speed corresponding to the current cycle, the historical vehicle speed corresponding to the previous cycle, and the historical filter coefficient.

[0013] The first processing module is used to filter the vehicle speed corresponding to the current period based on the filter coefficient and the historical filtered vehicle speed corresponding to the previous period, so as to obtain the filtered vehicle speed corresponding to the current period.

[0014] The second processing module is used to smooth the filtered vehicle speed to obtain the target vehicle speed;

[0015] The control module is used to control the instrument display of the target vehicle speed.

[0016] Thirdly, embodiments of this application also provide an electronic device, which includes a processor, a memory, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, it implements the above-described instrument speed processing method.

[0017] Fourthly, embodiments of this application also provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the above-described instrument speed processing method.

[0018] The embodiments of this application include at least the following technical effects:

[0019] This application obtains the vehicle's original speed signal periodically when the vehicle is in a preset operating condition, thus obtaining the speed for each cycle. Based on the speed of the current cycle, the historical speed of the previous cycle, and historical filtering coefficients, a filtering coefficient for the current cycle is determined. Based on the filtering coefficient and the historical filtered speed of the previous cycle, the speed of the current cycle is filtered to obtain the filtered speed. The filtered speed is then smoothed to obtain the target speed. The target speed is then displayed on the instrument panel. By filtering and smoothing the speed collected in each cycle, this application eliminates speed jumps caused by road bumps, momentary sensor interference, etc., resulting in a stable speed display on the instrument panel, providing the driver with a reliable speed reference, avoiding distraction, and improving driving safety. Attached Figure Description

[0020] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below.

[0021] Figure 1 This is one of the flowcharts illustrating the instrument speed processing method provided in the embodiments of this application;

[0022] Figure 2 This is a second schematic flowchart of the instrument speed processing method provided in the embodiments of this application;

[0023] Figure 3 This is a schematic diagram of the instrument speed processing device provided in the embodiments of this application;

[0024] Figure 4 A block diagram of an electronic device provided in an embodiment of this application. Detailed Implementation

[0025] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0026] It should be understood that the phrase "one embodiment" or "an embodiment" throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of this application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments.

[0027] In the various embodiments of this application, it should be understood that the sequence number of each process described below does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0028] In existing technologies, during cruise control, external environmental factors such as sudden changes in wind resistance and road gradient can cause fluctuations in the vehicle's actual speed, meaning the vehicle is not in a perfectly stable driving state. When speed fluctuates, the speed displayed on the instrument panel will change frequently, raising questions about the reliability of the vehicle's intelligent systems. It can also interfere with the driver's judgment of whether the vehicle is operating normally, increasing psychological stress and reducing driving comfort and safety.

[0029] Based on this, this application provides a method, device, and electronic device for processing vehicle speed, which can eliminate speed jumps caused by factors such as road bumps and instantaneous sensor interference, stabilize the vehicle speed displayed on the instrument, provide the driver with a reliable speed reference, avoid distraction, and improve driving safety.

[0030] like Figure 1As shown in the figure, this application provides a method for processing vehicle speedometer readings, the method including:

[0031] Step 101: When the vehicle is in a preset operating condition, periodically acquire the original vehicle speed signal to obtain the vehicle speed corresponding to each cycle.

[0032] The instrument speed processing method provided in this application is applied to a target controller, which can be a controller on the vehicle used to control the content displayed on the instrument panel. This target controller can monitor the vehicle's driving state and determine whether the vehicle is in a preset operating condition. This preset operating condition is a steady-state driving condition. Under steady-state driving conditions, the vehicle's driving state is relatively stable, without frequent rapid acceleration, sudden braking, or sharp turns, such as constant speed cruising on a highway or stable driving on smooth urban roads.

[0033] Specifically, when the vehicle is in a preset operating condition, the target controller periodically collects the raw vehicle speed signal according to a pre-set cycle. This raw vehicle speed signal can be a signal obtained by the target controller from IBC (Integrated Brake Control) or ESP (Electronic Stability Program), or it can be a signal sent to the target controller by IBC or ESP according to a preset cycle. The collection cycle of the raw vehicle speed signal is determined according to actual needs, for example, it can be set to collect once every 20 milliseconds to ensure timely tracking of vehicle speed changes.

[0034] Based on the periodically acquired raw vehicle speed signals, the target controller can obtain the vehicle speed corresponding to each cycle, providing basic data for subsequent processing.

[0035] Step 102: Determine the filter coefficient for the current cycle based on the vehicle speed corresponding to the current cycle, the historical vehicle speed corresponding to the previous cycle, and the historical filter coefficient.

[0036] After obtaining the vehicle speed corresponding to the current period, it needs to be filtered. The filtering coefficient used for each period is different. Determining the filtering coefficient for the current period requires considering the current period's vehicle speed, the historical vehicle speed from the previous period, and historical filtering coefficients. For example, an algorithm based on the rate of change of vehicle speed can be used. If the difference between the current vehicle speed and the previous period's speed is large, it indicates drastic speed changes, requiring an increased filtering coefficient to make the filtering process focus more on the current speed and respond quickly to speed changes. Conversely, if the speed difference is small, it indicates stable speed, requiring a decreased filtering coefficient to rely more on historical speeds and smooth the speed data.

[0037] Step 103: Based on the filter coefficients and the historical filtered vehicle speeds corresponding to the previous period, filter the vehicle speeds corresponding to the current period to obtain the filtered vehicle speeds corresponding to the current period.

[0038] After obtaining the vehicle speed and filter coefficient for the current period, the vehicle speed for the current period is filtered based on the filter coefficient and the historical filtered vehicle speed for the previous period, commonly using a weighted average method. That is, the filtered vehicle speed for the current period = filter coefficient * current vehicle speed + (1 - filter coefficient) * historical filtered vehicle speed for the previous period. This method integrates real-time vehicle speed information with historical filtering results, assigning weights according to the filter coefficient, thus smoothing out noise and abnormal fluctuations while preserving vehicle speed change information.

[0039] Step 104: Smooth the filtered vehicle speed to obtain the target vehicle speed.

[0040] After obtaining the filtered vehicle speed, it needs to be further smoothed to obtain the target vehicle speed. Common methods include moving average and exponential smoothing. Taking the moving average method as an example, the window size is set, and the average value of the filtered vehicle speed over N periods is calculated as the target vehicle speed to further eliminate small fluctuations and reflect the overall trend of vehicle speed.

[0041] Step 105: Control the instrument to display the target vehicle speed.

[0042] After obtaining a stable and accurate target vehicle speed through the above steps, it is sent to the instrument panel. For traditional pointer-type instruments, the target vehicle speed is converted into a pointer angle indication through a motor or drive device; for digital display instruments, the target vehicle speed is presented directly in digital form, intuitively displayed to the driver.

[0043] In this embodiment, the vehicle's original speed signal is periodically acquired when the vehicle is in a preset operating condition to obtain the speed corresponding to each cycle. Based on the speed of the current cycle, the historical speed of the previous cycle, and historical filtering coefficients, a filtering coefficient for the current cycle is determined. The speed of the current cycle is then filtered based on the filtering coefficient and the historical filtered speed of the previous cycle to obtain the filtered speed. The filtered speed is then smoothed to obtain the target speed. The target speed is then displayed on the instrument panel. By filtering and smoothing the speed acquired in each cycle, this application can eliminate speed jumps caused by road bumps, momentary sensor interference, etc., resulting in a stable speed display on the instrument panel, providing the driver with a reliable speed reference, avoiding distraction, and improving driving safety.

[0044] In an optional embodiment of this application, the filter coefficient corresponding to the current period is determined based on the vehicle speed corresponding to the current period, the historical vehicle speed corresponding to the previous period, and the historical filter coefficient, including:

[0045] The absolute value of the difference between the vehicle speed and the historical vehicle speed is determined as the vehicle speed change value;

[0046] Determine whether the vehicle speed change value is between a first preset vehicle speed threshold and a second preset vehicle speed threshold, wherein the first preset vehicle speed threshold is greater than the second preset vehicle speed threshold;

[0047] If so, the historical filter coefficients corresponding to the previous period will be determined as the filter coefficients corresponding to the current period.

[0048] If not, when the vehicle speed change value is greater than the first preset vehicle speed threshold, the historical filtering coefficient corresponding to the previous cycle is increased by a preset adjustment step size to obtain the filtering coefficient corresponding to the current cycle; when the vehicle speed change value is less than the second preset vehicle speed threshold, the historical filtering coefficient corresponding to the previous cycle is decreased by a preset adjustment step size to obtain the filtering coefficient corresponding to the current cycle.

[0049] In the specific implementation process, when determining the filter coefficients corresponding to the current period, the vehicle speed change value is first calculated. This vehicle speed change value is the absolute value of the difference between the vehicle speed corresponding to the current period and the historical vehicle speed corresponding to the previous period, i.e., δv=|V curr -V prev | where δv is the change in vehicle speed, V curr V represents the vehicle speed corresponding to the current cycle. prev This represents the historical vehicle speed corresponding to the previous period. The vehicle speed change value characterizes the magnitude of change between two consecutive periods. Regardless of whether the vehicle speed increases or decreases, a positive value is obtained to indicate the degree of change.

[0050] After obtaining the vehicle speed change value, it is further determined whether the vehicle speed change value is between the first preset vehicle speed threshold and the second preset vehicle speed threshold. Here, the first preset vehicle speed threshold and the second preset vehicle speed threshold are preset according to the actual driving situation of the vehicle, and T1 is greater than T2, where T1 is the first preset vehicle speed threshold and T2 is the second preset vehicle speed threshold. The determination result is divided into the following three cases.

[0051] The first case is when δv lies between T1 and T2 (including δv = T1 or T2), indicating that the vehicle speed change is within a relatively stable range. In this case, since the vehicle speed change is relatively stable, there is no need to adjust the filter coefficient to maintain the consistency and stability of the filtering effect. The historical filter coefficient corresponding to the previous cycle is directly determined as the filter coefficient corresponding to the current cycle. That is, α curr =α prev , where α curr α represents the filter coefficient corresponding to the current period. prev These are the historical filter coefficients corresponding to the previous period.

[0052] The second scenario is when δv is greater than T1, indicating a more drastic change in vehicle speed. To ensure the filtered vehicle speed follows the actual speed changes more quickly, the historical filter coefficient from the previous cycle is increased by a preset adjustment step size to obtain the filter coefficient for the current cycle, i.e., α. curr =α prev +δα, where δα is the preset adjustment step size. For example, δα can be set to 0.005. By increasing the filter coefficient, the current vehicle speed will be considered more in subsequent filtering processes, allowing the filtered vehicle speed to reflect rapid changes in actual vehicle speed more promptly.

[0053] The third scenario is that δv is less than T2, indicating that the vehicle speed change is very small and the vehicle's driving state is relatively stable. In this case, to further smooth the vehicle speed data and reduce the impact of small fluctuations, the historical filter coefficient corresponding to the previous period is reduced by a preset adjustment step size to obtain the filter coefficient corresponding to the current period, i.e., α. curr =α prev -δα. By reducing the filter coefficient, the filtering process relies more on the filtering result of the previous cycle, resulting in a smoother filtered vehicle speed and avoiding frequent fluctuations in the displayed vehicle speed due to minor changes in vehicle speed.

[0054] The above-described implementation scheme of this application dynamically adjusts the filtering coefficient based on changes in vehicle speed, enabling the filtering process to better adapt to different vehicle speed variations. When vehicle speed changes drastically, the filtering coefficient is adjusted promptly to ensure that the filtered vehicle speed quickly keeps up with the actual vehicle speed, guaranteeing the timeliness of the speed display. Conversely, when vehicle speed changes are minor, the filtering coefficient is adjusted to smooth the speed data, improving the stability of the speed display. Reasonable adjustment of the filtering coefficient can reduce jumps in the instrument speed display, avoiding visual interference to the driver caused by minor fluctuations.

[0055] In an optional embodiment of this application, based on the filter coefficients and the historical filtered vehicle speed corresponding to the previous period, the vehicle speed corresponding to the current period is filtered to obtain the filtered vehicle speed corresponding to the current period, including:

[0056] The first weighting coefficient corresponding to the historical filtered vehicle speed and the second weighting coefficient corresponding to the vehicle speed are determined based on the filtering coefficients.

[0057] Based on the historical filtered vehicle speed, the first weighting coefficient, the vehicle speed, and the second weighting coefficient, the filtered vehicle speed corresponding to the current period is determined by weighted calculation.

[0058] In the specific implementation process, when filtering the vehicle speed corresponding to the current period, the first weight coefficient corresponding to the historical filtered vehicle speed and the second weight coefficient corresponding to the vehicle speed of the current period are first determined.

[0059] The first weighting coefficient reflects the importance of the historical filtered vehicle speed from the previous period in the current filtering process, preventing significant changes in the filtered vehicle speed due to instantaneous fluctuations in the current vehicle speed. The first weighting coefficient determines the proportion of the current vehicle speed in the calculation of the filtered vehicle speed, ensuring that the filtered vehicle speed promptly reflects the trend of current speed changes. The second weighting coefficient is the filtering coefficient, and the first weighting coefficient is 1 minus the filtering coefficient.

[0060] Based on historical filtered vehicle speeds, the first weighting coefficient, the vehicle speed, and the second weighting coefficient, the filtered vehicle speed corresponding to the current period, i.e., V, is determined through weighted calculation. filtered =V filtered-prev *A1+V curr *A2, where V filtered For the filtered vehicle speed, V filtered-prev The historical filtered vehicle speed, A1 is the first weighting coefficient, and V curr Let A1 be the vehicle speed and A2 be the second weighting coefficient. This weighted calculation combines the stability of historical filtered vehicle speeds with the real-time performance of the current vehicle speed. The historical filtered vehicle speeds, after adjustment by the first weighting coefficient, incorporate stable past speed information; the current vehicle speed, through the action of the second weighting coefficient, injects the latest speed changes into the filtering result. This ensures that the calculated filtered vehicle speed reflects both the upward trend of the current vehicle speed and, through the reasonable use of historical filtered vehicle speeds, avoids excessive fluctuations caused by the sole effect of the current vehicle speed.

[0061] The above-described implementation scheme of this application determines the filtered vehicle speed corresponding to the current period based on a weighted calculation using historical filtered vehicle speed, a first weighting coefficient, the vehicle speed, and a second weighting coefficient. This can effectively reduce vehicle speed fluctuations caused by factors such as sensor errors and road bumps.

[0062] In an optional embodiment of this application, the original vehicle speed signal is periodically acquired to obtain the vehicle speed corresponding to each cycle, including:

[0063] For each cycle, the original vehicle speed in the original vehicle speed signal is obtained;

[0064] The vehicle speed is obtained by multiplying the original vehicle speed by the first preset value and adding the second preset value.

[0065] Specifically, when the vehicle is in operation, the vehicle speed sensor continuously monitors the vehicle's speed and generates a raw vehicle speed signal.

[0066] Because there are many factors that affect vehicle speed measurement during actual operation, the original vehicle speed signal in the original vehicle speed signal deviates from the actual situation to a certain extent.

[0067] In this embodiment, after obtaining the original vehicle speed signal, the original vehicle speed is corrected so that the vehicle speed displayed by the instrument can more accurately reflect the actual driving speed of the vehicle, providing the driver with more reliable vehicle speed information, so that the driver can better grasp the vehicle driving status and rationally plan driving operations.

[0068] Specifically, a first preset value and a second preset value can be preset. After obtaining the original vehicle speed signal, the product of the original vehicle speed and the first preset value is calculated, and then the second preset value is added to obtain the vehicle speed, i.e., V. curr =V0*P1+P2, where V is the vehicle speed, V0 is the original vehicle speed, P1 is the first preset value, and P2 is the second preset value. It should be noted that the first and second preset values ​​can be values ​​calibrated by the vehicle manufacturer based on the vehicle's driving parameters before the vehicle leaves the factory; however, in this embodiment, no specific limitation is made. For example, the first preset value can be 1.03, and the second preset value can be 1.3.

[0069] The above-described implementation scheme of this application, by introducing a first preset value and a second preset value to adjust the original vehicle speed, can make the corrected vehicle speed more accurately and reasonably reflect the actual operating speed of the vehicle, and provide a more reliable basis for subsequent judgments and controls based on vehicle speed.

[0070] In an optional embodiment of this application, the control instrument displays the target vehicle speed, including:

[0071] Obtain the acceleration of the vehicle;

[0072] Determine whether the absolute value of the acceleration is less than a preset acceleration threshold;

[0073] If so, the instrument panel will display the target vehicle speed;

[0074] If not, the vehicle speed is determined as the target vehicle speed, and the instrument panel is controlled to display the target vehicle speed.

[0075] In the actual implementation process, before the control instrument displays the target vehicle speed, it is also necessary to acquire the vehicle's acceleration, which can be obtained through an acceleration sensor installed on the vehicle body. Then, the relationship between the absolute value of the acceleration and the preset acceleration threshold is determined. This preset acceleration threshold is a value pre-set based on the vehicle's normal driving conditions and the needs of the driving experience.

[0076] When the absolute value of the acceleration is less than the preset acceleration threshold, it indicates that the vehicle's acceleration or deceleration process is relatively smooth, without any sudden acceleration or deceleration. In this case, the instrument panel directly displays the target vehicle speed obtained after a series of processing steps.

[0077] When the absolute value of acceleration is greater than or equal to a preset acceleration threshold, it means the vehicle is in a state of rapid acceleration or deceleration. At this time, the current vehicle speed is set as the target speed, and the instrument display is activated. This is because during rapid acceleration or deceleration, the vehicle's speed changes rapidly, and the previously calculated target speed may not keep up with the actual speed changes. Using the current speed directly as the display content allows the driver to more accurately understand the vehicle's real-time speed and avoids driving misjudgments caused by display delays.

[0078] The above-described implementation scheme of this application determines whether the absolute value of acceleration is less than a preset acceleration threshold. If so, the target speed is displayed; otherwise, the current speed is displayed. This allows the target speed to be displayed while the vehicle is traveling smoothly, providing the driver with stable and reliable speed information. This avoids distraction caused by frequent switching of display modes. Furthermore, it displays the current speed in a timely manner during rapid acceleration or deceleration, enabling the driver to accurately grasp the real-time speed changes of the vehicle, enhancing driving safety and control, and improving the overall driving experience.

[0079] In an optional embodiment of this application, smoothing the filtered vehicle speed to obtain the target vehicle speed includes:

[0080] Obtain the N historical filtered vehicle speeds corresponding to the N previous periods of the current period; where N is a positive integer;

[0081] The average of the N historical filtered vehicle speeds and the filtered vehicle speed is determined as the target vehicle speed.

[0082] Specifically, during vehicle operation, speed data is collected and processed at regular intervals. For each current cycle, the target controller records the filtered speeds from previous cycles, known as historical filtered speeds. Here, N is a pre-defined positive integer that determines how many cycles of historical data to reference. For example, assuming each cycle is 20 milliseconds long and N is 10, in the 10th cycle, the historical filtered speeds from cycles 1 to 9 need to be retrieved. These historical filtered speeds are relatively smooth and stable speed values ​​obtained after processing by the filtering algorithm; they are stored for further data processing and analysis.

[0083] The target vehicle speed is obtained by calculating the average of N historical filtered vehicle speeds and the current period filtered vehicle speed. Specifically, all these vehicle speed values ​​are added together and then divided by the total number (N+1) to obtain the average value.

[0084] The above-described implementation scheme of this application determines the target vehicle speed by averaging the historical filtered vehicle speed over multiple periods with the current period's filtered vehicle speed, which can effectively smooth vehicle speed fluctuations and make the final presented vehicle speed data more stable.

[0085] In an optional embodiment of this application, the control instrument displays the target vehicle speed, including:

[0086] Determine whether the target vehicle speed is greater than the historical target vehicle speed corresponding to the previous cycle;

[0087] When the target vehicle speed is greater than or equal to the historical target vehicle speed, it is determined whether the decimal part of the target vehicle speed is greater than a preset rising edge threshold. If so, the target vehicle speed is rounded up to obtain the displayed vehicle speed; otherwise, the integer part of the target vehicle speed is determined as the displayed vehicle speed.

[0088] When the target vehicle speed is less than the historical target vehicle speed, it is determined whether the decimal part of the target vehicle speed is less than a preset falling edge threshold. If so, the target vehicle speed is rounded down to obtain the displayed vehicle speed; otherwise, the integer part of the target vehicle speed is determined as the displayed vehicle speed.

[0089] The control instrument displays the vehicle speed.

[0090] Specifically, the target vehicle speed needs to be rounded before it can be displayed.

[0091] When rounding the target vehicle speed, you can first determine whether the target vehicle speed is greater than the historical target vehicle speed corresponding to the previous period, and determine the trend of vehicle speed change, that is, whether the vehicle speed is increasing, decreasing or remaining unchanged.

[0092] Once the target speed is determined to be greater than or equal to the historical target speed, the decimal part of the target speed is further obtained. A preset rising edge threshold is a pre-defined value used to determine the magnitude of the decimal part of the target speed. If the decimal part of the target speed is greater than this preset rising edge threshold, it means the speed increase is relatively large. In this case, the target speed is rounded up, and the rounded result is used as the displayed speed. For example, if the preset rising edge threshold is 0.7, and the target speed is 50.8 km / h, since the decimal part 0.8 is greater than 0.7, the displayed speed is 51 km / h after rounding up. Conversely, if the decimal part of the target speed is not greater than the preset rising edge threshold (i.e., less than or equal to the threshold), it indicates a smaller speed increase. In this case, the integer part of the target speed is directly used as the displayed speed. For example, if the target speed is 50.4 km / h, and the decimal part 0.4 is less than the preset rising edge threshold 0.7, then the displayed speed is 50 km / h.

[0093] When the target speed is less than the historical target speed, the decimal part of the target speed is further obtained. A preset falling edge threshold is also pre-set to measure the decimal part when the speed decreases. If the decimal part of the target speed is less than this preset falling edge threshold, it indicates a relatively large decrease in speed. In this case, the target speed is rounded down, and the rounded result is used as the displayed speed. For example, if the preset falling edge threshold is 0.3, and the target speed is 49.2 km / h, since the decimal part 0.2 is less than 0.3, the displayed speed is 49 km / h after rounding down. Conversely, if the decimal part of the target speed is not less than the preset falling edge threshold, it indicates a smaller decrease in speed. In this case, the integer part of the target speed is directly determined as the displayed speed. For example, if the target speed is 49.4 km / h, and the decimal part 0.4 is greater than the preset falling edge threshold 0.3, then the displayed speed is 49 km / h.

[0094] After the above series of judgments and processes, the final displayed vehicle speed is obtained. The system will then send this displayed speed to the instrument panel, which will then display it.

[0095] The above-described implementation scheme of this application avoids frequent fluctuations in the instrument display value when the vehicle speed changes slightly by rounding down based on the trend of vehicle speed changes and the decimal part.

[0096] In an optional embodiment of this application, after obtaining the filtered vehicle speed corresponding to the current period, the method further includes:

[0097] Determine whether the absolute value of the difference between the current cycle's vehicle speed and the filtered vehicle speed is greater than the third preset vehicle speed threshold.

[0098] If so, the filter coefficient corresponding to the current cycle is increased by a preset adjustment step size, and the vehicle speed corresponding to the current cycle is re-filtered until the absolute value of the difference between the vehicle speed corresponding to the current cycle and the filtered vehicle speed is less than or equal to the third preset vehicle speed threshold.

[0099] In the specific implementation process, after obtaining the filtered vehicle speed, it is also necessary to compare the difference between the current cycle's vehicle speed and the filtered vehicle speed. By calculating the absolute value of their difference, the degree of deviation between the two speed values ​​is measured, that is, to determine whether the filtered vehicle speed can better reflect the actual vehicle speed. Here, a third preset vehicle speed threshold is introduced, which is a pre-set numerical standard based on factors such as vehicle driving characteristics and the requirements for vehicle speed accuracy. For example, this threshold can be set to 2 km / h. If the absolute value of the difference between the calculated current cycle vehicle speed and the filtered vehicle speed is greater than the third preset vehicle speed threshold, it indicates that the filtered vehicle speed deviates significantly from the actual vehicle speed, and the filter coefficient corresponding to the current cycle needs to be increased by a preset adjustment step size. The preset adjustment step size is also a pre-set fixed value, such as 0.005. The purpose of increasing the filter coefficient is to make the filtering process refer more to the actual vehicle speed of the current cycle. Because the current filtering result deviates significantly from the actual vehicle speed, it may be due to excessive reliance on historical vehicle speeds. Therefore, by increasing the filter coefficient, the weight of the current vehicle speed in the filtering calculation is increased, thereby adjusting the filtered vehicle speed to be closer to the actual vehicle speed.

[0100] After increasing the filter coefficient, the vehicle speed corresponding to the current cycle needs to be re-filtered. This re-filtering process is the same as the initial filtering calculation, except that the updated filter coefficient is used. For example, if the initial filter coefficient is 0.6, the filtered vehicle speed is obtained, but it is found that it deviates greatly from the actual vehicle speed. After increasing the filter coefficient to 0.605, this new filter coefficient is used again, combined with the current vehicle speed and the historical filtered vehicle speed from the previous cycle, to perform a weighted calculation to obtain a new filtered vehicle speed.

[0101] Then, the absolute value of the difference between the new filtered vehicle speed and the current cycle vehicle speed is compared again, and it is determined whether it is less than or equal to the third preset vehicle speed threshold. If it is still greater than the third preset vehicle speed threshold, the filtering coefficient is increased and the filtering is repeated in the above manner. This process is repeated until the absolute value of the difference is less than or equal to the third preset vehicle speed threshold, so as to ensure that the deviation between the final filtered vehicle speed and the actual vehicle speed is within an acceptable range.

[0102] The above-described implementation scheme of this application, by comparing the deviation between the vehicle speed and the filtered vehicle speed, and dynamically adjusting the filtering coefficient and re-filtering according to the deviation, can make the final filtered vehicle speed as close as possible to the actual vehicle speed.

[0103] The overall implementation process of the embodiments of this application is described below, such as... Figure 2 As shown, it includes:

[0104] Step 201: Periodically receive the raw vehicle speed sent by IBC or ESP.

[0105] It should be noted that an initialization operation is required before step 201, specifically including setting the filter coefficient to a preset value, such as 0.5. The initialization operation also includes initializing the filtered vehicle speed, the historical vehicle speed corresponding to the previous cycle, and the historical filtered vehicle speed, i.e., V. filtered =0, V prev =0, V filtered-prev =0.

[0106] Step 202: Process the original vehicle body using a preprocessing formula to obtain the vehicle speed. Specifically, it is V. curr =V0*1.03+1.3.

[0107] Step 203: Determine if |a| is less than the preset acceleration threshold. If yes, proceed to step 204; otherwise, proceed to step 205.

[0108] Step 204: Calculate the absolute value of the difference between the vehicle speed corresponding to the current cycle and the historical vehicle speed corresponding to the previous cycle to obtain the vehicle speed change value.

[0109] Step 205: Round the vehicle speed to obtain the displayed speed. Specifically, rising edge thresholding or falling edge thresholding can be used for rounding.

[0110] Step 206: Determine whether the vehicle body change value is greater than the first preset vehicle speed threshold. If yes, proceed to step 207; otherwise, proceed to step 208.

[0111] Step 207: Increase the preset adjustment step size of the filter coefficient.

[0112] Step 208: Determine whether the change in vehicle speed is less than the second preset vehicle speed threshold. If yes, proceed to step 209; otherwise, proceed to step 210.

[0113] Step 209: Decrease the filter coefficient by the preset adjustment step size.

[0114] Step 210: The filter coefficients remain unchanged.

[0115] Step 211: Determine the filtered vehicle speed for the current period based on the filter coefficient, the vehicle speed corresponding to the current period, and the historical filtered vehicle speed corresponding to the previous period.

[0116] Step 212: Determine whether the absolute value of the difference between the current cycle's vehicle speed and the filtered vehicle speed is greater than the third preset vehicle speed threshold. If yes, proceed to step 214; otherwise, proceed to step 213.

[0117] Step 213: Increase the filter coefficient by the preset adjustment step size. Step 211 is executed after step 213.

[0118] Step 214: Add the filtered vehicle speed to the speed cache list and calculate the average speed of the vehicles in the speed cache list to obtain the target speed. Specifically, the size of the speed cache list is 10, so when adding the filtered vehicle speed to the speed cache list, the first data in the speed cache list needs to be deleted.

[0119] Step 215: Round the target vehicle speed to obtain the displayed speed. Specifically, rising edge thresholding or falling edge thresholding can be used for rounding.

[0120] Step 216: Control the instrument to display the vehicle speed.

[0121] The above implementation scheme obtains the vehicle's original speed signal periodically when the vehicle is in a preset operating condition, thus obtaining the speed corresponding to each cycle. Based on the speed of the current cycle, the historical speed of the previous cycle, and historical filtering coefficients, a filtering coefficient for the current cycle is determined. Based on the filtering coefficient and the historical filtered speed of the previous cycle, the speed of the current cycle is filtered to obtain the filtered speed. The filtered speed is then smoothed to obtain the target speed. The target speed is then displayed on the instrument panel. This application, by filtering and smoothing the speed collected in each cycle, can eliminate speed jumps caused by road bumps, momentary sensor interference, etc., making the displayed speed stable, providing the driver with a reliable speed reference, avoiding distraction, and improving driving safety.

[0122] The above describes the instrument speed processing method provided in the embodiments of this application. The instrument speed processing device provided in the embodiments of this application will be described below with reference to the accompanying drawings.

[0123] like Figure 3 As shown, this embodiment of the invention also provides an instrument speed processing device, the device comprising:

[0124] The acquisition module 301 is used to periodically acquire the original vehicle speed signal of the vehicle when the vehicle is in a preset working condition, and obtain the vehicle speed corresponding to each cycle.

[0125] The determining module 302 is used to determine the filtering coefficient corresponding to the current cycle based on the vehicle speed corresponding to the current cycle, the historical vehicle speed corresponding to the previous cycle, and the historical filtering coefficient.

[0126] The first processing module 303 is used to filter the vehicle speed corresponding to the current period based on the filter coefficient and the historical filtered vehicle speed corresponding to the previous period, so as to obtain the filtered vehicle speed corresponding to the current period.

[0127] The second processing module 304 is used to smooth the filtered vehicle speed to obtain the target vehicle speed;

[0128] The control module 305 is used to control the instrument to display the target vehicle speed.

[0129] Optionally, the determination module includes:

[0130] The first determining submodule is used to determine the absolute value of the difference between the vehicle speed and the historical vehicle speed as the vehicle speed change value;

[0131] The first judgment submodule is used to determine whether the vehicle speed change value is between a first preset vehicle speed threshold and a second preset vehicle speed threshold, wherein the first preset vehicle speed threshold is greater than the second preset vehicle speed threshold.

[0132] The second determining submodule is used to determine the historical filtering coefficients corresponding to the previous period as the filtering coefficients corresponding to the current period if the condition is met.

[0133] The third determining submodule is used to, if not, increase the historical filtering coefficient corresponding to the previous cycle by a preset adjustment step size when the vehicle speed change value is greater than the first preset vehicle speed threshold, to obtain the filtering coefficient corresponding to the current cycle; and decrease the historical filtering coefficient corresponding to the previous cycle by a preset adjustment step size when the vehicle speed change value is less than the second preset vehicle speed threshold, to obtain the filtering coefficient corresponding to the current cycle.

[0134] Optionally, the first processing module includes:

[0135] The fourth determining submodule is used to determine the first weighting coefficient corresponding to the historical filtered vehicle speed and the second weighting coefficient corresponding to the vehicle speed based on the filtering coefficient;

[0136] The fifth determining submodule is used to determine the filtered vehicle speed corresponding to the current period based on the historical filtered vehicle speed, the first weighting coefficient, the vehicle speed and the second weighting coefficient, using a weighted operation.

[0137] Optionally, the acquisition module includes:

[0138] The first acquisition submodule is used to acquire the original vehicle speed in the original vehicle speed signal for each cycle;

[0139] The calculation submodule is used to calculate the product of the original vehicle speed and the first preset value, plus the second preset value, to obtain the vehicle speed.

[0140] Optionally, the control module includes:

[0141] The second acquisition submodule is used to acquire the acceleration of the vehicle;

[0142] The second judgment submodule is used to determine whether the absolute value of the acceleration is less than a preset acceleration threshold.

[0143] The first control submodule is used to control the instrument to display the target vehicle speed if the target speed is specified.

[0144] The second control submodule is used to determine the vehicle speed as the target vehicle speed if no, and to control the instrument to display the target vehicle speed.

[0145] Optionally, the second processing module includes:

[0146] The third acquisition submodule is used to acquire the N historical filtered vehicle speeds corresponding to the previous N cycles of the current cycle; where N is a positive integer;

[0147] The sixth determining submodule is used to determine the target vehicle speed as the average of the N historical filtered vehicle speeds and the filtered vehicle speed.

[0148] Optionally, the control module includes:

[0149] The third judgment submodule is used to determine whether the target vehicle speed is greater than the historical target vehicle speed corresponding to the previous cycle.

[0150] The seventh determination submodule is used to determine whether the decimal part of the target vehicle speed is greater than a preset rising edge threshold when the target vehicle speed is greater than or equal to the historical target vehicle speed. If so, the target vehicle speed is rounded up to obtain the display vehicle speed; otherwise, the integer part of the target vehicle speed is determined as the display vehicle speed.

[0151] The eighth determination submodule is used to determine whether the decimal part of the target vehicle speed is less than a preset falling edge threshold when the target vehicle speed is less than the historical target vehicle speed. If so, the target vehicle speed is rounded down to obtain the displayed vehicle speed; otherwise, the integer part of the target vehicle speed is determined as the displayed vehicle speed.

[0152] The third control submodule is used to control the instrument display of the vehicle speed.

[0153] Optionally, after obtaining the filtered vehicle speed corresponding to the current cycle, the device further includes:

[0154] The judgment module is used to determine whether the absolute value of the difference between the vehicle speed corresponding to the current cycle and the filtered vehicle speed is greater than the third preset vehicle speed threshold.

[0155] The third processing module is used to, if so, increase the filter coefficient corresponding to the current cycle by a preset adjustment step size, and re-filter the vehicle speed corresponding to the current cycle until the absolute value of the difference between the vehicle speed corresponding to the current cycle and the filtered vehicle speed is less than or equal to the third preset vehicle speed threshold.

[0156] The instrument speed processing device provided in this application periodically acquires the vehicle's original speed signal when the vehicle is in a preset operating condition, obtaining the speed corresponding to each cycle. Based on the speed of the current cycle, the historical speed of the previous cycle, and historical filtering coefficients, a filtering coefficient for the current cycle is determined. Based on the filtering coefficient and the historical filtered speed of the previous cycle, the speed of the current cycle is filtered to obtain the filtered speed. The filtered speed is then smoothed to obtain the target speed. The instrument displays the target speed. By filtering and smoothing the speed acquired in each cycle, this application can eliminate speed jumps caused by road bumps, momentary sensor interference, etc., stabilizing the displayed speed, providing the driver with a reliable speed reference, avoiding distraction, and improving driving safety.

[0157] As the device embodiment is basically similar to the method embodiment, the description is relatively simple, and relevant parts can be found in the description of the method embodiment.

[0158] This application also provides an electronic device, including: a processor, a memory, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, it implements the various processes of the above-described instrument speed processing method embodiment and achieves the same technical effect. To avoid repetition, it will not be described again here.

[0159] For example, Figure 4 A schematic diagram of the physical structure of an electronic device is shown. (For example...) Figure 4 As shown, the electronic device may include a processor 410, a communication interface 420, a memory 430, and a communication bus 440, wherein the processor 410, the communication interface 420, and the memory 430 communicate with each other through the communication bus 440. The processor 410 can call logical instructions in the memory 430 to perform the following steps: when the vehicle is in a preset operating condition, periodically acquire the vehicle's original speed signal to obtain the speed corresponding to each cycle; determine the filtering coefficient corresponding to the current cycle based on the current cycle's speed, the historical speed corresponding to the previous cycle, and the historical filtering coefficient; filter the current cycle's speed based on the filtering coefficient and the historical filtered speed corresponding to the previous cycle to obtain the filtered speed corresponding to the current cycle; smooth the filtered speed to obtain the target speed; and control the instrument to display the target speed. The processor 410 can also execute other schemes in the embodiments of this application, which will not be further described here.

[0160] Furthermore, the logical instructions in the aforementioned memory 430 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application.

[0161] This application also provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it implements the various processes of the above-described instrument speed processing method embodiments and achieves the same technical effect. To avoid repetition, it will not be described again here. The computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc.

[0162] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0163] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0164] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

[0165] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed in this application can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0166] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0167] In the embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0168] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0169] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0170] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, ROM, RAM, magnetic disks, or optical disks.

[0171] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application.

Claims

1. A method for processing vehicle speedometer readings, characterized in that, The method includes: When the vehicle is in a preset operating condition, the original vehicle speed signal is periodically acquired to obtain the vehicle speed corresponding to each cycle. The filter coefficient for the current period is determined based on the vehicle speed corresponding to the current period, the historical vehicle speed corresponding to the previous period, and the historical filter coefficient. Based on the filter coefficients and the historical filtered vehicle speeds corresponding to the previous period, the vehicle speeds corresponding to the current period are filtered to obtain the filtered vehicle speeds corresponding to the current period. The filtered vehicle speed is smoothed to obtain the target vehicle speed; The control instrument displays the target vehicle speed; Specifically, the filter coefficients for the current period are determined based on the vehicle speed corresponding to the current period, the historical vehicle speed corresponding to the previous period, and the historical filter coefficients, including: The absolute value of the difference between the vehicle speed and the historical vehicle speed is determined as the vehicle speed change value; Determine whether the vehicle speed change value is between a first preset vehicle speed threshold and a second preset vehicle speed threshold, wherein the first preset vehicle speed threshold is greater than the second preset vehicle speed threshold; If so, the historical filter coefficients corresponding to the previous period will be determined as the filter coefficients corresponding to the current period. If not, when the vehicle speed change value is greater than the first preset vehicle speed threshold, the historical filtering coefficient corresponding to the previous cycle is increased by a preset adjustment step size to obtain the filtering coefficient corresponding to the current cycle; when the vehicle speed change value is less than the second preset vehicle speed threshold, the historical filtering coefficient corresponding to the previous cycle is decreased by a preset adjustment step size to obtain the filtering coefficient corresponding to the current cycle.

2. The instrument speed processing method according to claim 1, characterized in that, Based on the filter coefficients and the historical filtered vehicle speeds corresponding to the previous period, the vehicle speed corresponding to the current period is filtered to obtain the filtered vehicle speed corresponding to the current period, including: The first weighting coefficient corresponding to the historical filtered vehicle speed and the second weighting coefficient corresponding to the vehicle speed are determined based on the filtering coefficients. Based on the historical filtered vehicle speed, the first weighting coefficient, the vehicle speed, and the second weighting coefficient, the filtered vehicle speed corresponding to the current period is determined by weighted calculation.

3. The instrument speed processing method according to claim 1, characterized in that, The vehicle's original speed signal is periodically acquired to obtain the vehicle speed corresponding to each cycle, including: For each cycle, the original vehicle speed in the original vehicle speed signal is obtained; The vehicle speed is obtained by multiplying the original vehicle speed by the first preset value and adding the second preset value.

4. The instrument speed processing method according to claim 1, characterized in that, The control instrument displays the target vehicle speed, including: Obtain the acceleration of the vehicle; Determine whether the absolute value of the acceleration is less than a preset acceleration threshold; If so, the instrument panel will display the target vehicle speed; If not, the vehicle speed is determined as the target vehicle speed, and the instrument panel is controlled to display the target vehicle speed.

5. The instrument speed processing method according to claim 1, characterized in that, The filtered vehicle speed is smoothed to obtain the target vehicle speed, including: Obtain the N historical filtered vehicle speeds corresponding to the N previous periods of the current period; where N is a positive integer; The average of the N historical filtered vehicle speeds and the filtered vehicle speed is determined as the target vehicle speed.

6. The instrument speed processing method according to claim 1, characterized in that, The control instrument displays the target vehicle speed, including: Determine whether the target vehicle speed is greater than the historical target vehicle speed corresponding to the previous cycle; When the target vehicle speed is greater than or equal to the historical target vehicle speed, it is determined whether the decimal part of the target vehicle speed is greater than a preset rising edge threshold. If so, the target vehicle speed is rounded up to obtain the displayed vehicle speed; otherwise, the integer part of the target vehicle speed is determined as the displayed vehicle speed. When the target vehicle speed is less than the historical target vehicle speed, it is determined whether the decimal part of the target vehicle speed is less than a preset falling edge threshold. If so, the target vehicle speed is rounded down to obtain the displayed vehicle speed; otherwise, the integer part of the target vehicle speed is determined as the displayed vehicle speed. The control instrument displays the vehicle speed.

7. The instrument speed processing method according to claim 1, characterized in that, After obtaining the filtered vehicle speed corresponding to the current cycle, the method further includes: Determine whether the absolute value of the difference between the current cycle's vehicle speed and the filtered vehicle speed is greater than the third preset vehicle speed threshold. If so, the filter coefficient corresponding to the current cycle is increased by a preset adjustment step size, and the vehicle speed corresponding to the current cycle is re-filtered until the absolute value of the difference between the vehicle speed corresponding to the current cycle and the filtered vehicle speed is less than or equal to the third preset vehicle speed threshold.

8. A vehicle speed instrument processing device, characterized in that, include: The acquisition module is used to periodically acquire the original vehicle speed signal of the vehicle when the vehicle is in a preset operating condition, and obtain the vehicle speed corresponding to each cycle. The determination module is used to determine the filter coefficient corresponding to the current cycle based on the vehicle speed corresponding to the current cycle, the historical vehicle speed corresponding to the previous cycle, and the historical filter coefficient. The first processing module is used to filter the vehicle speed corresponding to the current period based on the filter coefficient and the historical filtered vehicle speed corresponding to the previous period, so as to obtain the filtered vehicle speed corresponding to the current period. The second processing module is used to smooth the filtered vehicle speed to obtain the target vehicle speed; The control module is used to control the instrument display of the target vehicle speed; The determining module includes: The first determining submodule is used to determine the absolute value of the difference between the vehicle speed and the historical vehicle speed as the vehicle speed change value; The first judgment submodule is used to determine whether the vehicle speed change value is between a first preset vehicle speed threshold and a second preset vehicle speed threshold, wherein the first preset vehicle speed threshold is greater than the second preset vehicle speed threshold. The second determining submodule is used to determine the historical filtering coefficients corresponding to the previous period as the filtering coefficients corresponding to the current period if the condition is met. The third determining submodule is used to, if not, increase the historical filtering coefficient corresponding to the previous cycle by a preset adjustment step size when the vehicle speed change value is greater than the first preset vehicle speed threshold, to obtain the filtering coefficient corresponding to the current cycle; and decrease the historical filtering coefficient corresponding to the previous cycle by a preset adjustment step size when the vehicle speed change value is less than the second preset vehicle speed threshold, to obtain the filtering coefficient corresponding to the current cycle.

9. An electronic device, characterized in that, It includes a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the instrument speed processing method as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Vehicle speed adjusting method, device and equipment, and computer readable storage medium

    CN110329272A

  • Automobile speed processing method and device, computer readable storage medium and equipment

    CN111775697A