Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Vehicle mileage statistics method based on pulse counting

A technology of pulse counting and mileage statistics, which is applied in the redundant operation of data error detection, calculation, and electrical digital data processing, etc. It can solve the problems of reducing real-time performance, increasing mileage statistics error, and short erasing and writing times. , to achieve the effect of small real-time impact, high precision, high precision and reliability

Pending Publication Date: 2022-03-01
WUHAN SOUTH SAGITTARIUS INTEGRATION CO LTD
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This method of mileage storage has a disadvantage. Most MCUs are affected by software quality and external factors. It is inevitable that they will encounter abnormal operation or restart due to watchdog timeout. If the NVM is being written before or is being written, the mileage data in the RAM cache of the MCU will no longer exist, which makes the accumulated mileage that has not been written into the NVM memory in time lost, resulting in an increase in the mileage statistics error
[0004] 2. Adding an external dedicated high-speed memory dedicated to storing mileage will increase the complexity of the hardware circuit and directly generate additional hardware costs
[0005] 3. Especially, for flash type NVM memory, before writing the mileage data to the flash, firstly erase the mileage address of the flash storage (usually erase by page), and then write the new mileage. In the event of a power outage after the flash is removed, the mileage will be permanently lost in this situation
[0006] 4. In particular, for flash-type NVM memory, the number of erasing and writing is shorter, and the design needs to consider the additional storage overhead and software development overhead caused by the equalized wear and tear of the flash memory.
The time to erase the flash plus the time to write to the flash is between 5ms and 10ms. Since the global interrupt is turned off during the operation of the flash, if a pulse edge signal arrives at this time, for the pulse count based on the capture interrupt function, it will not be generated. Input capture is interrupted, which also creates problems with increased mileage errors
6. When operating flash, the real-time performance of the MCU is reduced because the global interrupt is turned off.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Vehicle mileage statistics method based on pulse counting

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0043] This embodiment discloses a method for vehicle mileage statistics based on pulse counting, such as figure 1 ,include:

[0044] S100. Obtain the output signal of the vehicle pulse sensor, and convert the vehicle pulse sensor signal into a digital signal recognizable by the MCU through a hardware comparator circuit;

[0045]Specifically, the output signal of the vehicle pulse sensor is a square wave signal with a peak of +5V to +12V and a valley of 0V. The digital signal recognized by the MCU is a digital square wave signal with a peak value of 3.3V and a valley value of 0.

[0046] S200. Using the input capture function of the MCU to obtain the rising edge event of the vehicle pulse signal, the MCU first reads the pulse count value of the backup domain register, and then increments the pulse count value of the backup domain register by 1.

[0047] Specifically, the MCU of this embodiment adopts the MIMXRT1051CVBL microcontroller. In S200 of this embodiment, the input ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

A vehicle mileage statistics method based on pulse counting comprises the following steps: acquiring an output signal of a vehicle pulse sensor, and converting the signal of the vehicle pulse sensor into a digital signal which can be identified by an MCU (Microprogrammed Control Unit) through a hardware comparator circuit; the method comprises the following steps: acquiring a rising edge event of a vehicle pulse signal by adopting an input capture function of an MCU (Microprogrammed Control Unit), firstly reading a pulse count value of a backup domain register by the MCU, and then automatically adding 1 to the pulse count value of the backup domain register; and calculating a check value of the pulse count value, and writing the pulse count value and the check value back to the mileage backup domain register. According to the invention, the vehicle driving mileage counting can be updated and stored in real time, an additional memory is not needed, and the mileage counting is not lost when the equipment is restarted abnormally. And the vehicle driving mileage counting precision is high and reliable.

Description

technical field [0001] The invention relates to the field, in particular to a method and system for vehicle mileage statistics based on pulse counting. Background technique [0002] The national standard "GB / T19056-2012" requires that the vehicle driving recorder must record and store the vehicle mileage, and requires that the recording error within a certain mileage range is less than 0.1KM. Based on factors such as cost, the common practice is to allocate a RAM area inside the MCU for real-time recording of the mileage accumulation change. When the fixed distance (0.1KM) or timing (1S) conditions are met, the changed mileage value will be accumulated The total mileage is stored in NVM (Non-VolatileMemory, non-volatile memory) such as the internal flash of the MCU or external EEPROM. Whether internal flash or external EEPROM memory is used, frequent erasing and writing will have a great impact on the life of the memory, and even reach the limit value to cause damage. The l...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/10G06F11/14G01C22/00
CPCG06F11/1004G06F11/1448G01C22/00
Inventor 赵小玉姜晓博钱程宋鹏飞唐晓伦欧阳元准
Owner WUHAN SOUTH SAGITTARIUS INTEGRATION CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products