Vehicle driving distance determination method, device, computer equipment and storage medium

Through the combination of the on-board automatic diagnosis system and GPS positioning information, the problem of low reliability of vehicle start-stop mileage statistics in the existing technology is solved, more accurate mileage distance calculation is achieved, and data deviation is reduced.

CN115164932BActive Publication Date: 2024-10-18CHINA PING AN PROPERTY INSURANCE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210952530.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-09
Publication Date
2024-10-18
Estimated Expiration
2042-08-09

AI Technical Summary

Technical Problem

The existing vehicle start-stop mileage statistics method has the problem of low reliability, especially when the vehicle has adjusted the odometer and the OBD collection frequency is not high, resulting in deviation in the calculation results.

Method used

The on-board automatic diagnostic system is used to collect the dashboard mileage data at the start-up time point, and update the data at preset time intervals while the vehicle is driving. Combined with the GPS positioning information, it determines the stall time point to obtain the mileage distance of the vehicle this time to ensure data high reliability.

Benefits of technology

It improves the reliability of start-stop data, reduces the mileage data deviation caused by collection frequency, and provides a more accurate vehicle driving distance calculation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115164932B_ABST
    Figure CN115164932B_ABST
Patent Text Reader

Abstract

The embodiment of the present application belongs to the field of data analysis and is applied to the field of vehicle start-stop mileage calculation. It relates to a method, device, computer equipment and storage medium for determining vehicle driving distance, including obtaining the vehicle starting mileage in different ways; during vehicle driving, continuously collecting mileage data in the vehicle dashboard at a preset first time interval, and updating to obtain updated mileage data; continuously obtaining the GPS positioning information of the current vehicle through a GPS positioning tool at a preset second time interval; when the vehicle is turned off, based on the starting mileage, updated mileage data, GPS positioning information and mileage data accumulated by the on-board automatic diagnostic system, the mileage distance of the vehicle is obtained. When determining the mileage distance of the vehicle's current travel, multiple data are selected for use, which greatly improves the reliability of the start-stop data and can also reduce the deviation of the start-stop distance caused by the collection frequency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data analysis technology, and in particular to a method, device, computer equipment and storage medium for determining a vehicle travel distance. Background Art

[0002] In vehicle management scenarios, it is usually necessary to collect statistics on vehicle travel data, among which start-stop time and start-stop mileage are relatively critical data.

[0003] At present, the statistical method of start-stop mileage is often relatively simple, taking a photo of the dashboard mileage when starting, and taking a photo of the dashboard mileage again after stopping, and calculating the difference to get the mileage between start and stop. For vehicles that have already adjusted the odometer, this method has deviations in the displayed mileage itself, and the calculated result is also biased, resulting in reduced reliability; on the other hand, when reading the dashboard mileage through the OBD device, since the OBD collects vehicle data and uploads it at a certain time interval, it may happen that the start-stop time point is not the data collection time point, resulting in deviations in mileage data due to the collection frequency. Summary of the invention

[0004] The purpose of the embodiments of the present application is to propose a method for determining a vehicle driving distance and related equipment to improve the reliability of start-stop data, while also reducing the deviation of the start-stop distance caused by the collection frequency.

[0005] In order to solve the above technical problems, the embodiment of the present application provides a method for determining a vehicle travel distance, which adopts the following technical solution:

[0006] A method for determining a vehicle travel distance comprises the following steps:

[0007] The collection tool based on the on-board automatic diagnosis system collects the mileage data of the vehicle dashboard at the start time as the first start mileage of the vehicle;

[0008] Acquiring the accumulated mileage data of the vehicle at the start time point based on the mileage accumulation tool of the onboard automatic diagnostic system as the second start mileage of the vehicle;

[0009] During the driving of the vehicle, at a preset first time interval, the mileage data in the vehicle dashboard is continuously collected and updated by the collection tool of the on-board automatic diagnostic system;

[0010] During the driving of the vehicle, at a preset second time interval, the GPS positioning tool of the on-board automatic diagnostic system continuously obtains the GPS positioning information of the current vehicle;

[0011] When the vehicle is turned off, the time information of the time when the vehicle is turned off is collected, and it is determined whether the time point of the last mileage accumulation is consistent with the time information when the vehicle is turned off;

[0012] According to the judgment result, the mileage distance of the vehicle this time is obtained based on the first start-up mileage of the vehicle, the second start-up mileage of the vehicle, the latest updated mileage data in the vehicle dashboard collected by the collection tool, the GPS positioning information and the mileage data accumulated by the on-board automatic diagnostic system.

[0013] Furthermore, the step of collecting the mileage data of the vehicle dashboard at the start-up time point by the collection tool based on the on-board automatic diagnostic system as the first start-up mileage of the vehicle specifically includes:

[0014] Determine whether the on-board automatic diagnostic system can collect mileage data of the vehicle dashboard at the start time point;

[0015] If yes, the mileage data is used as the first startup mileage;

[0016] If not, the mileage data of the vehicle dashboard cached when the vehicle was last turned off is obtained as the first startup mileage.

[0017] Furthermore, the step of obtaining the accumulated mileage data of the vehicle at the start time point as the second start mileage of the vehicle by the mileage accumulation tool based on the on-board automatic diagnostic system specifically includes:

[0018] Determining whether the latest accumulated mileage data of the vehicle is obtained at the start time point;

[0019] If yes, the latest mileage data is used as the second starting mileage;

[0020] If not, the vehicle's cumulative mileage data cached in the on-board automatic diagnostic system when the vehicle was last turned off is obtained as the second starting mileage.

[0021] Furthermore, during the driving of the vehicle, at a preset first time interval, the step of continuously collecting and updating the mileage data in the vehicle dashboard through the collection tool of the on-board automatic diagnostic system specifically includes:

[0022] The current collection time is obtained, and the current collection time and the collected mileage data in the vehicle dashboard are cached in the form of a key-value pair.

[0023] Furthermore, during the driving process of the vehicle, after the step of continuously acquiring GPS positioning information of the current vehicle through the GPS positioning tool of the on-board automatic diagnostic system at a preset second time interval, the method further includes:

[0024] Pre-build the GPS location information cache form;

[0025] Based on the order of acquisition time, the GPS positioning information of the current vehicle is acquired in sequence;

[0026] The acquired GPS positioning information is entered into the GPS positioning information cache form in the form of a key-value pair [T: (x, y)], wherein T represents the current time each time the GPS positioning information of the current vehicle is acquired, x represents the GPS longitude value, and y represents the GPS latitude value.

[0027] Further, the step of obtaining the mileage distance of the vehicle this time based on the judgment result, the first start mileage of the vehicle, the second start mileage of the vehicle, the latest updated mileage data in the vehicle dashboard collected by the collection tool, the GPS positioning information and the mileage data accumulated by the on-board automatic diagnostic system, specifically includes:

[0028] If the judgment result is yes, then obtaining the difference between the mileage data accumulated by the on-board automatic diagnostic system and the second starting mileage through difference calculation as the mileage distance of the vehicle this time;

[0029] If the judgment result is no, then judging whether the mileage data of the vehicle dashboard is collected at the time of the engine shutdown;

[0030] If collected, the difference between the mileage data of the vehicle dashboard collected at the time of the engine shutdown and the first start-up mileage of the vehicle is obtained through difference calculation as the mileage distance of the vehicle this time;

[0031] If not collected, based on the GPS positioning information cache table, obtain all GPS positioning information recorded by the vehicle during this driving process, based on the preset algorithm formula: Get the mileage of the vehicle this time, where x i+1 Indicates the longitude value corresponding to the current element in the GPS positioning information cache form, y i+1 Indicates the latitude value corresponding to the current element in the GPS positioning information cache form, x i Indicates the longitude value corresponding to the previous element of the current element in the GPS positioning information cache form, y i Indicates the latitude value corresponding to the previous element of the current element in the GPS positioning information cache form.

[0032] Further, the preset algorithm formula is: The step of obtaining the mileage distance traveled by the vehicle this time specifically includes:

[0033] Based on the preset algorithm formula: Get the distance between two adjacent GPS positioning information;

[0034] Determine whether the distance between the two adjacent GPS positioning information exceeds a preset distance threshold;

[0035] If yes, then delete the distance between the two adjacent GPS positioning information;

[0036] If not, the distances between the two adjacent GPS positioning information are accumulated, and the final accumulated result is the mileage distance of the vehicle this time.

[0037] In order to solve the above technical problems, the embodiment of the present application further provides a vehicle travel distance determination device, which adopts the following technical solution:

[0038] A device for determining a vehicle travel distance, comprising:

[0039] A collection module, used to collect the mileage data of the vehicle dashboard at the start time point based on the collection tool of the vehicle automatic diagnosis system as the first start mileage of the vehicle;

[0040] an accumulation module, configured to obtain the accumulated mileage data of the vehicle at the start time point based on the mileage accumulation tool of the on-board automatic diagnostic system as the second start mileage of the vehicle;

[0041] The collection module is also used to continuously collect and update the mileage data in the vehicle dashboard through the collection tool of the on-board automatic diagnostic system at a preset first time interval during the vehicle driving process;

[0042] A positioning acquisition module is used to continuously acquire the GPS positioning information of the current vehicle through the GPS positioning tool of the on-board automatic diagnostic system at a preset second time interval during the driving of the vehicle;

[0043] A judgment module is used to collect the time information when the vehicle is turned off, and to judge whether the time point of the last mileage accumulation is consistent with the time information when the vehicle is turned off;

[0044] The algorithm module is used to obtain the mileage distance of the vehicle this time according to the judgment result, based on the first starting mileage of the vehicle, the second starting mileage of the vehicle, the latest updated mileage data in the vehicle dashboard collected by the collection tool, the GPS positioning information and the mileage data accumulated by the on-board automatic diagnostic system.

[0045] In order to solve the above technical problems, the embodiment of the present application further provides a computer device, which adopts the following technical solution:

[0046] A computer device includes a memory and a processor, wherein the memory stores computer-readable instructions, and the processor implements the steps of the above-mentioned method for determining a vehicle travel distance when executing the computer-readable instructions.

[0047] In order to solve the above technical problems, the embodiment of the present application further provides a computer-readable storage medium, which adopts the following technical solution:

[0048] A computer-readable storage medium stores computer-readable instructions, which, when executed by a processor, implement the steps of the vehicle travel distance determination method as described above.

[0049] Compared with the prior art, the embodiments of the present application have the following beneficial effects:

[0050] The method for determining the vehicle driving distance described in the embodiment of the present application obtains the vehicle startup mileage by adopting different methods; during the vehicle driving process, at a preset first time interval, the mileage data in the vehicle dashboard is continuously collected and updated to obtain the updated mileage data; at a preset second time interval, the GPS positioning information of the current vehicle is continuously obtained through the GPS positioning tool; when the vehicle is turned off, the mileage distance of the vehicle this time is obtained based on the startup mileage, the updated mileage data, the GPS positioning information and the mileage data accumulated by the on-board automatic diagnostic system. When determining the mileage distance of the vehicle this time, multiple data are selected and used, which greatly improves the reliability of the start-stop data and can also reduce the deviation of the start-stop distance caused by the collection frequency. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] In order to more clearly illustrate the scheme in the present application, a brief introduction is given below to the drawings required for use in the description of the embodiments of the present application. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0052] Figure 1 is an exemplary system architecture diagram to which the present application may be applied;

[0053] Figure 2 A flow chart of an embodiment of a method for determining a vehicle travel distance according to the present application;

[0054] Figure 3 yes Figure 2 A flowchart of a specific implementation of step 201 is shown;

[0055] Figure 4 yes Figure 2 A flowchart of a specific implementation of step 202 is shown;

[0056] Figure 5 yes Figure 2 A flowchart of a specific implementation of step 205 and step 206 is shown;

[0057] Figure 6 yes Figure 5 A flowchart of a specific implementation method of obtaining the mileage distance of the vehicle this time in step 506 is shown;

[0058] Figure 7 A schematic structural diagram of an embodiment of a vehicle travel distance determination device according to the present application;

[0059] Figure 8 yes Figure 7 A schematic diagram of the structure of an embodiment of 705 is shown;

[0060] Fig. 9 A schematic structural diagram of an embodiment of a computer device according to the present application. DETAILED DESCRIPTION

[0061] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of the present application; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit the present application; the terms "including" and "having" and any variations thereof in the specification and claims of the present application and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of the present application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.

[0062] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0063] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.

[0064] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0065] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc.

[0066] Terminal devices 101, 102, 103 can be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III), MP4 (Moving Picture Experts Group Audio Layer IV) players, laptop computers, desktop computers, etc.

[0067] The server 105 may be a server that provides various services, such as a background server that provides support for web pages displayed on the terminal devices 101 , 102 , and 103 .

[0068] It should be noted that the vehicle travel distance determination method provided in the embodiment of the present application is generally executed by a server / terminal device, and accordingly, the vehicle travel distance determination device is generally arranged in the server / terminal device.

[0069] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0070] Continue to refer Figure 2 , shows a flow chart of an embodiment of a method for determining a vehicle travel distance according to the present application. The method for determining a vehicle travel distance comprises the following steps:

[0071] Step 201 : Using a collection tool of the vehicle automatic diagnosis system to collect mileage data of the vehicle dashboard at the start time point, the data is used as the first start mileage of the vehicle.

[0072] In this embodiment, the collection tool based on the on-board automatic diagnostic system collects the mileage data of the vehicle dashboard at the startup time point as the step of the first startup mileage of the vehicle, specifically including: determining whether the on-board automatic diagnostic system can collect the mileage data of the vehicle dashboard at the startup time point; if so, using the mileage data as the first startup mileage; if not, obtaining the mileage data of the vehicle dashboard cached when the vehicle was last turned off as the first startup mileage.

[0073] The mileage on the dashboard is read through the on-board diagnostic system (OBD). However, since the OBD collects vehicle data and uploads it at certain time intervals, the start and stop time points may not be the data collection time points, resulting in inaccurate mileage data. This embodiment fully considers this feature, determines whether the mileage data on the vehicle dashboard can be collected at the start time point, and performs different processing respectively to ensure the high reliability of the collected vehicle starting mileage data.

[0074] Continue to refer Figure 3 , Figure 3 yes Figure 2 The flowchart of a specific implementation of step 201 shown includes the steps of:

[0075] Step 301, when the vehicle starts;

[0076] Step 302, determining whether the onboard automatic diagnostic system can collect mileage data of the vehicle dashboard at the start time point;

[0077] Step 303: If yes, use the mileage data as the first startup mileage;

[0078] Step 304: If not, the mileage data of the vehicle dashboard cached when the vehicle was last turned off is obtained as the first startup mileage.

[0079] Step 202 : acquiring the accumulated mileage data of the vehicle at the start time point based on the mileage accumulation tool of the onboard automatic diagnostic system as the second start mileage of the vehicle.

[0080] In this embodiment, the mileage accumulation tool based on the on-board automatic diagnostic system obtains the accumulated mileage data of the vehicle at the starting time point as the step of the second starting mileage of the vehicle, specifically including: determining whether the latest accumulated mileage data of the vehicle is obtained at the starting time point of the vehicle; if so, taking the latest mileage data as the second starting mileage; if not, obtaining the accumulated mileage data of the vehicle cached in the on-board automatic diagnostic system when the vehicle was last turned off as the second starting mileage.

[0081] The vehicle's starting mileage data is obtained through the mileage accumulation tool of the on-board automatic diagnostic system. Since the mileage of this trip is temporarily 0 when the vehicle is started, the mileage accumulation tool can directly add 0 to the mileage data accumulated before the last shutdown. This embodiment fully considers this feature and determines whether the latest accumulated mileage data of the vehicle is obtained at the vehicle startup time point, that is, determines whether the latest mileage data is obtained, and performs different processing respectively to ensure the high reliability of the collected vehicle's starting mileage data.

[0082] Continue to refer Figure 4 , Figure 4 yes Figure 2 The flowchart of a specific implementation of step 202 shown includes the steps of:

[0083] Step 401, when the vehicle is started;

[0084] Step 402, determining whether the latest accumulated mileage data of the vehicle is obtained at the start time point;

[0085] Step 403: If yes, the latest driving mileage data is used as the second starting mileage;

[0086] Step 404: If not, then the vehicle cumulative mileage data cached in the on-board automatic diagnostic system when the vehicle was last turned off is obtained as the second starting mileage.

[0087] Step 203 : During the driving of the vehicle, at a preset first time interval, the mileage data in the vehicle dashboard is continuously collected and updated by the collection tool of the on-board automatic diagnosis system.

[0088] In this embodiment, during the driving of the vehicle, at a preset first time interval, the step of continuously collecting and updating the mileage data in the vehicle dashboard through the collection tool of the on-board automatic diagnostic system specifically includes: obtaining the current collection time, and caching the current collection time and the collected mileage data in the vehicle dashboard in the form of a key-value pair. Specifically, it can be cached in the form of a [key:value] key-value pair, wherein the key represents the current collection time at each collection, and the value represents the mileage data in the vehicle dashboard obtained at each collection.

[0089] During vehicle driving, the current collection time and the mileage data collected in the vehicle dashboard are updated through key-value pairs, so that when the vehicle is turned off, the key-value pairs can be directly parsed. By parsing the current collection time, it is determined whether the mileage data in the vehicle dashboard was collected at the time of the shutdown, thereby ensuring the high reliability of the mileage data.

[0090] Step 204 : During the driving of the vehicle, the GPS positioning information of the current vehicle is continuously obtained through the GPS positioning tool of the on-board automatic diagnosis system at a preset second time interval.

[0091] In this embodiment, during the driving of the vehicle, after the step of continuously acquiring the GPS positioning information of the current vehicle through the GPS positioning tool of the on-board automatic diagnostic system at a preset second time interval, the method also includes: pre-building a GPS positioning information cache form; based on the order of acquisition time, sequentially acquiring the GPS positioning information of the current vehicle; entering the acquired GPS positioning information into the GPS positioning information cache form in the form of a [T: (x, y)] key-value pair, wherein T represents the current time each time the GPS positioning information of the current vehicle is acquired, x represents the GPS longitude value, and y represents the GPS latitude value.

[0092] It should be understood that the second time interval and the first time interval have no correlation and only represent two different time objects, which may be the same or different. The first time interval represents the time interval for the on-board automatic diagnostic system to collect mileage data in the vehicle dashboard, and the second time interval represents the time interval for the on-board automatic diagnostic system to obtain the GPS positioning information of the current vehicle.

[0093] During the driving process of the vehicle, the start-stop mileage of the vehicle is determined by means of GPS positioning information, so as to improve the calculation basis for the distance between the start and stop of the vehicle when OBD fails to collect or obtain reliable mileage data.

[0094] Step 205 , when the vehicle is turned off, the time information when the vehicle is turned off is collected, and it is determined whether the time point of the last mileage accumulation is consistent with the time information when the vehicle is turned off.

[0095] Step 206, according to the judgment result, based on the first start-up mileage of the vehicle, the second start-up mileage of the vehicle, the latest updated mileage data in the vehicle dashboard collected by the collection tool, the GPS positioning information and the mileage data accumulated by the on-board automatic diagnostic system, the mileage distance of the vehicle this time is obtained.

[0096] In this embodiment, the step of obtaining the mileage distance of the vehicle this time based on the first start-up mileage of the vehicle, the second start-up mileage of the vehicle, the latest updated mileage data in the vehicle dashboard collected by the collection tool, the GPS positioning information and the mileage data accumulated by the on-board automatic diagnostic system according to the judgment result specifically includes: if the judgment result is yes, then obtaining the difference between the mileage data accumulated by the on-board automatic diagnostic system and the second start-up mileage through difference calculation as the mileage distance of the vehicle this time; if the judgment result is no, then determining whether the mileage data of the vehicle dashboard is collected at the flameout time point; if collected, then obtaining the difference between the mileage data of the vehicle dashboard collected at the flameout time point and the first start-up mileage of the vehicle through difference calculation as the mileage distance of the vehicle this time; if not collected, obtaining all GPS positioning information recorded by the vehicle during this driving process based on the GPS positioning information cache form, based on the preset algorithm formula: Get the mileage of the vehicle this time, where x i+1 Indicates the longitude value corresponding to the current element in the GPS positioning information cache form, y i+1 Indicates the latitude value corresponding to the current element in the GPS positioning information cache form, x i Indicates the longitude value corresponding to the previous element of the current element in the GPS positioning information cache form, y i Indicates the latitude value corresponding to the previous element of the current element in the GPS positioning information cache form.

[0097] By first obtaining the mileage data accumulated by OBD, it is determined whether the last accumulated time point is consistent with the vehicle shutdown time point. If they are consistent, the mileage distance of the vehicle this time is obtained; if they are inconsistent, the dashboard mileage data collected by OBD is obtained to determine whether the last collected time point is consistent with the vehicle shutdown time point. If they are consistent, the mileage distance of the vehicle this time is obtained; otherwise, the mileage distance of the vehicle this time is determined through GPS positioning information. The use of multiple data options can greatly improve the reliability of start-stop data and reduce the deviation of start-stop distance caused by collection frequency.

[0098] Continue to refer Figure 5 , Figure 5 yes Figure 2 The flowchart of a specific implementation of step 205 and step 206 shown includes the steps:

[0099] Step 501, when the vehicle is turned off, collect the time information when the vehicle is turned off;

[0100] Step 502, determining whether the time point of the last mileage accumulation is consistent with the time information of the engine shutdown;

[0101] Step 503, if the judgment result is yes, then the difference between the mileage data accumulated by the onboard automatic diagnostic system and the second starting mileage is obtained through difference calculation as the mileage distance of the vehicle this time;

[0102] Step 504, if the judgment result is no, determine whether the mileage data of the vehicle dashboard is collected at the time of the engine shutdown;

[0103] Step 505, if collected, then through difference calculation, obtain the difference between the mileage data of the vehicle dashboard collected at the time of shutdown and the first start-up mileage of the vehicle as the mileage distance of the vehicle this time;

[0104] Step 506: If not collected, based on the GPS positioning information cache table, obtain all GPS positioning information recorded by the vehicle during this driving process, based on the preset algorithm formula: Get the mileage of the vehicle this time, where x i+1 Indicates the longitude value corresponding to the current element in the GPS positioning information cache form, y i+1 Indicates the latitude value corresponding to the current element in the GPS positioning information cache form, x i Indicates the longitude value corresponding to the previous element of the current element in the GPS positioning information cache form, y i Indicates the latitude value corresponding to the previous element of the current element in the GPS positioning information cache form.

[0105] In this embodiment, the preset algorithm formula is: The step of obtaining the mileage of the vehicle this time specifically includes: based on a preset algorithm formula: Obtain the distance between two adjacent GPS positioning information; based on a preset distance threshold, determine whether the distance between the two adjacent GPS positioning information exceeds the distance threshold; if so, delete the distance between the two adjacent GPS positioning information; if not, accumulate the distance between the two adjacent GPS positioning information, and the final accumulated result is the mileage distance of the vehicle this time.

[0106] By using the threshold comparison method to clean the data, the adjacent distances that may be erroneous are deleted, and the appropriate adjacent distances are retained for summation, so as to reduce the deviation of the start-stop data and ensure high reliability.

[0107] Continue to refer Figure 6 , Figure 6 yes Figure 5 The flowchart of a specific implementation method of obtaining the mileage distance of the vehicle in step 506 includes the following steps:

[0108] Step 601, based on the preset algorithm formula: Get the distance between two adjacent GPS positioning information;

[0109] Step 602, determining whether the distance between the two adjacent GPS positioning information exceeds a preset distance threshold;

[0110] Step 603: If yes, delete the distance between the two adjacent GPS positioning information;

[0111] Step 604: If not, then the distances of the two adjacent GPS positioning information are accumulated, and the final accumulated result is the mileage distance of the vehicle this time.

[0112] This application obtains the vehicle startup mileage by adopting different methods; during the vehicle driving process, at a preset first time interval, the mileage data in the vehicle dashboard is continuously collected and updated to obtain the updated mileage data; at a preset second time interval, the GPS positioning information of the current vehicle is continuously obtained through the GPS positioning tool; when the vehicle is turned off, the mileage distance of the vehicle this time is obtained based on the startup mileage, the updated mileage data, the GPS positioning information and the mileage data accumulated by the on-board automatic diagnostic system. When determining the mileage distance of the vehicle this time, multiple data are selected and used, which greatly improves the reliability of the start-stop data and can also reduce the deviation of the start-stop distance caused by the collection frequency.

[0113] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.

[0114] AI basic technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. AI software technologies mainly include computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning / deep learning.

[0115] In the embodiment of the present application, artificial intelligence can be used to control the OBD to collect and update mileage data, and then the control algorithm calculation and start-stop mileage acquisition can be used to ensure automated start-stop mileage acquisition.

[0116] Further references Figure 7 , as a response to the above Figure 2The present application provides an embodiment of a vehicle travel distance determination device, and the device embodiment is similar to Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.

[0117] like Figure 7 As shown, the vehicle travel distance determination device 700 described in this embodiment includes: a collection module 701, an accumulation module 702, a positioning acquisition module 703, a judgment module 704 and an algorithm module 705. Among them:

[0118] The collection module 701 is used to collect the mileage data of the vehicle dashboard at the start time point based on the collection tool of the vehicle automatic diagnosis system as the first start mileage of the vehicle;

[0119] An accumulation module 702 is used to obtain the accumulated mileage data of the vehicle at the start time point based on the mileage accumulation tool of the onboard automatic diagnostic system as the second start mileage of the vehicle;

[0120] The collection module 701 is also used to continuously collect and update the mileage data in the vehicle dashboard through the collection tool of the on-board automatic diagnosis system at a preset first time interval during the vehicle driving process;

[0121] The positioning acquisition module 703 is used to continuously acquire the GPS positioning information of the current vehicle through the GPS positioning tool of the vehicle-mounted automatic diagnosis system at a preset second time interval during the vehicle driving process;

[0122] The judgment module 704 is used to collect the time information when the vehicle is turned off, and judge whether the time point of the last mileage accumulation is consistent with the time information when the vehicle is turned off;

[0123] The algorithm module 705 is used to obtain the mileage distance of the vehicle this time according to the judgment result, based on the first start-up mileage of the vehicle, the second start-up mileage of the vehicle, the latest updated mileage data in the vehicle dashboard collected by the collection tool, the GPS positioning information and the mileage data accumulated by the on-board automatic diagnostic system.

[0124] This application obtains the vehicle startup mileage by adopting different methods; during the vehicle driving process, at a preset first time interval, the mileage data in the vehicle dashboard is continuously collected and updated to obtain the updated mileage data; at a preset second time interval, the GPS positioning information of the current vehicle is continuously obtained through the GPS positioning tool; when the vehicle is turned off, the mileage distance of the vehicle this time is obtained based on the startup mileage, the updated mileage data, the GPS positioning information and the mileage data accumulated by the on-board automatic diagnostic system. When determining the mileage distance of the vehicle this time, multiple data are selected and used, which greatly improves the reliability of the start-stop data and can also reduce the deviation of the start-stop distance caused by the collection frequency.

[0125] Continue to refer Figure 8 , Figure 8 yes Figure 7 The schematic diagram of the structure of a specific implementation of 705 is shown, the algorithm module 705 includes: a first operation submodule 7051, a judgment submodule 7052, a second operation submodule 7053 and a third operation submodule 7054.

[0126] The first operation submodule 7051 is used to obtain the difference between the mileage data accumulated by the on-board automatic diagnosis system and the second startup mileage through difference operation if it is determined that the time point of the last mileage accumulation is consistent with the time information of the engine shutdown, as the mileage distance of the vehicle this time;

[0127] The judgment submodule 7052 is used to judge whether the mileage data of the vehicle dashboard is collected at the time point of the engine shutdown if it is judged that the time point of the last mileage accumulation is inconsistent with the time information of the engine shutdown;

[0128] The second operation submodule 7053 is used to obtain the difference between the mileage data of the vehicle dashboard collected at the time of the engine shutdown and the first start-up mileage of the vehicle through difference operation if the mileage data is collected, as the mileage distance of the vehicle this time;

[0129] The third operator module 7054 is used to obtain all GPS positioning information recorded by the vehicle during this driving process based on the GPS positioning information cache form if it has not been collected, based on the preset algorithm formula: Get the mileage of the vehicle this time, where x i+1 Indicates the longitude value corresponding to the current element in the GPS positioning information cache form, y i+1 Indicates the latitude value corresponding to the current element in the GPS positioning information cache form, x i Indicates the longitude value corresponding to the previous element of the current element in the GPS positioning information cache form, y iIndicates the latitude value corresponding to the previous element of the current element in the GPS positioning information cache form.

[0130] The mileage distance of the vehicle this time is obtained through the first operation submodule, the judgment submodule, the second operation submodule and the third operation submodule, and a variety of data are selected for use, which greatly improves the reliability of the start-stop data and reduces the deviation of the start-stop distance caused by the collection frequency.

[0131] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through computer-readable instructions, and the computer-readable instructions can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the aforementioned storage medium can be a non-volatile storage medium such as a disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

[0132] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

[0133] To solve the above technical problems, the present application also provides a computer device. Fig. 9 , Fig. 9 This is a basic structural block diagram of the computer device in this embodiment.

[0134] The computer device 9 includes a memory 91, a processor 92, and a network interface 93 that are interconnected and communicated through a system bus. It should be noted that the figure only shows a computer device 9 with components 91-93, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable gate arrays (Field-Programmable Gate Array, FPGA), digital processors (Digital Signal Processor, DSP), embedded devices, etc.

[0135] The computer device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The computer device may interact with a user through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device.

[0136] The memory 91 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 91 can be an internal storage unit of the computer device 9, such as a hard disk or memory of the computer device 9. In other embodiments, the memory 91 can also be an external storage device of the computer device 9, such as a plug-in hard disk equipped on the computer device 9, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), etc. Of course, the memory 91 can also include both the internal storage unit of the computer device 9 and its external storage device. In this embodiment, the memory 91 is generally used to store the operating system and various application software installed on the computer device 9, such as computer-readable instructions of the vehicle travel distance determination method, etc. In addition, the memory 91 can also be used to temporarily store various types of data that have been output or are to be output.

[0137] The processor 92 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chip in some embodiments. The processor 92 is generally used to control the overall operation of the computer device 9. In this embodiment, the processor 92 is used to run computer-readable instructions or process data stored in the memory 91, such as computer-readable instructions for running the vehicle travel distance determination method.

[0138] The network interface 93 may include a wireless network interface or a wired network interface. The network interface 93 is generally used to establish a communication connection between the computer device 9 and other electronic devices.

[0139] The computer device proposed in this embodiment belongs to the technical field of vehicle start-stop mileage calculation. This application obtains the vehicle startup mileage by adopting different methods; during the driving of the vehicle, at a preset first time interval, the mileage data in the vehicle dashboard is continuously collected and updated to obtain the updated mileage data; at a preset second time interval, the GPS positioning information of the current vehicle is continuously obtained through the GPS positioning tool; when the vehicle is turned off, the mileage distance of the vehicle this time is obtained based on the startup mileage, the updated mileage data, the GPS positioning information and the mileage data accumulated by the on-board automatic diagnostic system. When determining the mileage distance of the vehicle this time, a variety of data are selected and used, which greatly improves the reliability of the start-stop data, and at the same time, it can also reduce the deviation of the start-stop distance caused by the collection frequency.

[0140] The present application also provides another embodiment, namely, providing a computer-readable storage medium, wherein the computer-readable storage medium stores computer-readable instructions, and the computer-readable instructions can be executed by a processor to enable the processor to perform the steps of the vehicle travel distance determination method as described above.

[0141] The computer-readable storage medium proposed in this embodiment belongs to the technical field of vehicle start-stop mileage calculation. This application obtains the vehicle startup mileage by adopting different methods; during the vehicle driving process, at a preset first time interval, the mileage data in the vehicle dashboard is continuously collected and updated to obtain the updated mileage data; at a preset second time interval, the GPS positioning information of the current vehicle is continuously obtained through the GPS positioning tool; when the vehicle is turned off, the mileage distance of the vehicle this time is obtained based on the startup mileage, the updated mileage data, the GPS positioning information and the mileage data accumulated by the on-board automatic diagnostic system. When determining the mileage distance of the vehicle this time, a variety of data are used for selection and use, which greatly improves the high reliability of the start-stop data, and at the same time, it can also reduce the deviation of the start-stop distance caused by the collection frequency.

[0142] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0143] Obviously, the embodiments described above are only some embodiments of the present application, rather than all embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application is described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific implementation methods, or to perform equivalent replacement of some of the technical features therein. Any equivalent structure made using the contents of the specification and drawings of this application, directly or indirectly used in other related technical fields, is similarly within the scope of patent protection of this application.

Claims

1. A method for determining a vehicle travel distance, characterized in that: The steps include: The collection tool based on the on-board automatic diagnosis system collects the mileage data of the vehicle dashboard at the start time as the first start mileage of the vehicle; Acquiring the accumulated mileage data of the vehicle at the start time point based on the mileage accumulation tool of the onboard automatic diagnostic system as the second start mileage of the vehicle; During the driving of the vehicle, at a preset first time interval, the mileage data in the vehicle dashboard is continuously collected and updated by the collection tool of the on-board automatic diagnostic system; During the driving of the vehicle, at a preset second time interval, the GPS positioning tool of the on-board automatic diagnostic system continuously obtains the GPS positioning information of the current vehicle; During the driving of the vehicle, after the step of continuously acquiring GPS positioning information of the current vehicle through the GPS positioning tool of the on-board automatic diagnostic system at a preset second time interval, the method further includes: Pre-build GPS location information cache form; Based on the order of acquisition time, the GPS positioning information of the current vehicle is acquired in sequence; The obtained GPS positioning information is used The GPS positioning information cache form is entered in the form of key-value pairs, where: Indicates the current time when the GPS positioning information of the current vehicle is obtained each time. Indicates the GPS longitude value, Indicates the GPS latitude value; When the vehicle is turned off, the time information of the time when the vehicle is turned off is collected, and it is determined whether the time point of the last mileage accumulation is consistent with the time information when the vehicle is turned off; According to the judgment result, based on the first start-up mileage of the vehicle, the second start-up mileage of the vehicle, the latest updated mileage data in the vehicle dashboard collected by the collection tool, the GPS positioning information and the mileage data accumulated by the on-board automatic diagnostic system, the mileage distance of the vehicle's current travel is obtained, wherein, according to the judgment result, based on the first start-up mileage of the vehicle, the second start-up mileage of the vehicle, the latest updated mileage data in the vehicle dashboard collected by the collection tool, the GPS positioning information and the mileage data accumulated by the on-board automatic diagnostic system, the step of obtaining the mileage distance of the vehicle's current travel specifically includes: If the judgment result is yes, then obtaining the difference between the mileage data accumulated by the on-board automatic diagnostic system and the second starting mileage through difference calculation as the mileage distance of the vehicle this time; If the judgment result is no, then judging whether the mileage data of the vehicle dashboard is collected at the time of the engine shutdown; If collected, the difference between the mileage data of the vehicle dashboard collected at the time of the engine shutdown and the first start-up mileage of the vehicle is obtained through difference calculation as the mileage distance of the vehicle this time; If not collected, based on the GPS positioning information cache table, obtain all GPS positioning information recorded by the vehicle during this driving process, based on the preset algorithm formula: , obtain the mileage of the vehicle this time, specifically, based on the preset algorithm formula: The step of obtaining the mileage distance traveled by the vehicle this time specifically includes: Based on the preset algorithm formula: , get the distance between two adjacent GPS positioning information; Determine whether the distance between the two adjacent GPS positioning information exceeds a preset distance threshold; If yes, then delete the distance between the two adjacent GPS positioning information; If not, the distances between the two adjacent GPS positioning information are accumulated, and the final accumulated result is the mileage distance of the vehicle this time. in, Indicates the longitude value corresponding to the current element in the GPS positioning information cache form, Indicates the latitude value corresponding to the current element in the GPS positioning information cache form, Indicates the longitude value corresponding to the previous element of the current element in the GPS positioning information cache form, Indicates the latitude value corresponding to the previous element of the current element in the GPS positioning information cache form.

2. The method for determining a vehicle travel distance according to claim 1, characterized in that: The step of collecting the mileage data of the vehicle dashboard at the start-up time point by the collection tool based on the on-board automatic diagnosis system as the first start-up mileage of the vehicle specifically includes: Determining whether the on-board automatic diagnostic system can collect mileage data of the vehicle dashboard at the start time point; If yes, the mileage data is used as the first startup mileage; If not, the mileage data of the vehicle dashboard cached when the vehicle was last turned off is obtained as the first startup mileage.

3. The method for determining a vehicle travel distance according to claim 1, characterized in that: The step of obtaining the accumulated mileage data of the vehicle at the start time point as the second start mileage of the vehicle by the mileage accumulation tool based on the on-board automatic diagnostic system specifically includes: Determining whether the latest accumulated mileage data of the vehicle is obtained at the start time point; If yes, the latest mileage data is used as the second starting mileage; If not, the vehicle's cumulative mileage data cached in the on-board automatic diagnostic system when the vehicle was last turned off is obtained as the second starting mileage.

4. The method for determining a vehicle travel distance according to claim 1, characterized in that: During the driving of the vehicle, at a preset first time interval, the step of continuously collecting and updating the mileage data in the vehicle dashboard through the collection tool of the on-board automatic diagnostic system specifically includes: The current collection time is obtained, and the current collection time and the collected mileage data in the vehicle dashboard are cached in the form of key-value pairs.

5. A vehicle travel distance determination device, characterized in that: include: A collection module, used for collecting mileage data of the vehicle dashboard at the start time point based on the collection tool of the vehicle automatic diagnosis system as the first start mileage of the vehicle; An accumulation module, configured to obtain the accumulated mileage data of the vehicle at the start time point based on the mileage accumulation tool of the on-board automatic diagnostic system as the second start mileage of the vehicle; The collection module is also used to continuously collect and update the mileage data in the vehicle dashboard through the collection tool of the on-board automatic diagnostic system at a preset first time interval during the vehicle driving process; A positioning acquisition module is used to continuously acquire the GPS positioning information of the current vehicle through the GPS positioning tool of the on-board automatic diagnostic system at a preset second time interval during the driving of the vehicle; Positioning cache form building module, used to pre-build GPS positioning information cache form; The positioning information cache entry module is used to sequentially obtain the GPS positioning information of the current vehicle based on the order of acquisition time; and to obtain the GPS positioning information in the form of The GPS positioning information cache form is entered in the form of key-value pairs, where: Indicates the current time when the GPS positioning information of the current vehicle is obtained each time. Indicates the GPS longitude value, Indicates the GPS latitude value; A judgment module is used to collect the time information when the vehicle is turned off, and to judge whether the time point of the last mileage accumulation is consistent with the time information when the vehicle is turned off; The algorithm module is used to obtain the mileage distance of the vehicle this time according to the judgment result, based on the first start mileage of the vehicle, the second start mileage of the vehicle, the latest updated mileage data in the vehicle dashboard collected by the collection tool, the GPS positioning information and the mileage data accumulated by the on-board automatic diagnosis system, The algorithm module includes a first operator module, a judgment module, a second operator module and a third operator module. The first operation submodule is used for obtaining the difference between the mileage data accumulated by the on-board automatic diagnostic system and the second starting mileage through difference operation if the judgment result is yes, as the mileage distance of the vehicle this time; The judging submodule is used to judge whether the mileage data of the vehicle dashboard is collected at the time of the engine shutdown if the judgment result is no; The second operation submodule is used to obtain the difference between the mileage data of the vehicle dashboard collected at the time of the engine shutdown and the first start-up mileage of the vehicle through difference operation if the mileage data is collected, as the mileage distance of the vehicle this time; The third operation submodule is used to obtain all GPS positioning information recorded by the vehicle during this driving process based on the GPS positioning information cache form if it has not been collected, based on the preset algorithm formula: , obtain the mileage distance of the vehicle this time, Specifically, the third operation submodule includes an operation unit, a judgment unit, a first processing unit and a second processing unit. The computing unit is used to: , get the distance between two adjacent GPS positioning information; The judging unit is used to judge whether the distance between the two adjacent GPS positioning information exceeds a preset distance threshold; The first processing unit is configured to delete the distance between the two adjacent GPS positioning information if yes; The second processing unit is used for accumulating the distances between the two adjacent GPS positioning information if no, and the final accumulated result is the mileage distance of the vehicle this time. in, Indicates the longitude value corresponding to the current element in the GPS positioning information cache form, Indicates the latitude value corresponding to the current element in the GPS positioning information cache form, Indicates the longitude value corresponding to the previous element of the current element in the GPS positioning information cache form, Indicates the latitude value corresponding to the previous element of the current element in the GPS positioning information cache form.

6. A computer device, comprising a memory and a processor, wherein the memory stores computer-readable instructions, and the processor implements the steps of the vehicle travel distance determination method according to any one of claims 1 to 4 when executing the computer-readable instructions.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by a processor, the steps of the vehicle travel distance determination method according to any one of claims 1 to 4 are implemented.

Citation Information

Patent Citations

  • Vehicle running mileage counting method and device based on OBD vehicle speed

    CN105241472A

  • Vehicle travel calibration method and device and computer-readable storage medium

    CN110244699A