A method, system and computer readable medium for obtaining vehicle mileage
By installing a positioning device on the vehicle and using methods such as Kalman filtering, the problem of positioning deviation of the driving recorder when the signal is weak or blocked is solved, and high-precision mileage statistics are achieved.
Patent Information
- Application Number
- CN202110693713.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-22
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2041-06-22
AI Technical Summary
It is difficult for existing driving recorders to obtain accurate vehicle mileage statistics when the signal is weak or blocked, resulting in positioning deviation and inaccurate mileage calculation.
By installing a positioning device on the vehicle, positioning data is obtained at certain intervals. Based on the driving speed and the reliability value of the positioning data, high-precision positioning data is obtained using methods such as Kalman filtering to calculate accurate mileage information.
Even under low speed or poor signal conditions, high-precision positioning data and accurate mileage information can be obtained, improving the accuracy of mileage statistics.
Smart Images

Figure CN113324560B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of vehicle networking technology, and more particularly to a method, system and computer-readable medium for obtaining vehicle mileage therein. Background Art
[0002] Smart driving recorders are products used to record relevant information such as images and sounds while a vehicle is driving. They can also be used for high-precision positioning and vehicle operation and maintenance management, such as locating vehicles and counting mileage. Ordinary driving recorders use GPS positioning with a positioning error of 10-15 meters. They mainly rely on receiving satellite signals, obtaining positioning data based on satellite signals, calculating the vehicle's speed based on the positioning data, and then calculating the mileage based on the vehicle's average speed and time. However, sometimes positioning deviations occur in areas with weak signals, resulting in inaccurate average speeds, missing or redundant mileage, and inaccurate mileage statistics. Summary of the invention
[0003] In order to solve the above-mentioned technical problems, an embodiment of the present invention is to provide a more accurate method, system and computer-readable medium for obtaining vehicle mileage. In a first aspect, a method for obtaining vehicle mileage is proposed, comprising the following steps: obtaining the current positioning data of a moving vehicle at a first interval, the current positioning data of the vehicle originating from a positioning device installed on the vehicle; obtaining the current driving speed of the vehicle according to the current positioning data of the vehicle; judging the magnitude of the current driving speed and the first threshold and the second threshold, if the driving speed is between the first threshold and the second threshold, obtaining the current high-precision positioning data of the vehicle according to the credibility value of the current positioning data of the vehicle; obtaining the mileage information of the vehicle according to the high-precision positioning data of the vehicle.
[0004] Preferably, “obtaining the current high-precision positioning data of the vehicle according to the credibility value of the current positioning data of the vehicle” includes:
[0005] If the credibility value of the current positioning data of the vehicle is greater than or equal to the first value, the current high-precision positioning data of the vehicle is equal to the acquired current positioning data of the vehicle.
[0006] Preferably, "obtaining the vehicle's current high-precision positioning data based on the credibility value of the vehicle's current positioning data" also includes: if the credibility value of the vehicle's current positioning data is less than a first value, based on the vehicle's current driving speed, obtaining the vehicle's current high-precision positioning data by performing Kalman filtering on multiple positioning data obtained in previous time periods.
[0007] Preferably, if the current driving speed is greater than or equal to the second threshold, the current high-precision positioning data of the vehicle is equal to the acquired current positioning data of the vehicle.
[0008] Preferably, if the current driving speed is less than or equal to the first threshold, the current high-precision positioning data of the vehicle is equal to the last positioning data obtained for the vehicle.
[0009] Preferably, "obtaining the vehicle's mileage information based on the vehicle's high-precision positioning data" includes: calculating the distance between two adjacent positioning points of the vehicle using two high-precision positioning data of the vehicle obtained at adjacent times, and obtaining the vehicle's total mileage information based on the distance between each two adjacent positioning points.
[0010] Preferably, the calculated distance between two adjacent positioning points includes zero.
[0011] Preferably, the first time is adjusted according to the driving speed, and the greater the driving speed, the shorter the first time.
[0012] In a second aspect, the present disclosure proposes a system for obtaining vehicle mileage, including: a current positioning data acquisition unit, used to obtain the current positioning data of a traveling vehicle at a first interval, the current positioning data of the vehicle originating from a positioning device installed on the vehicle; a driving speed acquisition unit, used to obtain the current driving speed of the vehicle based on the current positioning data of the vehicle; a judgment unit, used to judge the magnitude of the current driving speed and a first threshold and a second threshold, and if the driving speed is between the first threshold and the second threshold, obtaining the current high-precision positioning data of the vehicle based on the credibility value of the current positioning data of the vehicle; and a mileage information acquisition unit, used to obtain the mileage information of the vehicle based on the high-precision positioning data of the vehicle.
[0013] The present disclosure proposes a computer-readable medium in a third aspect, wherein a computer program is stored in the computer-readable medium. The computer program is loaded and executed by a processing module to implement the steps of any of the above-mentioned methods.
[0014] Compared with the prior art: the present invention obtains the current positioning data of the moving vehicle at every first time interval, thereby ensuring that there is enough positioning data to calculate relatively accurate mileage information. The current positioning data of the vehicle originates from the positioning device installed on the vehicle; it is used to obtain accurate positioning data of the vehicle. According to the current positioning data of the vehicle, the current driving speed of the vehicle is obtained; in this way, the real-time speed of the vehicle can be obtained all the time. The current driving speed is judged against the first threshold and the second threshold. If the driving speed is between the first threshold and the second threshold, the current high-precision positioning data of the vehicle is obtained according to the credibility value of the current positioning data of the vehicle; according to the high-precision positioning data of the vehicle, the mileage information of the vehicle is obtained. In this way, even when the vehicle is driving at a relatively low speed or when driving under obstruction, high-precision positioning data can be obtained, thereby obtaining relatively accurate mileage information. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] To better understand the technical solution of the present disclosure, you may refer to the following drawings for auxiliary explanation of the prior art or embodiments. These drawings will selectively display the products or methods involved in the prior art or some embodiments of the present disclosure. The basic information of these drawings is as follows:
[0016] Figure 1 The present invention is a flowchart of a method for obtaining vehicle mileage in one embodiment. DETAILED DESCRIPTION
[0017] The technical means or technical effects involved in the present disclosure will be further described below. Obviously, the embodiments (or implementation methods) provided are only some of the implementation methods covered by the present disclosure, but not all of them. Based on the embodiments in the present disclosure and the explicit or implicit descriptions of the figures and texts, all other embodiments that can be obtained by those skilled in the art without making creative efforts will be within the scope of protection requested by the present disclosure.
[0018] The main objects or relationships involved in the above steps are described below. If further understanding is required for the parts not described in detail, reasonable inferences can be made by referring to the relevant contents of the prior art, other relevant descriptions in this article or the purpose of the invention.
[0019] like Figure 1 In a first aspect, the present disclosure provides a method for obtaining vehicle mileage, comprising the following steps:
[0020] S1, obtaining the current positioning data of the vehicle in motion at a first time interval, where the current positioning data of the vehicle comes from a positioning device installed on the vehicle;
[0021] S2, obtaining the current speed of the vehicle according to the current positioning data of the vehicle;
[0022] S3, determining the magnitude of the current driving speed and the first threshold and the second threshold. If the driving speed is between the first threshold and the second threshold, obtaining the current high-precision positioning data of the vehicle according to the credibility value of the current positioning data of the vehicle;
[0023] S4, obtaining the mileage information of the vehicle according to the high-precision positioning data of the vehicle.
[0024] In one embodiment, the method of the present application is used to obtain the mileage of a vehicle, which may be to obtain the real-time mileage of the vehicle while it is traveling, or to obtain the mileage of the vehicle afterwards.
[0025] S1, obtaining the current positioning data of the vehicle in motion at a first time interval, where the current positioning data of the vehicle comes from a positioning device installed on the vehicle;
[0026] In one embodiment, a satellite antenna and vehicle-mounted intelligent electronic products with built-in high-precision positioning algorithms, such as a driving recorder and a locator, are installed on the vehicle. These electronic products are equipped with positioning devices, and these positioning devices can perform positioning by receiving satellite signals through satellite antennas.
[0027] The above-mentioned vehicle-mounted intelligent electronic products have built-in GNSS modules that can receive satellite signals, and mainly use Beidou satellite positioning signals and GPS satellite signals as a supplement. It has a built-in high-precision positioning solution module that can fuse satellite data to perform RTD / RTK position solution. 4G module: access the CORS service to obtain base station differential data to assist in positioning. The above-mentioned GNSS module is equipped with an external antenna, which can stably obtain good satellite signals, making the positioning data more accurate. The above-mentioned 4G module can access the CORS service, obtain base station differential correction data, and pass it to the high-precision positioning solution module. The high-precision positioning solution module fuses the satellite positioning data received by the GNSS module with the differential correction data obtained by the 4G module, and performs RTD / RTK to solve the current positioning data of the vehicle, that is, to solve the real-time positioning data of the vehicle in motion. The solution here can also be performed afterwards.
[0028] The above solution can be calculated on the vehicle side or on the cloud to obtain the current positioning data of the vehicle. The current positioning data of the vehicle can be calculated in real time or after the fact, which is not limited here. These positioning devices receive satellite signals at intervals of the first time and calculate the positioning data of the positioning device itself. The general frequency is 1Hz, so as to obtain the current positioning data of the vehicle. The first time can be set to 1 second, and the first time can also be 2 seconds or 0.5 seconds. The faster the vehicle travels, the smaller the first time is set, and vice versa. The real-time satellite positioning data of the vehicle is obtained at intervals of the first time. The real-time satellite positioning data of the vehicle obtained here is the current positioning data of the vehicle. However, due to occlusion or poor signal, the vehicle's positioning device receives satellite signals inaccurately, resulting in the vehicle's current positioning data obtained by the received satellite signal being inaccurate or the vehicle's current positioning data being not accurate enough. The purpose of an embodiment of the present application is to obtain high-precision positioning data of the vehicle, so as to obtain accurate mileage information or total mileage of the vehicle.
[0029] In one embodiment, high-precision positioning data of the vehicle on the driving section is obtained respectively according to the three different speed scenarios of the vehicle. Each high-precision positioning data represents the position information of a high-precision positioning point during the vehicle's driving process. These high-precision positioning points form a trajectory, and then the mileage of the trajectory is calculated to be the mileage information of the vehicle.
[0030] S2, obtaining the current speed of the vehicle according to the current positioning data of the vehicle;
[0031] After the positioning device on the vehicle acquires the satellite data, the satellite data includes a speed value. Since the current positioning data of the vehicle is calculated based on the satellite data, the current driving speed of the vehicle can be obtained based on the current positioning data of the vehicle.
[0032] In one embodiment, the first time is 1 second, that is, multiple current positioning data of the vehicle are obtained every one second, and then after obtaining high-precision positioning data, a set of multiple high-precision positioning points of the vehicle on the driving section is formed, and the distance between two adjacent high-precision positioning points is calculated, and the total mileage information is obtained according to the distance between each two adjacent positioning points in the high-precision positioning point set.
[0033] S3, determining the magnitude of the current driving speed and the first threshold and the second threshold. If the driving speed is between the first threshold and the second threshold, obtaining the current high-precision positioning data of the vehicle according to the credibility value of the current positioning data of the vehicle;
[0034] After obtaining the current driving speed of the vehicle, first determine the current driving speed and the first threshold and the second threshold, so as to divide the vehicle's driving location into three types. In the first type, if the current driving speed is greater than or equal to the second threshold, the vehicle's current high-precision positioning data is equal to the acquired vehicle's current positioning data. That is, when the current driving speed is greater than or equal to the second threshold, the current positioning data obtained by the vehicle through the positioning device is high-precision positioning data, and there is no need to process the current positioning data. In this way, the position of the vehicle obtained by the positioning device is accurate.
[0035] The second type is that if the current driving speed is less than or equal to the first threshold, the current high-precision positioning data of the vehicle is equal to the last positioning data of the vehicle. That is, the current positioning data obtained by the positioning device at this time is not accurate enough, and the current positioning data obtained at this time is discarded. The high-precision positioning data obtained in the last second is used as the high-precision positioning data of the vehicle at this time, that is, it is assumed that the vehicle is stationary and not moving at this time. Therefore, the distance between the position of the vehicle at this time and the position of the vehicle at the last second is zero.
[0036] The third method is to determine the current driving speed and the first threshold and the second threshold. If the driving speed is between the first threshold and the second threshold, the current high-precision positioning data of the vehicle is obtained according to the credibility value of the current positioning data of the vehicle; if the credibility value of the current positioning data of the vehicle is greater than or equal to the first value, the current high-precision positioning data of the vehicle is equal to the acquired current positioning data of the vehicle. That is, at this time, the current positioning data of the vehicle obtained by the positioning device of the vehicle is high-precision.
[0037] If the credibility value of the current positioning data of the vehicle is less than the first value, based on the current driving speed of the vehicle, the current high-precision positioning data of the vehicle is obtained by performing Kalman filtering on multiple positioning data obtained in the previous time period. That is, the current positioning data of the vehicle obtained by the positioning device at this time is inaccurate, and it is necessary to process multiple high-precision positioning data of the vehicle obtained at the previous moment to obtain the high-precision positioning data of the vehicle at this time. In this embodiment, it is obtained by performing Kalman filtering on multiple positioning data obtained in the previous time period.
[0038] S4, obtaining the mileage information of the vehicle according to the high-precision positioning data of the vehicle.
[0039] The distance between two adjacent positioning points of the vehicle is calculated using two high-precision positioning data of the vehicle obtained at adjacent times, and the total mileage information of the vehicle is obtained based on the distance between each two adjacent positioning points.
[0040] The positioning point is the position where the vehicle is located when the positioning device obtains the current positioning data of the vehicle every second. When the driving speed corresponding to a certain positioning point is less than or equal to the first threshold, the current positioning data of the positioning point is not included in the positioning point set. When the driving speed corresponding to a certain positioning point is greater than or equal to the second threshold, the positioning data of the positioning point is included in the positioning point set. When the driving speed corresponding to a certain positioning point is greater than the first threshold and less than the second threshold, the credibility value in the current positioning data of the positioning point is obtained; when the credibility value is greater than or equal to 4, the current positioning data of the positioning point is included in the positioning point set; when the credibility value is less than 4, all high-precision positioning data of multiple positioning points before the positioning point are subjected to Kalman filtering to obtain high-precision positioning data of the positioning point, and the filtered high-precision positioning data of the positioning point is included in the position information of the positioning point in the positioning point set.
[0041] Specifically, a high-precision positioning data of the moving vehicle is obtained every one second, so that enough high-precision positioning data can be obtained, and a high-precision positioning data set of the positioning point composed of the high-precision positioning data is obtained every one second, and the distance between two adjacent positioning points is calculated. The total mileage information is obtained according to the distance between each two adjacent positioning points in the positioning point set. When the mileage information is calculated based on the high-precision positioning data, it is guaranteed that relatively accurate mileage information can be obtained. The first time can be adjusted according to the driving speed. For example, the interval time can be longer on a section with a relatively low speed, and the interval time can be shorter on a section with a relatively high speed, which can ensure that enough positioning data is obtained. The current positioning data comes from a positioning device installed on the vehicle. The positioning device can be a GPS module or a Beidou module, which can receive satellite signals to obtain satellite data, and can also receive differential data from a reference station to solve the current positioning data.
[0042] Comparing the current driving speed with a first threshold and a second threshold, wherein the first threshold is less than the second threshold, and when the current driving speed is greater than the first threshold and less than the second threshold, obtaining the current high-precision positioning data of the vehicle according to the credibility value in the current positioning data;
[0043] In one embodiment, the first threshold is 1m / s, and the second threshold is 7m / s. It is determined whether the driving speed is greater than 1m / s. If it is less than or equal to 1m / s, it means that the vehicle is stationary. Although the speed of the vehicle is not 0m / s at this time, the vehicle is actually stationary. When the current driving speed is less than or equal to the first threshold, the mileage information of the vehicle is obtained using the last high-precision positioning data. That is, the current positioning data of the vehicle at this moment is discarded, and the corresponding mileage information is calculated using the last high-precision positioning data obtained. At this time, the positioning data obtained in real time is not used to statistically calculate the mileage information. Avoid counting redundant and incorrect mileage information into the total mileage information.
[0044] If the current driving speed is greater than or equal to the second threshold, the mileage information of the vehicle is obtained according to the current positioning data. That is, when the driving speed is greater than or equal to 7m / s, the current positioning data is used to calculate the distance between the positioning data and the previous positioning data, thereby calculating the corresponding mileage information. At this time, the current positioning data obtained is high-precision positioning data.
[0045] In one embodiment, the current driving speed is compared with the first threshold and the second threshold, and the first threshold is less than the second threshold. When the current driving speed is greater than the first threshold and less than the second threshold, the high-precision positioning data of the vehicle at this time is obtained according to the credibility value in the current positioning data. When the credibility value is greater than or equal to 4, the high-precision positioning data of the vehicle at this time is the current positioning data; when the credibility value is less than 4, the current high-precision positioning data of the vehicle is obtained after Kalman filtering of the high-precision positioning data obtained at the previous time. Specifically, when the speed is greater than the first speed 1m / s and less than the second speed 7m / s, the credibility of the positioning data is judged, the current positioning data contains the credibility value, and the size of the credibility value is judged. If the credibility value is greater than or equal to 4, it means that the positioning data obtained at this time has a high accuracy and can be positioned with high accuracy. At this time, the currently obtained positioning data will be used to calculate the mileage information, that is, the distance between the positioning point corresponding to the obtained positioning data and the previous positioning point is used to count the corresponding mileage information. If the credibility value is less than 4, the accuracy of the positioning data obtained at this time is not high enough. This solution performs Kalman filtering on the high-precision positioning data of the previous second and the second before that, and then obtains the current high-precision positioning data. In other words, accurate positioning data is obtained, which is equivalent to correcting the positioning point corresponding to the positioning data with low accuracy, so that the trajectory of the positioning point returns to the correct trajectory, which is convenient for counting the correct mileage information. When performing Kalman filtering on the currently obtained positioning data, if some correct positioning data have been determined before, these correct positioning data and the current real-time positioning data are Kalman filtered together to obtain the current filtered positioning data.
[0046] In a second aspect, the present disclosure provides a system for obtaining vehicle mileage, comprising:
[0047] A current positioning data acquisition unit is used to acquire the current positioning data of the moving vehicle at a first time interval, and the current positioning data of the vehicle is derived from a positioning device installed on the vehicle; a driving speed acquisition unit is used to acquire the current driving speed of the vehicle based on the current positioning data of the vehicle; a judgment unit is used to judge the magnitude of the current driving speed and the first threshold and the second threshold, and if the driving speed is between the first threshold and the second threshold, the current high-precision positioning data of the vehicle is acquired based on the credibility value of the current positioning data of the vehicle; a mileage information acquisition unit is used to acquire the mileage information of the vehicle based on the high-precision positioning data of the vehicle.
[0048] The present disclosure proposes a computer-readable medium in a third aspect, wherein a computer program is stored in the computer-readable medium, and the computer program is loaded and executed by a processing module to implement the steps of the monitoring method. It can be understood by those skilled in the art that all or part of the steps in the embodiment can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable medium, and the readable medium can include various media that can store program codes, such as a flash drive, a mobile hard disk, a read-only memory, a random access memory, a magnetic disk or an optical disk.
[0049] Within the scope of the knowledge and ability level of those skilled in the art, the various embodiments or technical features mentioned herein may be combined with each other as other optional embodiments without conflict. These limited number of optional embodiments, which are not listed one by one and are formed by combining a limited number of technical features, still fall within the technical scope disclosed in the present disclosure and can be understood or inferred by those skilled in the art in combination with the drawings and the above text.
[0050] In addition, the description of most embodiments is based on different focuses. If you need to further understand what is not described in detail, you can refer to the relevant content of the prior art, other relevant descriptions in this article or the purpose of the invention for reasonable reasoning.
[0051] It is emphasized again that the embodiments listed above are typical and preferred embodiments of the present disclosure, which are only used to explain and interpret the technical solutions of the present disclosure in detail to facilitate the understanding of the readers, and are not used to limit the scope or application of the present disclosure. Any technical solutions obtained by modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present disclosure shall be included in the scope of the present disclosure.
Claims
1. A method for obtaining vehicle mileage, characterized in that: The following steps are involved: Acquire the current positioning data of the vehicle in motion at the first time interval, the current positioning data of the vehicle comes from a positioning device installed on the vehicle; According to the current positioning data of the vehicle, the current driving speed of the vehicle is obtained; Determine the magnitude of the current driving speed and the first threshold and the second threshold. If the driving speed is between the first threshold and the second threshold, obtain the current high-precision positioning data of the vehicle according to the credibility value of the current positioning data of the vehicle. The obtaining of the current high-precision positioning data of the vehicle according to the credibility value of the current positioning data of the vehicle includes: if the credibility value of the current positioning data of the vehicle is less than the first value, based on the current driving speed of the vehicle, obtain the current high-precision positioning data of the vehicle by performing Kalman filtering on multiple positioning data obtained in the previous time period; The vehicle's mileage information is obtained based on the vehicle's high-precision positioning data.
2. The method according to claim 1, characterized in that: "According to the credibility value of the vehicle's current positioning data, obtaining the vehicle's current high-precision positioning data" includes: If the credibility value of the current positioning data of the vehicle is greater than or equal to the first value, the current high-precision positioning data of the vehicle is equal to the acquired current positioning data of the vehicle.
3. The method according to claim 1, characterized in that: If the current driving speed is greater than or equal to the second threshold, the current high-precision positioning data of the vehicle is equal to the acquired current positioning data of the vehicle.
4. The method according to claim 1, characterized in that: If the current driving speed is less than or equal to the first threshold, the current high-precision positioning data of the vehicle is equal to the last positioning data obtained for the vehicle.
5. The method according to claim 1, characterized in that: "According to the high-precision positioning data of the vehicle, the mileage information of the vehicle is obtained" includes: The distance between two adjacent positioning points of the vehicle is calculated using two high-precision positioning data of the vehicle obtained at adjacent times, and the total mileage information of the vehicle is obtained based on the distance between each two adjacent positioning points.
6. The method according to claim 5, characterized in that: The calculated distance between two adjacent positioning points includes zero.
7. The method according to claim 1, characterized in that: The first time is adjusted according to the driving speed. The greater the driving speed, the shorter the first time.
8. A system for obtaining vehicle mileage, characterized in that: include: A current positioning data acquisition unit, used to acquire the current positioning data of the vehicle during travel at a first time interval, the current positioning data of the vehicle being derived from a positioning device installed on the vehicle; A driving speed acquisition unit, used to obtain the current driving speed of the vehicle according to the current positioning data of the vehicle; A judgment unit is used to judge the magnitude of the current driving speed and the first threshold and the second threshold. If the driving speed is between the first threshold and the second threshold, the current high-precision positioning data of the vehicle is obtained according to the credibility value of the current positioning data of the vehicle; the obtaining of the current high-precision positioning data of the vehicle according to the credibility value of the current positioning data of the vehicle includes: if the credibility value of the current positioning data of the vehicle is less than the first value, based on the current driving speed of the vehicle, a plurality of positioning data obtained in the previous time period are subjected to Kalman filtering to obtain the current high-precision positioning data of the vehicle; The mileage information acquisition unit is used to obtain the mileage information of the vehicle based on the high-precision positioning data of the vehicle.
9. A computer readable medium, characterized in that: The computer readable medium stores a computer program, which is loaded and executed by the processing module to implement the steps of any one of the methods of claims 1 to 7.
Citation Information
Patent Citations
Vehicle driving mileage counting method
CN104006822A
