[go: up one dir, main page]

CN115071421A - Vehicle speed display method and system of vehicle digital instrument - Google Patents

Vehicle speed display method and system of vehicle digital instrument Download PDF

Info

Publication number
CN115071421A
CN115071421A CN202210751212.8A CN202210751212A CN115071421A CN 115071421 A CN115071421 A CN 115071421A CN 202210751212 A CN202210751212 A CN 202210751212A CN 115071421 A CN115071421 A CN 115071421A
Authority
CN
China
Prior art keywords
vehicle speed
updated
real
time
speed
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210751212.8A
Other languages
Chinese (zh)
Inventor
金琦
何新伟
鲍伟
莫卯卯
舒聪
刘景辉
李枫
杨泽禹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dongfeng Huashen Motor Co Ltd
Original Assignee
Dongfeng Huashen Motor Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dongfeng Huashen Motor Co Ltd filed Critical Dongfeng Huashen Motor Co Ltd
Priority to CN202210751212.8A priority Critical patent/CN115071421A/en
Publication of CN115071421A publication Critical patent/CN115071421A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60KARRANGEMENT OR MOUNTING OF PROPULSION UNITS OR OF TRANSMISSIONS IN VEHICLES; ARRANGEMENT OR MOUNTING OF PLURAL DIVERSE PRIME-MOVERS IN VEHICLES; AUXILIARY DRIVES FOR VEHICLES; INSTRUMENTATION OR DASHBOARDS FOR VEHICLES; ARRANGEMENTS IN CONNECTION WITH COOLING, AIR INTAKE, GAS EXHAUST OR FUEL SUPPLY OF PROPULSION UNITS IN VEHICLES
    • B60K35/00Instruments specially adapted for vehicles; Arrangement of instruments in or on vehicles
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60KARRANGEMENT OR MOUNTING OF PROPULSION UNITS OR OF TRANSMISSIONS IN VEHICLES; ARRANGEMENT OR MOUNTING OF PLURAL DIVERSE PRIME-MOVERS IN VEHICLES; AUXILIARY DRIVES FOR VEHICLES; INSTRUMENTATION OR DASHBOARDS FOR VEHICLES; ARRANGEMENTS IN CONNECTION WITH COOLING, AIR INTAKE, GAS EXHAUST OR FUEL SUPPLY OF PROPULSION UNITS IN VEHICLES
    • B60K35/00Instruments specially adapted for vehicles; Arrangement of instruments in or on vehicles
    • B60K35/80Arrangements for controlling instruments
    • B60K35/81Arrangements for controlling instruments for controlling displays

Landscapes

  • Engineering & Computer Science (AREA)
  • Chemical & Material Sciences (AREA)
  • Combustion & Propulsion (AREA)
  • Transportation (AREA)
  • Mechanical Engineering (AREA)
  • Indicating Measured Values (AREA)

Abstract

本发明公开了一种车辆数字仪表车速显示方法及系统,该方法包括以下步骤:将霍尔传感器采集的脉冲信号进行占空比过滤处理;利用设定的K值脉冲系数对过滤处理后的脉冲信号进行转换,获得实时车速;对所述实时车速进行均值平滑处理,获得平滑车速;根据前后相邻的第一平滑车速和第二平滑车速的差值是否大于车速更新门限,确定更新车速;每隔预设时间刷新一次更新车速,并显示所述更新车速。本发明,通过对车速的均值平滑处理,根据前后相邻的第一平滑车速和第二平滑车速的差值是否大于车速更新门限,确定更新车速,减小了车速数据抖动的影响,计算方法简单,计算速度快,实时性好,用户体验好。

Figure 202210751212

The invention discloses a vehicle digital instrument speed display method and system. The method comprises the following steps: filtering a pulse signal collected by a Hall sensor on a duty cycle; The signal is converted to obtain the real-time vehicle speed; the mean value smoothing process is performed on the real-time vehicle speed to obtain the smoothed vehicle speed; according to whether the difference between the adjacent first smoothed vehicle speed and the second smoothed vehicle speed is greater than the vehicle speed update threshold, the updated vehicle speed is determined; The updated vehicle speed is refreshed every preset time, and the updated vehicle speed is displayed. In the present invention, by smoothing the mean value of the vehicle speed, the updated vehicle speed is determined according to whether the difference between the adjacent first smoothed vehicle speed and the second smoothed vehicle speed is greater than the vehicle speed update threshold, which reduces the influence of vehicle speed data jitter, and the calculation method is simple , the calculation speed is fast, the real-time performance is good, and the user experience is good.

Figure 202210751212

Description

一种车辆数字仪表的车速显示方法及系统A vehicle speed display method and system of a vehicle digital instrument

技术领域technical field

本发明涉及车辆数字仪表技术领域,具体涉及一种车辆数字仪表的车速显示方法及系统。The invention relates to the technical field of vehicle digital instruments, in particular to a vehicle speed display method and system of a vehicle digital instrument.

背景技术Background technique

商用车目前大多采用指针式仪表,通过仪表盘上的物理指针实时显示当前的车速。这种方式,一方面不够直观,另一方面还需要步进电机驱动指针转动,成本较高。Most commercial vehicles currently use pointer-type instruments, which display the current vehicle speed in real time through physical pointers on the instrument panel. In this way, on the one hand, it is not intuitive, and on the other hand, it requires a stepping motor to drive the pointer to rotate, and the cost is relatively high.

为此,数字仪表越来越多地应用到商用车中。现有的数字仪表中,通常采用变速箱里程表非接触式传感器进行测速,即通过传感器上的霍尔元件、光电元件对行驶速度信号进行感应检测,然后将脉冲信号传输给数字仪表,并通过K值脉冲系数换算获得实际车速进行显示。这种方案采用了霍尔传感器及相应的电路,存在以下缺陷:For this reason, digital instruments are increasingly used in commercial vehicles. In the existing digital instrument, the non-contact sensor of the gearbox odometer is usually used for speed measurement, that is, the driving speed signal is sensed and detected by the Hall element and photoelectric element on the sensor, and then the pulse signal is transmitted to the digital instrument, and passed The K value pulse coefficient is converted to obtain the actual vehicle speed for display. This scheme uses Hall sensors and corresponding circuits, and has the following defects:

霍尔传感器容易受到整车其他多种传感器的干扰,造成车速数据突变和抖动,而数字仪表的响应速度又非常快,车速数据的波动直接表现为数显指针的突变和抖动,从而影响客户的使用体验。Hall sensors are easily interfered by other sensors in the vehicle, resulting in sudden changes and jitters in vehicle speed data, while the response speed of digital instruments is very fast. Use experience.

有鉴于此,急需对现有的车辆数字仪表的车速显示方法进行改进,使数字仪表的数显指针运行平稳顺滑,数显清晰稳定,具有更佳的用户体验。In view of this, it is urgent to improve the vehicle speed display method of the existing vehicle digital instrument, so that the digital display pointer of the digital instrument runs smoothly and smoothly, the digital display is clear and stable, and has a better user experience.

发明内容SUMMARY OF THE INVENTION

针对上述缺陷,本发明所要解决的技术问题在于提供一种车辆数字仪表的车速显示方法,以解决现有施工方法,对周围水域影响较大的问题。In view of the above defects, the technical problem to be solved by the present invention is to provide a vehicle speed display method of a vehicle digital instrument, so as to solve the problem that the existing construction method has a great influence on the surrounding waters.

为此,本发明提供了一种车辆数字仪表的车速显示方法,包括以下步骤:To this end, the present invention provides a vehicle speed display method of a vehicle digital instrument, comprising the following steps:

将采集周期内霍尔传感器采集的脉冲信号进行占空比过滤处理;Perform duty cycle filtering on the pulse signal collected by the Hall sensor in the collection period;

利用设定的K值脉冲系数对过滤处理后的脉冲信号进行转换,计算获得当前采集周期的实时车速;Use the set K value pulse coefficient to convert the filtered pulse signal, and calculate and obtain the real-time vehicle speed of the current acquisition period;

对所述实时车速进行均值平滑处理,获得平滑车速;performing mean value smoothing processing on the real-time vehicle speed to obtain a smooth vehicle speed;

根据前后相邻的第一平滑车速和第二平滑车速的差值是否大于车速更新门限,确定更新车速;如果所述差值大于车速更新门限,则将第二平滑车速加上所述差值的一半作为更新车速,否则,将第二平滑车速作为更新车速;Determine the updated vehicle speed according to whether the difference between the adjacent first smoothed vehicle speed and the second smoothed vehicle speed is greater than the vehicle speed update threshold; if the difference is greater than the vehicle speed update threshold, add the second smoothed vehicle speed to the difference value Half of it is used as the updated vehicle speed, otherwise, the second smoothed vehicle speed is used as the updated vehicle speed;

每隔预设时间刷新一次更新车速,并显示所述更新车速。The updated vehicle speed is refreshed every preset time, and the updated vehicle speed is displayed.

在上述技术方法中,优选地,所述占空比过滤处理是将占空比大于(50+P)%和小于(50-P)%的脉冲信号舍弃,其中P为预设的过滤参数,为一个大于1的自然数。In the above technical method, preferably, the duty cycle filtering process is to discard pulse signals with a duty cycle greater than (50+P)% and less than (50-P)%, where P is a preset filtering parameter, is a natural number greater than 1.

在上述技术方法中,优选地,所述均值平滑处理的方法如下:In the above technical method, preferably, the method for smoothing the mean value is as follows:

取当前的实时车速Vn以及前s个实时车速Vn-s,Vn-s+1,Vn-s+2…;Take the current real-time vehicle speed Vn and the first s real-time vehicle speeds Vn-s, Vn-s+1, Vn-s+2...;

利用公式Vi=(Vn-s+Vn-s+1+Vn-s+2…Vn)/s获得平滑车速Vi,其中,n为一个大于2的自然数,s为一个大于1的自然数。The smooth vehicle speed Vi is obtained by using the formula Vi=(Vn-s+Vn-s+1+Vn-s+2...Vn)/s, where n is a natural number greater than 2, and s is a natural number greater than 1.

在上述技术方法中,优选地,所述车速更新门限为1公里/小时。In the above technical method, preferably, the vehicle speed update threshold is 1 km/h.

在上述技术方法中,优选地,所述预设时间为500毫秒。In the above technical method, preferably, the preset time is 500 milliseconds.

本发明还提供了一种车辆数字仪表的车速显示系统,包括:The present invention also provides a vehicle speed display system of a vehicle digital instrument, comprising:

过滤单元,用于将采集周期内霍尔传感器采集的脉冲信号进行占空比过滤处理;The filtering unit is used to filter the duty cycle of the pulse signal collected by the Hall sensor in the collection period;

转换单元,用于利用设定的K值脉冲系数对过滤处理后的脉冲信号进行转换,计算获得当前采集周期的实时车速;The conversion unit is used to convert the filtered pulse signal by using the set K value pulse coefficient, and calculate and obtain the real-time vehicle speed of the current collection period;

平滑单元,用于对所述实时车速进行均值平滑处理,获得平滑车速;a smoothing unit, configured to perform mean value smoothing processing on the real-time vehicle speed to obtain a smoothed vehicle speed;

车速确定单元,用于根据前后相邻的第一平滑车速和第二平滑车速的差值是否大于车速更新门限,确定更新车速;如果所述差值大于车速更新门限,则将第二平滑车速加上所述差值的一半作为更新车速,否则,将第二平滑车速作为更新车速;The vehicle speed determination unit is configured to determine the updated vehicle speed according to whether the difference between the adjacent first smooth vehicle speed and the second smooth vehicle speed is greater than the vehicle speed update threshold; if the difference is greater than the vehicle speed update threshold, the second smooth vehicle speed is increased. Half of the above difference is used as the updated vehicle speed, otherwise, the second smoothed vehicle speed is used as the updated vehicle speed;

更新单元,用于每隔预设时间刷新一次更新车速,并显示所述更新车速。The updating unit is configured to refresh the updated vehicle speed every preset time, and display the updated vehicle speed.

在上述系统中,优选地,所述车速更新门限为1公里/小时。In the above system, preferably, the vehicle speed update threshold is 1 km/h.

在上述系统中,优选地,所述预设时间为500毫秒。In the above system, preferably, the preset time is 500 milliseconds.

由上述技术方案可知,本发明提供的车辆数字仪表的车速显示方法及系统,解决了现有技术数显指针的突变和抖动,影响客户的使用体验的问题。与现有技术相比,本发明具有以下有益效果:It can be seen from the above technical solutions that the vehicle speed display method and system of the vehicle digital instrument provided by the present invention solve the problem of the sudden change and jitter of the digital display pointer in the prior art, which affects the customer's use experience. Compared with the prior art, the present invention has the following beneficial effects:

通过对车速的均值平滑处理,提高了车速的准确性,避免突变的影响。根据前后相邻的第一平滑车速和第二平滑车速的差值是否大于车速更新门限,确定更新车速,且如果所述差值大于车速更新门限,则将第二平滑车速加上所述差值的一半作为更新车速,否则,将第二平滑车速作为更新车速,减小了车速数据抖动的影响。并且,计算方法简单,计算速度快,实时性好,用户体验好。By smoothing the mean value of the vehicle speed, the accuracy of the vehicle speed is improved and the influence of sudden changes is avoided. Determine the updated vehicle speed according to whether the difference between the adjacent first smoothed vehicle speed and the second smoothed vehicle speed is greater than the vehicle speed update threshold, and if the difference is greater than the vehicle speed update threshold, add the second smoothed vehicle speed to the difference Half of it is used as the updated vehicle speed, otherwise, the second smoothed vehicle speed is used as the updated vehicle speed, which reduces the influence of vehicle speed data jitter. Moreover, the calculation method is simple, the calculation speed is fast, the real-time performance is good, and the user experience is good.

附图说明Description of drawings

为了更清楚地说明本发明的实施例或现有技术中的技术方案,下面将对本发明实施例或现有技术描述中所需要使用的附图做出简单地介绍和说明。显而易见地,下面描述中的附图仅仅是本发明的部分实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to describe the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces and describes the accompanying drawings that are required in the description of the embodiments of the present invention or the prior art. Obviously, the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can also be obtained from these drawings without creative efforts.

图1为本发明提供的一种车辆数字仪表的车速显示方法流程图。FIG. 1 is a flow chart of a vehicle speed display method of a vehicle digital instrument provided by the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例附图,对本发明实施例的技术方案进行清楚、完整地描述,显然,以下所描述的实施例,仅仅是本发明的一部分实施例,而不是全部的实施例。基于本发明的实施例,本领域普通技术人员在没有做出创造性劳动的前提下,所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the embodiments described below are only a part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present invention.

本发明的实现原理是:The realization principle of the present invention is:

将霍尔传感器采集的脉冲信号进行占空比过滤处理;利用设定的K值脉冲系数对过滤处理后的脉冲信号进行转换,获得实时车速;对所述实时车速进行均值平滑处理,获得平滑车速;根据前后相邻的第一平滑车速和第二平滑车速的差值是否大于车速更新门限,确定更新车速;每隔预设时间刷新一次更新车速,并显示所述更新车速。Perform duty cycle filtering on the pulse signal collected by the Hall sensor; convert the filtered pulse signal with the set K value pulse coefficient to obtain a real-time vehicle speed; perform mean value smoothing on the real-time vehicle speed to obtain a smooth vehicle speed ; Determine the updated vehicle speed according to whether the difference between the adjacent first smoothed vehicle speed and the second smoothed vehicle speed is greater than the vehicle speed update threshold; refresh the updated vehicle speed every preset time, and display the updated vehicle speed.

通过对车速的均值平滑处理,根据前后相邻的第一平滑车速和第二平滑车速的差值是否大于车速更新门限,确定更新车速,减小了车速数据抖动的影响,计算方法简单,计算速度快,实时性好,用户体验好。By smoothing the average value of the vehicle speed, the updated vehicle speed is determined according to whether the difference between the adjacent first smoothed vehicle speed and the second smoothed vehicle speed is greater than the vehicle speed update threshold, which reduces the influence of vehicle speed data jitter, and the calculation method is simple and the calculation speed is simple. Fast, good real-time performance, and good user experience.

为了对本发明的技术方案和实现方式做出更清楚地解释和说明,以下介绍实现本发明技术方案的几个优选的具体实施例。In order to explain and illustrate the technical solutions and implementation manners of the present invention more clearly, several preferred specific embodiments for realizing the technical solutions of the present invention are introduced below.

需要说明的是,本文中“内、外”、“前、后”及“左、右”等方位词是以产品使用状态为基准对象进行的表述,显然,相应方位词的使用对本方案的保护范围并非构成限制。It should be noted that the orientation words such as "inside, outside", "front, rear" and "left and right" in this article are based on the product use state as the reference object. Obviously, the use of the corresponding orientation words protects this scheme. The scope is not intended to be limiting.

现有商用车使用的数字仪表,霍尔传感器容易受到整车其他多种传感器的干扰,造成车速数据突变和抖动,影响客户的使用体验。针对上述问题,本发明方法提供了一种车辆数字仪表的车速显示方法和系统,通过数字和指针显示车速,且指针运行平稳顺滑,数显清晰稳定,具有更佳的用户体验。Digital instruments and Hall sensors used in existing commercial vehicles are susceptible to interference from other sensors in the vehicle, resulting in sudden changes and jitters in vehicle speed data, affecting customers' experience. In view of the above problems, the method of the present invention provides a vehicle speed display method and system of a vehicle digital instrument.

请参见图1,图1为本发明提供的一种车辆数字仪表的车速显示方法流程图。Please refer to FIG. 1. FIG. 1 is a flowchart of a vehicle speed display method of a vehicle digital instrument provided by the present invention.

如图1所示,本发明提供的一种车辆数字仪表的车速显示方法,包括以下步骤:As shown in FIG. 1, a vehicle speed display method of a vehicle digital instrument provided by the present invention includes the following steps:

步骤110,将采集周期内霍尔传感器采集的脉冲信号进行占空比过滤处理。Step 110: Perform duty cycle filtering on the pulse signal collected by the Hall sensor in the collection period.

具体地,将占空比大于(50+P)%和小于(50-P)%的脉冲信号进行舍弃处理,其中P为预设的过滤参数,是一个大于1的自然数。例如P=5,则将占空比大于55%和小于可5%的脉冲信号进行舍弃处理。Specifically, the pulse signal whose duty ratio is greater than (50+P)% and less than (50-P)% is discarded, where P is a preset filtering parameter, which is a natural number greater than 1. For example, when P=5, the pulse signal whose duty ratio is greater than 55% and less than 5% is discarded.

霍尔传感器是一种基于霍尔效应的磁电传感器,具有结构简单、使用方便等特点。其工作原理是当传感器的旋转机构在外驱动作用下旋转时,会带动永磁铁旋转,穿过霍尔元件的磁场产生周期性变化,引起霍尔元件输出电压变化,通过后续电路处理形成稳定的脉冲电压信号,作为车速输出信号。霍尔车速传感器的主要电气技术参数包括:输出信号高电压、低电压、占空比、周期、上升时间、下降时间、周期脉冲数等。Hall sensor is a magnetoelectric sensor based on Hall effect, which has the characteristics of simple structure and convenient use. Its working principle is that when the rotating mechanism of the sensor rotates under the action of external driving, it will drive the permanent magnet to rotate, and the magnetic field passing through the Hall element will change periodically, causing the output voltage of the Hall element to change, and a stable pulse will be formed through subsequent circuit processing. The voltage signal is used as the vehicle speed output signal. The main electrical technical parameters of the Hall speed sensor include: output signal high voltage, low voltage, duty cycle, period, rise time, fall time, number of periodic pulses, etc.

占空比是指霍尔传感器采集的脉冲信号中高电平在一个采集周期中所占的比例。通过对霍尔传感器采集的脉冲信号进行占空比过滤处理,减少了外界其他传感器的干扰,提高了实际车速的准确性。The duty cycle refers to the proportion of the high level in the pulse signal collected by the Hall sensor in one collection period. By filtering the pulse signal collected by the Hall sensor on the duty cycle, the interference of other external sensors is reduced, and the accuracy of the actual vehicle speed is improved.

步骤120,利用设定的K值脉冲系数对过滤处理后的脉冲信号进行转换,计算获得当前采集周期的实时车速。Step 120: Convert the filtered pulse signal by using the set K value pulse coefficient, and calculate and obtain the real-time vehicle speed of the current collection period.

K值脉冲系数为每公里的脉冲信号数。The K value pulse coefficient is the number of pulse signals per kilometer.

步骤130,对实时车速进行均值平滑处理,获得平滑车速。具体方法如下:Step 130: Perform mean value smoothing on the real-time vehicle speed to obtain a smoothed vehicle speed. The specific method is as follows:

取当前的实时车速Vn以及前s个实时车速Vn-s,Vn-s+1,Vn-s+2…;Take the current real-time vehicle speed Vn and the first s real-time vehicle speeds Vn-s, Vn-s+1, Vn-s+2...;

利用公式Vi=(Vn-s+Vn-s+1+Vn-s+2…Vn)/(s+1)获得当前的平滑车速Vi,其中,n为一个大于2的自然数,表示第n个采集周期,s为一个大于1的自然数,表示前s个采集周期。Use the formula Vi=(Vn-s+Vn-s+1+Vn-s+2...Vn)/(s+1) to obtain the current smooth vehicle speed Vi, where n is a natural number greater than 2, indicating the nth Collection period, s is a natural number greater than 1, indicating the first s collection periods.

例如:第5个采集周期n=5,取前2个采集周期进行平滑处理,则加上当前的采集周期一共通过3个采集周期进行平滑处理获得当前的平滑车速Vi=(V3+V4+V5)/3。For example: the fifth collection period n=5, take the first 2 collection periods for smoothing, then add the current collection period for a total of 3 collection periods for smoothing to obtain the current smooth vehicle speed Vi=(V3+V4+V5 )/3.

步骤140,根据前后相邻的第一平滑车速和第二平滑车速的差值是否大于车速更新门限,确定更新车速。Step 140: Determine the updated vehicle speed according to whether the difference between the adjacent first smoothed vehicle speed and the second smoothed vehicle speed is greater than the vehicle speed update threshold.

如果第一平滑车速和第二平滑车速的差值大于车速更新门限,则将第二平滑车速加上上述差值的一半作为更新车速,否则,将第二平滑车速作为更新车速。If the difference between the first smoothed vehicle speed and the second smoothed vehicle speed is greater than the vehicle speed update threshold, the second smoothed vehicle speed plus half of the above difference is used as the updated vehicle speed; otherwise, the second smoothed vehicle speed is used as the updated vehicle speed.

具体地,首先设定一个车速更新门限值t,判断第二平滑车速Vi第一平滑车速Vi-1是否大于等于车速更新门限t,如果(Vi-Vi-1)>t,则更新车速Vj=Vi+(Vi–Vi-1)/2;反之,如果(Vi-Vi-1)≤t,则更新车速Vj=第二平滑车速Vi。其中,车速更新门限值t为自然数,表示车速变化多少时才会更新,以合车速更新平滑,避免突变和抖动。例如,t取1公里/小时,则车速变化大于每小时1公里时才能更新,如果车速变化不超过每小时1公里,则保持当前车速不变。Specifically, first set a vehicle speed update threshold value t, determine whether the second smoothed vehicle speed Vi and the first smoothed vehicle speed Vi-1 are greater than or equal to the vehicle speed update threshold t, if (Vi-Vi-1)>t, then update the vehicle speed Vj =Vi+(Vi−Vi−1)/2; on the contrary, if (Vi−Vi−1)≦t, the updated vehicle speed Vj=the second smoothed vehicle speed Vi. Among them, the vehicle speed update threshold value t is a natural number, which indicates how much the vehicle speed changes before updating, and the update is smooth at the combined vehicle speed to avoid sudden changes and jitters. For example, if t is 1 km/h, the update can only be done when the speed change is greater than 1 km per hour. If the speed change does not exceed 1 km per hour, the current speed will remain unchanged.

步骤150,每隔预设时间刷新一次更新车速,并显示更新车速。Step 150, refresh the updated vehicle speed every preset time, and display the updated vehicle speed.

预设时间为车速更新门限值,用于避免车速抖动,达到阻尼的效果。例如预设时间取500毫秒,则每隔500毫秒车速才会变化一次。The preset time is the vehicle speed update threshold, which is used to avoid vehicle speed jitter and achieve the damping effect. For example, if the preset time is 500 milliseconds, the vehicle speed will only change every 500 milliseconds.

在上述车辆数字仪表的车速显示方法的基础上,本发明对应地还提供了一种一种车辆数字仪表的车速显示系统,包括:On the basis of the above-mentioned vehicle speed display method of a vehicle digital instrument, the present invention correspondingly provides a vehicle speed display system of a vehicle digital instrument, comprising:

过滤单元,用于将采集周期内霍尔传感器采集的脉冲信号进行占空比过滤处理;The filtering unit is used to filter the duty cycle of the pulse signal collected by the Hall sensor in the collection period;

转换单元,用于利用设定的K值脉冲系数对过滤处理后的脉冲信号进行转换,计算获得当前采集周期的实时车速;The conversion unit is used to convert the filtered pulse signal by using the set K value pulse coefficient, and calculate and obtain the real-time vehicle speed of the current collection period;

平滑单元,用于对所述实时车速进行均值平滑处理,获得平滑车速;a smoothing unit, configured to perform mean value smoothing processing on the real-time vehicle speed to obtain a smoothed vehicle speed;

车速确定单元,用于根据前后相邻的第一平滑车速和第二平滑车速的差值是否大于车速更新门限,确定更新车速;如果所述差值大于车速更新门限,则将第二平滑车速加上所述差值的一半作为更新车速,否则,将第二平滑车速作为更新车速;The vehicle speed determination unit is configured to determine the updated vehicle speed according to whether the difference between the adjacent first smooth vehicle speed and the second smooth vehicle speed is greater than the vehicle speed update threshold; if the difference is greater than the vehicle speed update threshold, the second smooth vehicle speed is increased. Half of the above difference is used as the updated vehicle speed, otherwise, the second smoothed vehicle speed is used as the updated vehicle speed;

更新单元,用于每隔预设时间刷新一次更新车速,并显示所述更新车速。The updating unit is configured to refresh the updated vehicle speed every preset time, and display the updated vehicle speed.

上述系统中过滤单元、平滑单元以及车速确定单元的具体实现方式已在前述方法中进行了详细说明,在此不再赘述。The specific implementation manners of the filtering unit, the smoothing unit and the vehicle speed determining unit in the above system have been described in detail in the foregoing method, and will not be repeated here.

综合以上具体实施例的描述,本发明提供的车辆数字仪表的车速显示方法及系统,与现有技术相比,具有如下优点:Based on the description of the above specific embodiments, the vehicle speed display method and system of the vehicle digital instrument provided by the present invention have the following advantages compared with the prior art:

第一,通过对车速的均值平滑处理,提高了车速的准确性,避免突变的影响。First, by smoothing the mean value of the vehicle speed, the accuracy of the vehicle speed is improved and the influence of sudden changes is avoided.

第二,根据前后相邻的第一平滑车速和第二平滑车速的差值是否大于车速更新门限,确定更新车速,且如果所述差值大于车速更新门限,则将第二平滑车速加上所述差值的一半作为更新车速,否则,将第二平滑车速作为更新车速,减小了车速数据抖动的影响。Second, determine the updated vehicle speed according to whether the difference between the adjacent first smoothed vehicle speed and the second smoothed vehicle speed is greater than the vehicle speed update threshold, and if the difference is greater than the vehicle speed update threshold, add the second smoothed vehicle speed to the Half of the difference is used as the updated vehicle speed, otherwise, the second smoothed vehicle speed is used as the updated vehicle speed, which reduces the influence of vehicle speed data jitter.

第三,计算方法简单,计算速度快,实时性好,用户体验好。Third, the calculation method is simple, the calculation speed is fast, the real-time performance is good, and the user experience is good.

最后,还需要说明的是,在本文中使用的术语"包括"、"包含"或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句"包括一个…"限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。Finally, it should also be noted that the terms "comprising", "comprising" or any other variation thereof used herein are intended to encompass non-exclusive inclusion such that a process, method, article or device comprising a series of elements not only Include those elements, but also other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprises a..." does not preclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.

本发明并不局限于上述最佳实施方式,任何人应该得知在本发明的启示下做出的结构变化,凡是与本发明具有相同或相近的技术方案,均落入本发明的保护范围之内。The present invention is not limited to the above-mentioned best embodiment. Anyone should be aware of the structural changes made under the inspiration of the present invention, and any technical solutions that are the same or similar to those of the present invention shall fall within the protection scope of the present invention. Inside.

Claims (10)

1. A vehicle speed display method of a vehicle digital instrument is characterized by comprising the following steps:
carrying out duty ratio filtering processing on pulse signals acquired by a Hall sensor in an acquisition period;
converting the filtered pulse signal by using a set K value pulse coefficient, and calculating to obtain the real-time vehicle speed of the current acquisition period;
carrying out mean value smoothing processing on the real-time vehicle speed to obtain a smooth vehicle speed;
determining an updated vehicle speed according to whether the difference value between the first smooth vehicle speed and the second smooth vehicle speed which are adjacent in the front and back is larger than a vehicle speed updating threshold; if the difference is greater than the vehicle speed updating threshold, taking the second flat pulley speed plus half of the difference as the updating vehicle speed, otherwise, taking the second flat pulley speed as the updating vehicle speed;
and refreshing the updated vehicle speed once every preset time, and displaying the updated vehicle speed.
2. The method of claim 1, wherein the duty cycle filtering process discards pulse signals with duty cycles greater than (50+ P)% and less than (50-P)% where P is a preset filtering parameter and is a natural number greater than 1.
3. The method of claim 1, wherein the mean smoothing is performed by:
taking a current real-time vehicle speed Vn and previous s real-time vehicle speeds Vn-s, Vn-s +1 and Vn-s +2 …;
the smoothing vehicle speed Vi is obtained by using the formula Vi ═ Vn-s +1+ Vn-s +2 … Vn)/s, where n is a natural number greater than 2 and s is a natural number greater than 1.
4. The method of claim 1, wherein the vehicle speed update threshold is 1 km/h.
5. The method of claim 1, wherein the predetermined time is 500 milliseconds.
6. The method of claim 1, wherein the updated vehicle speed is displayed in a numeric and pointer synchronization.
7. A vehicle speed display system for a vehicle digital instrument, comprising:
the filtering unit is used for carrying out duty ratio filtering processing on the pulse signals collected by the Hall sensor in the collection period;
the conversion unit is used for converting the filtered pulse signals by using the set K value pulse coefficient and calculating to obtain the real-time vehicle speed of the current acquisition period;
the smoothing unit is used for carrying out mean value smoothing processing on the real-time vehicle speed to obtain a smooth vehicle speed;
the vehicle speed determining unit is used for determining an updated vehicle speed according to whether the difference value between the first smooth vehicle speed and the second smooth vehicle speed which are adjacent in the front and back is larger than a vehicle speed updating threshold; if the difference is greater than the vehicle speed updating threshold, taking the second flat pulley speed plus half of the difference as the updating vehicle speed, otherwise, taking the second flat pulley speed as the updating vehicle speed;
and the updating unit is used for refreshing the updated vehicle speed once every preset time and displaying the updated vehicle speed.
8. The system of claim 7, wherein the filtering unit discards pulse signals having duty cycles greater than (50+ P)% and less than (50-P)% where P is a preset filtering parameter and is a natural number greater than 1, and updates the vehicle speed by using numbers and pointers for synchronous display.
9. The system of claim 7, wherein the vehicle speed update threshold is 1 km/h.
10. The system of claim 7, wherein the preset time is 500 milliseconds.
CN202210751212.8A 2022-06-28 2022-06-28 Vehicle speed display method and system of vehicle digital instrument Pending CN115071421A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210751212.8A CN115071421A (en) 2022-06-28 2022-06-28 Vehicle speed display method and system of vehicle digital instrument

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210751212.8A CN115071421A (en) 2022-06-28 2022-06-28 Vehicle speed display method and system of vehicle digital instrument

Publications (1)

Publication Number Publication Date
CN115071421A true CN115071421A (en) 2022-09-20

Family

ID=83256489

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210751212.8A Pending CN115071421A (en) 2022-06-28 2022-06-28 Vehicle speed display method and system of vehicle digital instrument

Country Status (1)

Country Link
CN (1) CN115071421A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100916464B1 (en) * 2008-06-18 2009-09-08 현대자동차주식회사 Apparatus for compensating vehicle speed and method for operating the same
CN204854761U (en) * 2015-07-13 2015-12-09 肖建辉 Odometer
CN106153975A (en) * 2016-07-05 2016-11-23 北汽福田汽车股份有限公司 A kind of method, system and vehicle exporting vehicle speed pulse
JP2019168296A (en) * 2018-03-22 2019-10-03 パナソニックIpマネジメント株式会社 Display device, display method, and display program
CN112193068A (en) * 2020-10-14 2021-01-08 中国第一汽车股份有限公司 Vehicle speed display method and device, vehicle and computer storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100916464B1 (en) * 2008-06-18 2009-09-08 현대자동차주식회사 Apparatus for compensating vehicle speed and method for operating the same
CN204854761U (en) * 2015-07-13 2015-12-09 肖建辉 Odometer
CN106153975A (en) * 2016-07-05 2016-11-23 北汽福田汽车股份有限公司 A kind of method, system and vehicle exporting vehicle speed pulse
JP2019168296A (en) * 2018-03-22 2019-10-03 パナソニックIpマネジメント株式会社 Display device, display method, and display program
CN112193068A (en) * 2020-10-14 2021-01-08 中国第一汽车股份有限公司 Vehicle speed display method and device, vehicle and computer storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
刘义乐等: "《履带车辆驾驶训练数据挖掘》", vol. 2021, 31 March 2021, 北京:国防工业出版社, pages: 20 - 21 *
张俊: "《匠人手记-一个单片机工作者的实践与思考 第2版》", vol. 978, 31 January 2014, 北京航空航天大学出版社, pages: 289 - 290 *

Similar Documents

Publication Publication Date Title
CN108020282B (en) Coriolis mass flowmeter signal processing method based on complex coefficient filtering
CN106645780B (en) DSP-based rotating speed detection method and system
CN109849668B (en) Speed display method of automobile liquid crystal instrument
CN115071421A (en) Vehicle speed display method and system of vehicle digital instrument
CN112116678B (en) Irregular virtual pointer display method of liquid crystal instrument and liquid crystal instrument
CN112329585B (en) Weighing signal switching and filtering processing method for electronic balance
CN1858561A (en) Detecting unit for treating nonlinear output signal of coriolis mass flow meter
CN109782013B (en) Motor speed measuring method and device, readable storage medium and electric equipment
CN110058042A (en) A kind of vehicle-speed monitoring system based on Hall sensor
CN110799807B (en) Orthogonal encoder signal filtering method, device and system
CN111337702A (en) Data processing system and method for optical incremental encoder
CN103185824B (en) A kind of digital oscilloscope that can show mathematical operation result
CN112305256B (en) Self-adaptive MT transition speed measurement method
US4472775A (en) Display method and system
CN110568212B (en) Encoder speed measurement method, device, equipment and medium
CN208171165U (en) Displacement measurement system for sensor device
JPH01295168A (en) Analog meter driving circuit
JP2587762Y2 (en) Wheel speed measurement device
CN1204771A (en) Electronic speed meter of vehicle with both digital/analog display
JP3198503B2 (en) How to drive the instrument
StojKovic et al. Dual-mode digital revolution counter
JP3105117B2 (en) Measurement output and display device
CN114520609A (en) Speed measuring method and device of encoder and electronic equipment
JPH0540137A (en) Measuring circuit
JPH1164390A (en) Pointer indicator

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination