[0048] The implementation of the present invention will be described in detail below in conjunction with the accompanying drawings. The accompanying drawings are only for reference and description, and do not constitute a limitation to the protection scope of the present invention.
[0049] Embodiments of the present invention provide a method for reminding automobiles of low oil volume based on historical data on the one hand, comprising the following steps:
[0050] S10. Read the current remaining fuel volume L of the vehicle in real time ro;
[0051] During specific implementation, it can communicate with the instrument module through a bus (such as CAN or LIN bus) to obtain the remaining oil quantity data.
[0052] S20. Calculate the comprehensive average fuel consumption C of the vehicle z;
[0053] Specifically, include the following steps:
[0054] S201. Read the daily average fuel consumption C of the car i to store;
[0055] S202. Set the number of days k for obtaining the average fuel consumption;
[0056] S203. Calculate the fuel consumption weight coefficient W of the m-th day within k days m;
[0057] Specifically, the W m =(k+1-m)/k, said m=1,2,3...k.
[0058] S204. Read the fuel consumption C of the m-th day within k days m;
[0059] S204. According to the fuel consumption C m and fuel consumption weight coefficient W m Calculate the comprehensive average fuel consumption C of the vehicle z.
[0060] Specifically, the
[0061] S30. According to the current remaining fuel volume L of the vehicle ro and vehicle comprehensive average fuel consumption C z Calculate the mileage D of the vehicle's current remaining fuel 1;
[0062] Specifically, the D 1 = L ro /C z.
[0063] S40. Obtain the current location information of the vehicle, calculate the driving distance between each gas station and the current location of the vehicle, and arrange them in order of distance as L 1 , L 2 、…L i; the L i Indicates the driving distance from the i-th gas station to the current location of the vehicle;
[0064] S50. Judging L among the gas stations with the shortest driving distance from the current position of the vehicle 1 Is it greater than the mileage D 1 , if yes, send a rescue request to the server, otherwise go to the next step;
[0065] When it is judged that among the gas stations, the L with the shortest driving distance from the current position of the vehicle is 1D 1 , it means that the remaining fuel of the current vehicle is not enough to drive to the nearest gas station, and it is necessary to send a rescue request to the server through the Internet of Vehicles to prevent the engine from stalling.
[0066] S60. Determine whether the following conditions are established: L 2 ≤D 1 +△D, if yes, judge L 3 ≤D 1 Whether +△D is established, if yes, continue to judge L n ≤D 1 Whether +△D holds true until L nD 1 +△D, execute the next step;
[0067] The ΔD can be set by the user, preferably, the ΔD=0.1D 1 , the n∈[2,i].
[0068] S70. Carry out a refueling alarm at the (n-1)th alarm level, the smaller n means the higher the refueling alarm level, and the larger n means the lower the refueling alarm level.
[0069] For example, when L 2D 1 +△D, it means that the remaining fuel capacity of the vehicle is very likely to be unable to drive to a driving distance of L 2 Therefore, refueling should be carried out at the gas station with a driving distance of L1, and an alarm should be issued at the highest level to prevent the engine from stalling halfway. When L 3D 1 +△D, it means that the remaining fuel capacity of the vehicle is very likely to be unable to drive to a driving distance of L 3 gas station, but can travel to a driving distance of L 1 , L2 gas station, so the alarm level can be slightly lower.
[0070] Further, in one embodiment of the present invention, after step S70, it also includes:
[0071] S80. If the alarm level is level 1, automatically plan the driving distance to be L 1 The path of the gas station, otherwise go to the next step;
[0072] S90. If the alarm level is the nth level, the pop-up driving distance is L 2 , L 3 …L n The navigation path of the gas station is for the user to choose, and the navigation path selected by the user is accepted for navigation.
[0073] like figure 1 As shown, another aspect of the present invention provides a low-fuel reminder device based on historical data, including an average fuel consumption calculation module, a remaining fuel reading module, an instrument module, a mileage calculation module, a current position acquisition module, a distance Calculation module, distance sorting module, distance judgment module, alarm level module, call initiation module, server;
[0074] The average fuel consumption calculation module includes an average fuel consumption storage module, an average fuel consumption time setting module, and an average fuel consumption weight module;
[0075] The average fuel consumption reading storage module is used to read and store the daily historical average fuel consumption of the car;
[0076] The obtaining average fuel consumption duration setting module is used to set the number of days for obtaining the average fuel consumption;
[0077] The average fuel consumption weight module is used to calculate the fuel consumption weight coefficient of a specific day;
[0078] The remaining fuel quantity reading module is used to read the current remaining fuel quantity of the vehicle in real time;
[0079] The instrument module is used to provide current remaining oil quantity data and historical average fuel consumption data;
[0080] The mileage calculation module is used to calculate the mileage of the current remaining fuel of the vehicle according to the current remaining fuel of the vehicle and the comprehensive average fuel consumption of the vehicle;
[0081] The current position acquiring module is used to acquire the current position information of the vehicle;
[0082] The distance calculation module is used to calculate the driving distance between each gas station and the current position of the vehicle;
[0083] The distance sorting module is used to arrange the driving distance between each gas station and the current position of the vehicle in order of distance;
[0084] The distance judging module is used to judge the relationship between the driving distance between each gas station and the current position of the vehicle and the driving mileage;
[0085] The alarm level module is used to determine the alarm level according to the result of the distance judgment module;
[0086] The call initiating module is configured to send a rescue request when the gas station with the closest driving distance from the current position of the vehicle among the gas stations is greater than the mileage;
[0087] The server is configured to accept the rescue request sent by the call initiating module.
[0088] The course of work of the automobile low fuel volume reminder device based on historical data of the present invention is:
[0089] First, the average fuel consumption reading storage module communicates with the meter module to read the daily average fuel consumption C of the car i Store; set the number of days k to obtain the average fuel consumption by obtaining the average fuel consumption time setting module; the average fuel consumption weight module calculates the fuel consumption weight coefficient W of the m-th day within k days m , the specific calculation formula is: W m =(k+1-m)/k, m=1,2,3...k; the average fuel consumption calculation module reads the fuel consumption C of the m-th day within k days from the average fuel consumption reading storage module m , and according to the fuel consumption C m and fuel consumption weight coefficient W m Calculate the comprehensive average fuel consumption C of the vehicle z , the specific calculation formula is:
[0090]
[0091] Then, the remaining fuel quantity reading module communicates with the instrument module through the bus (such as CAN bus, etc.), and reads the current remaining fuel quantity L of the vehicle in real time. ro; The mileage calculation module is based on the current remaining oil quantity L of the vehicle ro and vehicle comprehensive average fuel consumption C z Calculate the mileage D of the vehicle's current remaining fuel 1;, the specific calculation formula is: D 1 = L ro /C z.
[0092] The current location acquisition module obtains the current location information of the vehicle, the distance calculation module calculates the driving distance between each gas station and the current location of the vehicle, and the distance sorting module arranges L according to the order of the driving distance between each gas station and the current location of the vehicle. i.
[0093] Next, the distance judging module judges the gas station L that has the shortest driving distance from the current location of the vehicle among the gas stations. 1 Is it greater than the mileage D 1 , then the call initiating module sends a rescue request to the server, and the server accepts the rescue request and performs corresponding processing; otherwise, the distance judgment module judges whether the following conditions are established: L 2 ≤D 1 +△D, if yes, judge L 3 ≤D 1 Whether +△D is established, if yes, continue to judge L n ≤D 1 Whether +△D holds true until L nD 1 +ΔD, then the alarm level module performs a refueling alarm at the n-1th level of alarm level, the smaller n indicates the higher level of the refueling alarm, and the larger n indicates the lower level of the refueling alarm.
[0094] like figure 2 As shown, in one embodiment of the present invention, the automobile low fuel quantity reminding device based on historical data also includes a navigation module, and the navigation module includes an alarm level acceptance module, a navigation path display module, a navigation path selection receiving module, Navigation path planning module;
[0095] The alarm level accepting module is used to accept the alarm level issued by the alarm level module;
[0096] The navigation path display module is used to display that the driving distance is L 2 , L 3 …L n The navigation path of the gas station for users to choose;
[0097] The navigation path selection receiving module is used to receive the navigation path selected by the user;
[0098] The navigation path planning module is used to perform navigation planning according to the selected path.
[0099] If the alarm level received by the alarm level accepting module is the first level, then the navigation path planning module automatically plans to drive distance L 1 The path of the gas station, otherwise if the alarm level is the nth level, the driving distance is displayed by the navigation path display module as L 2 , L 3 …L n The navigation path of the gas station is for the user to choose, the navigation path selection receiving module accepts the navigation path selected by the user, and the navigation path planning module performs navigation according to the planned path.
[0100] The above disclosures are only preferred embodiments of the present invention, and cannot be used to limit the protection scope of the present invention. Therefore, equivalent changes made according to the scope of the patent application of the present invention still fall within the scope of the present invention.