CN105241472B - Vehicle driving mileage statistical method and device based on OBD vehicle speed - Google Patents

Vehicle driving mileage statistical method and device based on OBD vehicle speed Download PDF

Info

Publication number
CN105241472B
CN105241472B CN201510788268.0A CN201510788268A CN105241472B CN 105241472 B CN105241472 B CN 105241472B CN 201510788268 A CN201510788268 A CN 201510788268A CN 105241472 B CN105241472 B CN 105241472B
Authority
CN
China
Prior art keywords
vehicle
mileage
obd
driving mileage
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.)
Active
Application number
CN201510788268.0A
Other languages
Chinese (zh)
Other versions
CN105241472A (en
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.)
Xiamen Yaxon Networks Co Ltd
Original Assignee
Xiamen Yaxon Networks 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 Xiamen Yaxon Networks Co Ltd filed Critical Xiamen Yaxon Networks Co Ltd
Priority to CN201510788268.0A priority Critical patent/CN105241472B/en
Publication of CN105241472A publication Critical patent/CN105241472A/en
Application granted granted Critical
Publication of CN105241472B publication Critical patent/CN105241472B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C22/00Measuring distance traversed on the ground by vehicles, persons, animals or other moving solid bodies, e.g. using odometers, using pedometers

Abstract

The invention relates to a vehicle driving mileage statistical method and a device based on OBD vehicle speed, wherein the method comprises the following steps: A. obtaining OBD speed information of the vehicle at a fixed time interval period delta T through an OBD bus; B. calculating the single driving mileage of the vehicle by using a preset calculation method; C. and accumulating the single driving mileage of the vehicle to obtain the total driving mileage of the vehicle. The invention solves the problem of inaccurate mileage statistics caused by omitting decimal part of the vehicle speed data acquired from the OBD bus, and greatly improves the accuracy of mileage statistics; by adopting the scheme, the mileage statistics is realized, the accuracy is high, and the implementation is simple and convenient.

Description

Vehicle driving mileage statistical method and device based on OBD vehicle speed
Technical Field
The invention relates to the field of application of an automobile-mounted automatic diagnosis system (OBD), in particular to an OBD-based automobile driving mileage information statistical method and device.
Background
With the rise of the car networking technology, more and more vehicles are provided with vehicle-mounted terminals with satellite positioning and mobile communication functions, and are accessed into a vehicle internal bus system through an OBD interface to obtain vehicle state data and count data such as vehicle mileage and oil consumption. The conventional method for counting the vehicle mileage by the vehicle-mounted terminal includes two methods, one is through GPS position information, and the other is through vehicle mileage pulse. Because the GPS positioning performance is easily influenced by the surrounding environment and has frequent non-positioning or drifting and other interference factors, the mileage statistics depending on the GPS positioning usually has larger error; and the vehicle mileage pulse signal is difficult to obtain and inconvenient to install for non-front-mounted terminal equipment.
Patent CN201410223465.3 discloses an OBD-based automobile trip information statistical method, which calculates a segment mileage by multiplying the average value of instantaneous speeds of the first and last two time points of the segment mileage by time, and then accumulates each segment mileage to obtain the total driving mileage of the vehicle. Although the method is feasible, when the time interval of the taken segmentation is larger, the error which may occur in the statistical result is larger; meanwhile, the instantaneous speed obtained from the OBD is in kilometer/hour unit, and only an integer part is reserved, so that the segmented mileage is calculated by directly adopting the value, the statistical result is inevitably small, the deviation also has an accumulative effect, and the final statistical result has a large error along with the accumulation of statistical time.
Disclosure of Invention
The invention aims to provide a vehicle mileage counting method based on OBD speed, which aims to solve the problem that the accuracy of the conventional vehicle mileage counting result is low.
The invention discloses a vehicle driving mileage statistical method based on OBD vehicle speed, which comprises the following steps:
A. obtaining OBD speed information of the vehicle at a fixed time interval period delta T through an OBD bus;
B. calculating the single driving mileage of the vehicle by using a preset calculation method;
C. and accumulating the single driving mileage of the vehicle to obtain the total driving mileage of the vehicle.
As a further development of the invention, the fixed time interval period Δ T is one second.
As a further improvement of the present invention, the method for calculating the single-trip mileage is implemented by accumulating the segmented mileage in each data acquisition cycle, and comprises the following steps:
step B1, according to the current time point T in step AiOBD speed V of a vehicle that obtainsiCalculating the actual equivalent vehicle speed V at the current time point Tii', then Vi'=Vi+0.5
Wherein, ViIs the current point in time TiThe vehicle speed acquired by the OBD bus is an integer;
step B2, calculating the time point Ti-1To the current time point TiCurrent segmented mileage S within the time interval period Δ T ofi,Si=Vi'×ΔT;
Step B3, segmenting all the mileage S1~SnAnd accumulating and summing to obtain the single-time driving mileage S of the vehicle, wherein the calculation formula is as follows:
Figure BDA0000848851690000021
wherein n is a positive integer greater than or equal to 1, and n represents the total number of time interval periods Δ T within the total time of a single travel of the vehicle.
As a further improvement of the invention, the method also comprises the following step D: and C, reporting the total driving mileage of the vehicle obtained in the step C to a central platform through wireless communication, and analyzing and displaying the total driving mileage by the central platform.
The invention relates to a device for counting the vehicle mileage, which is connected with a vehicle OBD interface and is used for obtaining the vehicle mileage based on the counting method.
The method has the advantages that the fixed time interval period selected by statistics is short, the OBD vehicle speed is corrected, the problem of inaccurate mileage statistics caused by omission of a decimal part from vehicle speed data acquired from a bus is solved, and the accuracy of mileage statistics is greatly improved; by adopting the scheme, the mileage statistics is realized, the accuracy is high, and the implementation is simple and convenient.
Drawings
FIG. 1 is a flow chart of an OBD-based vehicle mileage information statistics method according to the present invention;
fig. 2 is a flow chart of single mileage calculation according to the method for counting mileage information of an OBD-based vehicle.
Detailed Description
To further illustrate the various embodiments, the invention provides the accompanying drawings. The accompanying drawings, which are incorporated in and constitute a part of this disclosure, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the embodiments. Those skilled in the art will appreciate still other possible embodiments and advantages of the present invention with reference to these figures. Elements in the figures are not drawn to scale and like reference numerals are generally used to indicate like elements.
The invention will now be further described with reference to the accompanying drawings and detailed description.
Referring to fig. 1-2, the present invention provides a vehicle mileage statistics method based on OBD vehicle speed, the method comprising the steps of:
step A, obtaining OBD speed information of a vehicle at a fixed time interval period delta T through an OBD bus;
the shorter the fixed time interval period Δ T, the more accurate the statistical result of the mileage of the automobile. In the embodiment, the fixed time interval period Δ T is set to one second, so that the accuracy of the driving mileage statistical result is ensured.
The data obtained from the OBD bus is a time point TiAnd corresponding time point TiVehicle speed ViIn which V isiIs an integer in units of kilometers per hour. At the moment of starting the vehicle, the current time obtained from the OBD bus is set as T0Corresponding to the instant vehicle speed V0(ii) a At the moment of flameout of the automobile, the time obtained from the OBD bus is set as TnCorresponding to the instant vehicle speed Vn
B, calculating the single driving mileage of the vehicle by using a preset calculation method;
and C, accumulating the single driving mileage of the vehicle to obtain the total driving mileage of the vehicle.
This embodiment further includes step D: and C, reporting the total driving mileage of the vehicle obtained in the step C to a central platform through wireless communication, and analyzing and displaying the total driving mileage by the central platform.
The method for calculating the single-time driving mileage is realized by accumulating the segmented mileage in each data acquisition period, and comprises the following steps of:
step B1, according to the current time point T in step AiOBD speed V of a vehicle that obtainsiCalculating the current time point TiActual equivalent vehicle speed Vi'。
Wherein, ViIs the current point in time TiThe OBD speed of a vehicle is collected from the OBD bus, the numerical value is an integer, and the OBD system automatically removes decimal points, so the numerical value is smaller than the time point TiActual vehicle speed Vi". Speed V if OBD is used directlyiThe calculation results of the driving mileage are smaller, so that the calculation results need to be corrected; to minimize the correction error, the embodiment is selected at ViCorrecting in kilometer/hour unit, and setting the actual equivalent vehicle speed as Vi'。
Factor value of Vi≤Vi”<Vi+1, let Δ Vi=Vi”-Vi,ΔViThe distribution is random, and the practical test shows that the distribution is delta ViIs approximately normal distribution of 0-1, so Δ ViIs 0.5, so can be approximated as Vi”=Vi+0.5, thereforeActual equivalent vehicle speed Vi'=Vi+0.5, wherein Vi、Vi' and ViThe units of "are kilometers per hour.
Step B2, calculating the time point Ti-1To the current time point TiCurrent segmented mileage S within the time interval period Δ T ofi
In this embodiment, Δ T is one second, and the time point T is set for simplification of calculationiActual equivalent vehicle speed ViThe unit is converted from kilometers per hour to meters per second, so that the last time point T can be obtainedi-1To the current time point TiCurrent segmented mileage S within the time interval period △ TiThe calculation formula is as follows:
Si=1×Vi'×1000÷3600=Vi'÷3.6
wherein S isiThe unit of (a) is meter;
step B3, segmenting all the mileage S1~SnAnd accumulating and summing to obtain the single-time driving mileage S of the vehicle, wherein the calculation formula is as follows:
Figure BDA0000848851690000051
wherein S is meter, n is a positive integer greater than or equal to 1, i is a positive integer greater than or equal to 1, and n is greater than i.
Of course, in the present invention, the conversion of the units may be performed in step B3, and the statistical result of the mileage is not affected.
The invention also provides a device for counting the vehicle driving mileage, which is connected with an automobile OBD interface and adopts the automobile travel counting method based on the OBD.
The invention provides an OBD-based automobile driving mileage information statistical method and device, which are suitable for all vehicles meeting OBD standards. The method has the advantages that the fixed time interval period selected by statistics is short, the OBD vehicle speed is corrected, the problem of inaccurate mileage statistics caused by omission of a decimal part from vehicle speed data acquired from a bus is solved, and the accuracy of mileage statistics is greatly improved; by adopting the scheme, the mileage statistics is realized, the accuracy is high, and the implementation is simple and convenient.
While the invention has been particularly shown and described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (4)

1. A vehicle mileage statistical method based on OBD vehicle speed is characterized by comprising the following steps:
step A, obtaining OBD speed information of a vehicle through an OBD bus in a fixed time interval period delta T, wherein the time interval period delta T is one second;
and step B, calculating the single driving mileage of the vehicle by using a preset calculation method, wherein the method comprises the following steps:
step B1, according to the current time point T in step AiOBD speed V of a vehicle that obtainsiCalculating the current time point TiActual equivalent vehicle speed Vi', then Vi'=Vi+0.5
Wherein, ViIs the current point in time TiThe vehicle speed acquired by the OBD bus is an integer;
step B2, calculating the time point Ti-1To the current time point TiCurrent segmented mileage S within the time interval period Δ T ofi,Si=Vi'×ΔT;
Step B3, segmenting all the mileage S1~SnAnd accumulating and summing to obtain the single-time driving mileage S of the vehicle, wherein the calculation formula is as follows:
Figure FDA0002557749990000011
wherein n is a positive integer greater than or equal to 1, and n represents the total number of time interval periods delta T in the total time of single driving of the vehicle;
and C, accumulating the single driving mileage of the vehicle to obtain the total driving mileage of the vehicle.
2. The OBD vehicle speed-based vehicle mileage statistic method according to claim 1, wherein said step B comprises a conversion process of units, and the conversion process converts the current segmented mileage S in step B2iConverted to meters or converted to meters for the single trip distance S at step B3.
3. The OBD vehicle speed-based vehicle mileage statistic method according to claim 1, further comprising the step D of: and C, reporting the total driving mileage of the vehicle obtained in the step C to a central platform through wireless communication, and analyzing and displaying the total driving mileage by the central platform.
4. The utility model provides a device of statistics vehicle mileage information inserts vehicle OBD interface which characterized in that: the device is used for obtaining the vehicle mileage information by the statistical method of any one of claims 1 to 3.
CN201510788268.0A 2015-11-17 2015-11-17 Vehicle driving mileage statistical method and device based on OBD vehicle speed Active CN105241472B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510788268.0A CN105241472B (en) 2015-11-17 2015-11-17 Vehicle driving mileage statistical method and device based on OBD vehicle speed

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510788268.0A CN105241472B (en) 2015-11-17 2015-11-17 Vehicle driving mileage statistical method and device based on OBD vehicle speed

Publications (2)

Publication Number Publication Date
CN105241472A CN105241472A (en) 2016-01-13
CN105241472B true CN105241472B (en) 2020-09-22

Family

ID=55039201

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510788268.0A Active CN105241472B (en) 2015-11-17 2015-11-17 Vehicle driving mileage statistical method and device based on OBD vehicle speed

Country Status (1)

Country Link
CN (1) CN105241472B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105959409B (en) * 2016-06-28 2020-08-14 驾道科技有限公司 Vehicle mileage capturing and transmitting device and method
CN106323329B (en) * 2016-08-10 2019-04-05 北京市市政工程设计研究总院有限公司 Mileage acquisition methods and device based on vehicle diagnosing system
CN106767896A (en) * 2016-11-08 2017-05-31 北京雄信息科技有限公司 The method and system of vehicle mileage adjustment
CN108108586B (en) * 2017-12-18 2020-09-11 广州亚美信息科技有限公司 Method for calculating automobile mileage of Internet of vehicles terminal/GPS (Global positioning System) locator
CN111833616B (en) * 2020-07-10 2021-11-16 北京交通大学 Data quality control method and device for overload recognition of internet-connected truck
CN112858727B (en) * 2021-01-23 2023-06-30 深圳泰瑞谷科技有限公司 OBD and GPS combined vehicle speed calibration method, system and computer storage medium
CN112667433B (en) * 2021-01-27 2022-06-17 安徽天健环保车辆部件有限公司 Data calibration deviation correction method for mileage of automobile instrument
CN115439955B (en) * 2022-08-30 2023-10-20 高新兴物联科技股份有限公司 Vehicle mileage unit determination method, device, equipment and readable storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101470012B (en) * 2007-12-29 2011-03-30 厦门雅迅网络股份有限公司 Method for real-time vehicle driving mileage statistics based on wireless network and GPS position information
CN102980589A (en) * 2012-11-27 2013-03-20 厦门雅迅网络股份有限公司 Method and device for automatically computing vehicle pulse factor via GPS (global positioning system) speed
US20150066343A1 (en) * 2013-08-29 2015-03-05 Echo Automotive, Inc. Method and system for improved fuel mileage measurement
CN103471601B (en) * 2013-09-22 2015-10-28 泰斗微电子科技有限公司 A kind of onboard combined navigation method and navigational system
CN104035432B (en) * 2014-05-23 2017-05-24 深圳市元征科技股份有限公司 OBD (On Board Diagnostic) based vehicle travel information statistical method

Also Published As

Publication number Publication date
CN105241472A (en) 2016-01-13

Similar Documents

Publication Publication Date Title
CN105241472B (en) Vehicle driving mileage statistical method and device based on OBD vehicle speed
CN107180288B (en) Driving behavior energy consumption measuring and calculating method and device, storage medium and electronic equipment
CN109558988B (en) Electric vehicle energy consumption prediction method and system based on big data fusion
CN103794061B (en) The method that road merges travel speed is calculated based on multiple location data
CN109655055B (en) Positioning method and device of rail inspection robot
CN109782316B (en) Method for reducing Beidou positioning terminal positioning drift when vehicle stops
CN109523819B (en) Passenger IC card data and station matching method based on bus arrival and departure
CN105910665B (en) Oil consumption measuring method and device based on onboard diagnostic system data
WO2020041929A1 (en) Vehicle mileage calculation method, system and terminal device
CN104035432B (en) OBD (On Board Diagnostic) based vehicle travel information statistical method
CN106683227B (en) Vehicle travel partitioning method and device
CN113108808B (en) Vehicle odometer online verification system and method
CN104569501A (en) Beidou system-based vehicle speed ratio calibration system and method
CN103413325A (en) Vehicle speed identification method based on vehicle body feature point positioning
CN115331430B (en) Intelligent network-connected vehicle road spectrum acquisition and analysis method and system
CN104361650B (en) A kind of automobile travel recorder impulse ratio automatic calibrating method
CN113420197B (en) Photovoltaic module cleaning detection method and device, terminal equipment and storage medium
Ekler et al. Social driving in connected car environment
CN111775710B (en) New energy automobile driving mileage calculation method
CN116872791B (en) Estimation method of SOH of power battery
Shaw et al. Instantaneous fuel consumption estimation using smartphones
CN112277651A (en) Electric vehicle mileage verification method and related equipment
CN103994776B (en) Method and device for determining vehicle pulse coefficient based on GNSS satellite positioning data
CN115683154A (en) Method, device and equipment for calculating vehicle mileage
CN112858725B (en) Vehicle speed consistency detection method, terminal equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant