Oil mass detection method, device and equipment based on automobile data recorder and medium
By using the vehicle information in the driving recorder to calculate and analyze the changes in the vehicle's oil volume in real time, the problem of low accuracy in the monitoring of oil volume in the prior art is solved, real-time and accurate oil volume information is provided, and the vehicle's driving safety is improved.
Patent Information
- Application Number
- CN202510011236.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-03
- Publication Date
- 2025-04-25
- Estimated Expiration
- 2045-01-03
AI Technical Summary
In the prior art, oil quantity monitoring relies on mechanical sensors, which are prone to failure or inaccurate readings, and the reaction lags when the oil quantity changes dramatically, resulting in low accuracy in oil quantity detection and inability to provide real-time and accurate oil quantity information, which increases the risk of vehicle driving.
By using the vehicle information in the driving recorder, we can calculate and analyze the changes in the vehicle's oil volume in real time, and judge whether the oil volume is abnormal, ensuring that the driver obtains accurate oil volume information in a timely manner. The specific method includes obtaining vehicle information feedback from the CAN bus of the vehicle, determining whether the vehicle is in a normal ignition state, calculating the oil quantity difference value, updating the number of oil quantity changes, and sending prompt information when the number of oil quantity changes and the difference value reaches the threshold.
When the oil volume of the vehicle's fuel tank changes drastically, real-time calculation and analysis of the oil volume changes is improved, and the accuracy of oil volume detection is provided to the driver in a timely manner, real-time and accurate oil volume information is reminded to check the vehicle's fuel tank, avoiding potential driving risks caused by continuous oil leakage in the fuel tank, and improving the vehicle's driving safety.
Smart Images

Figure CN119880087A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle parameter monitoring, and in particular to a fuel level detection method, device, equipment and medium based on a driving recorder. Background Art
[0002] With the rapid advancement of the automotive industry, vehicle management systems are playing an increasingly critical role in ensuring driving safety and improving economic efficiency. As an essential component of vehicle management systems, fuel level monitoring is directly related to the normal operation and driving safety of vehicles.
[0003] In the prior art, oil level monitoring usually relies on mechanical sensors to measure oil level changes to simply determine whether the oil level is abnormal.
[0004] However, since mechanical sensors are prone to failure or inaccurate readings, and have a delayed response when the oil level changes drastically, the oil level detection accuracy is low, and it is impossible to provide drivers with real-time and accurate oil level information, which increases the danger of vehicle driving. Summary of the Invention
[0005] The present application provides a fuel level detection method, device, equipment and medium based on a driving recorder, which is used to calculate and analyze the vehicle's fuel level changes in real time by utilizing vehicle information in the driving recorder, and to determine whether the fuel level is abnormal, so as to ensure that the driver obtains accurate fuel level information in a timely manner and improve the vehicle's driving safety.
[0006] In a first aspect, the present application provides a fuel level detection method based on a driving recorder, which is applied to a cloud server, and the cloud server is communicatively connected to one or more vehicles. The method includes:
[0007] Obtain vehicle information fed back to the vehicle's driving recorder by the vehicle's CAN bus at multiple times. The vehicle information includes: vehicle identification, vehicle startup status, CAN bus status, and current fuel level;
[0008] Determine whether the vehicle is in a normal ignition state based on the vehicle startup state and CAN bus state;
[0009] When the vehicle is in a normal ignition state and the fuel level at the current moment is not empty, determining the fuel level difference between the fuel level at the current moment and the pre-recorded fuel level at the previous moment;
[0010] When the absolute value of the oil quantity difference is greater than the first oil quantity difference threshold, updating the oil quantity change times and determining whether the oil quantity change times is greater than or equal to the change times threshold, the oil quantity change times indicating the number of moments when the oil quantity changes;
[0011] When the number of fuel level changes is greater than or equal to the change number threshold, and the absolute value of the fuel level difference is greater than or equal to the second fuel level difference threshold, and the fuel level difference is less than 0, a prompt message is sent to the vehicle according to the vehicle identification, and the prompt message indicates that the vehicle has abnormal fuel consumption and the second fuel level difference threshold is greater than the first fuel level difference threshold.
[0012] In a possible design, determining whether the vehicle is in a normal ignition state according to the vehicle startup state and the CAN bus state includes:
[0013] When the vehicle start state indicates that the vehicle is started and the CAN bus state indicates that the CAN bus is normal, it is determined that the vehicle is in a normal ignition state;
[0014] When the vehicle startup state does not indicate that the vehicle is started, and / or the CAN bus state does not indicate that the CAN bus is normal, it is determined that the vehicle is in an abnormal ignition state.
[0015] In one possible design, the method further includes:
[0016] When the number of fuel level changes is greater than or equal to the change number threshold, the absolute value of the fuel level difference is greater than or equal to the second fuel level difference threshold, and the fuel level difference is greater than 0, it is determined that the vehicle is in the refueling state.
[0017] In one possible design, after or before determining that the vehicle is in a refueling state, the method further includes:
[0018] The duration of continuous change of the fuel level is updated according to the time between the current moment and the previous moment, and the refueling data of the vehicle is recorded when the duration of continuous change of the fuel level is greater than or equal to the change duration threshold.
[0019] In one possible design, the method further includes:
[0020] When the fuel level difference is less than or equal to the first fuel level difference threshold, it is determined that the vehicle is in a normal driving state, and the number of fuel level changes and the duration of continuous fuel level changes of the vehicle are reset to 0.
[0021] In one possible design, the method further includes:
[0022] If the vehicle is not in a normal ignition state and the fuel level is empty at the current moment, a detection failure message is sent to the vehicle according to the vehicle identification;
[0023] When the fuel level at the current moment is empty, the fuel level at the previous moment is used as the fuel level at the current moment.
[0024] In one possible design, the vehicle information includes road conditions and speed. When the absolute value of the fuel level difference is greater than a first fuel level difference threshold, before updating the number of fuel level changes, the method further includes:
[0025] Determining a corresponding first fuel level difference threshold from a preset mapping relationship according to the road condition and speed;
[0026] The sum of the first oil level difference threshold and the preset increment value is determined as the second oil level difference threshold.
[0027] In a possible design, the process of determining the mapping relationship includes:
[0028] Obtaining a first fuel consumption corresponding to a unit distance traveled by the vehicle under different road conditions and / or at different speeds;
[0029] The first fuel consumption is converted into a second fuel consumption corresponding to a unit time, and a first fuel difference threshold corresponding to the road condition and speed is determined according to the product of the vehicle's fuel detection cycle and the second fuel consumption.
[0030] In a second aspect, the present application provides a fuel level detection device based on a driving recorder, which is applied to a cloud server, and the cloud server is communicatively connected to one or more vehicles. The device includes:
[0031] An acquisition module is used to obtain vehicle information fed back to the vehicle driving recorder by the vehicle's CAN bus at multiple times. The vehicle information includes: vehicle identification, vehicle startup status, CAN bus status, and current fuel level;
[0032] Ignition detection module, used to determine whether the vehicle is in a normal ignition state based on the vehicle startup state and CAN bus state;
[0033] A difference calculation module is used to determine the fuel volume difference between the current fuel volume and the pre-recorded fuel volume at the previous moment when the vehicle is in a normal ignition state and the fuel volume at the current moment is not empty;
[0034] a times updating module, configured to update the number of oil quantity changes when the absolute value of the oil quantity difference is greater than a first oil quantity difference threshold, and determine whether the number of oil quantity changes is greater than or equal to the change number threshold, the number of oil quantity changes indicating the number of moments at which the oil quantity changes;
[0035] The fuel quantity abnormality module is used to send a prompt message to the vehicle according to the vehicle identification when the number of fuel quantity changes is greater than or equal to the change number threshold, the absolute value of the fuel quantity difference is greater than or equal to the second fuel quantity difference threshold, and the fuel quantity difference is less than 0. The prompt message indicates that the vehicle has abnormal fuel consumption and the second fuel quantity difference threshold is greater than the first fuel quantity difference threshold.
[0036] In one possible design, the ignition detection module includes: a normal ignition module and an abnormal ignition module;
[0037] a normal ignition module, for determining that the vehicle is in a normal ignition state when the vehicle start state indicates that the vehicle is started and the CAN bus state indicates that the CAN bus is normal;
[0038] The abnormal ignition module is used to determine that the vehicle is in an abnormal ignition state when the vehicle startup state does not indicate that the vehicle is started and / or the CAN bus state does not indicate that the CAN bus is normal.
[0039] In one possible design, the device further includes: a refueling status detection module;
[0040] The refueling status detection module is used to determine that the vehicle is in a refueling state when the number of fuel level changes is greater than or equal to the change number threshold, the absolute value of the fuel level difference is greater than or equal to the second fuel level difference threshold, and the fuel level difference is greater than 0.
[0041] In one possible design, the device further includes: an oil quantity updating module;
[0042] The fuel level update module is used to update the duration of continuous fuel level changes based on the time between the current moment and the previous moment, and record the vehicle's refueling data when the duration of continuous fuel level changes is greater than or equal to the change duration threshold.
[0043] In one possible design, the device further includes: a normal driving detection module;
[0044] The normal driving detection module is used to determine that the vehicle is in a normal driving state when the fuel level difference is less than or equal to a first fuel level difference threshold, and reset the number of fuel level change times and the duration of continuous fuel level change of the vehicle to 0.
[0045] In one possible design, the device further includes: a failure detection module and an oil replacement module;
[0046] A detection failure module is used to send a detection failure message to the vehicle according to the vehicle identification when the vehicle is not in a normal ignition state and the fuel level is empty at the current moment;
[0047] The oil volume replacement module is used to use the oil volume at the previous moment as the current moment's oil volume when the current moment's oil volume is empty.
[0048] In one possible design, the vehicle information includes road conditions and speed, and the device further includes: a mapping module and a summing module;
[0049] A mapping relationship module, configured to determine a corresponding first fuel quantity difference threshold from a preset mapping relationship according to road conditions and speed;
[0050] The summing module is configured to determine the sum of the first fuel quantity difference threshold and the preset increment value as the second fuel quantity difference threshold.
[0051] In one possible design, the device further includes: a first fuel consumption module and a second fuel consumption module;
[0052] A first fuel consumption module is used to obtain a first fuel consumption corresponding to a unit distance traveled by a vehicle under different road conditions and / or at different speeds;
[0053] The second fuel consumption module is used to convert the first fuel consumption into a second fuel consumption corresponding to a unit time, and determine a first fuel difference threshold corresponding to the road condition and speed according to the product of the vehicle's fuel detection cycle and the second fuel consumption.
[0054] In a third aspect, the present application provides an electronic device, comprising: a processor, and a memory communicatively connected to the processor;
[0055] Memory stores computer-executable instructions;
[0056] The processor executes the computer-executable instructions stored in the memory to implement an oil level detection method based on a driving recorder according to the first aspect of the invention.
[0057] In a fourth aspect, the present application provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are executed by a processor, they are used to implement an oil level detection method based on a driving recorder according to the invention content of the first aspect.
[0058] In a fifth aspect, the present application provides a computer program product, including a computer program. When the computer program is executed by a processor, it is used to implement an oil level detection method based on a driving recorder according to the first aspect of the invention.
[0059] The present application provides a fuel level detection method, device, equipment and medium based on a driving recorder, which is applied to a cloud server, and the cloud server is connected to one or more vehicles in communication. The method includes: obtaining vehicle information fed back to the driving recorder of the vehicle by the CAN bus of the vehicle at multiple times, the vehicle information including: vehicle identification, vehicle startup status, CAN bus status, and current fuel level; determining whether the vehicle is in a normal ignition state according to the vehicle startup status and CAN bus status; when the vehicle is in a normal ignition state and the fuel level at the current moment is not empty, determining the fuel level at the current moment The difference between the oil volume at the last moment and the oil volume recorded in advance; when the absolute value of the oil volume difference is greater than the first oil volume difference threshold, the number of oil volume changes is updated, and it is determined whether the number of oil volume changes is greater than or equal to the number of changes threshold, the number of oil volume changes indicates the number of moments when the oil volume changes; when the number of oil volume changes is greater than or equal to the number of changes threshold, and the absolute value of the oil volume difference is greater than or equal to the second oil volume difference threshold, and the oil volume difference is less than 0, a prompt message is sent to the vehicle according to the vehicle identification, the prompt message indicates that the vehicle has abnormal oil consumption, and the second oil volume difference threshold is greater than the first oil volume difference threshold. The following technical effects are achieved: by utilizing vehicle information from a driving recorder, when it is determined that the vehicle is in a normal ignition state and the current fuel level is not empty, the difference between the vehicle's current fuel level and the pre-recorded fuel level of the vehicle at the previous moment is calculated. Thus, when the current fuel level is less than the pre-recorded fuel level at the previous moment, the absolute fuel level difference between the two moments is greater than or equal to a preset second fuel level difference threshold, and the number of fuel level changes is greater than or equal to a preset change number threshold, an indication message is generated indicating abnormal fuel consumption in the vehicle, and the message is sent to the corresponding vehicle based on the vehicle identification to remind the driver to promptly check the vehicle's fuel tank. Thus, when the fuel level in the vehicle's fuel tank changes dramatically, the accuracy of fuel level detection is improved by real-time calculation and analysis of the fuel level change in the vehicle's fuel tank, providing the driver with real-time and accurate fuel level information in a timely manner. Furthermore, when abnormal fuel consumption occurs, a prompt message is sent to the corresponding vehicle to remind the driver to promptly check the vehicle's fuel tank, avoiding potential driving hazards caused by persistent fuel tank leakage and thereby improving vehicle driving safety. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following is a brief introduction to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0061] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0062] Figure 1 A schematic diagram of a fuel level detection method based on a driving recorder provided in an embodiment of the present application Figure 1 ;
[0063] Figure 2 A schematic diagram of a fuel level detection method based on a driving recorder provided in an embodiment of the present application Figure 2 ;
[0064] Figure 3 A schematic structural diagram of a fuel level detection device based on a driving recorder provided in an embodiment of the present application;
[0065] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0066] Reference numerals:
[0067] 310 - acquisition module; 320 - ignition detection module; 330 - difference calculation module; 340 - times update module; 350 - fuel quantity abnormality module;
[0068] 410 - processor; 420 - memory; 430 - communication component; 440 - bus. DETAILED DESCRIPTION
[0069] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
[0070] In the embodiments of the present application, words such as "first" and "second" are used to distinguish between identical or similar items with substantially the same functions and effects. Those skilled in the art will understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit differences. It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described in this application as "exemplary" or "for example" should not be interpreted as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete way. In the embodiments of the present application, "at least one" refers to one or more, and "more than one" refers to two or more.
[0071] It should be noted that the phrase "at the time of..." in the embodiments of the present application can refer to the instantaneous occurrence of a certain event or a period of time after the occurrence of a certain event, and the embodiments of the present application do not specifically limit this. Furthermore, the fuel level detection method based on a driving recorder provided in the embodiments of the present application is merely an example, and a fuel level detection method based on a driving recorder may also include more or less content.
[0072] To facilitate a clear description of the technical solutions of the embodiments of the present application, some of the terms and technologies involved in the embodiments of the present application are briefly introduced below:
[0073] Controller Area Network (CAN): A serial communication network that can be used in vehicles and industrial equipment, allowing microcontrollers and devices to communicate with each other without the need for a host computer.
[0074] With the rapid advancement of the automotive industry, vehicle management systems are playing an increasingly critical role in ensuring the safety and economy of vehicle operations. Fuel level monitoring, as a core component of vehicle management systems, is crucial to maintaining normal vehicle operation and driving safety.
[0075] Traditionally, fuel level monitoring relies on mechanical sensors to measure fuel level fluctuations and simply determine whether the fuel level is abnormal. However, this approach has significant limitations: mechanical sensors are prone to failure or reading errors, and their response speed often exhibits a lag when the fuel level fluctuates dramatically, resulting in poor fuel level detection accuracy. This prevents drivers from providing real-time, accurate fuel level information and increases potential dangers during vehicle operation.
[0076] Based on this, the present application proposes a fuel level detection method, device, equipment, and medium based on a driving recorder, which can be used in the field of vehicle parameter monitoring and aims to solve the above technical problems of the prior art. By fully utilizing the vehicle information in the driving recorder, the vehicle's fuel level changes are calculated and analyzed in real time, thereby promptly identifying abnormal fuel level changes, allowing drivers to obtain accurate fuel level information at all times, thereby significantly improving vehicle driving safety.
[0077] The following specific embodiments describe in detail the technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0078] Figure 1 A schematic diagram of a fuel level detection method based on a driving recorder provided in an embodiment of the present application Figure 1 In an embodiment of the present application, a fuel level detection method based on a driving recorder is applied to a cloud server, and the cloud server is connected to one or more vehicles. Since the cloud server processes the vehicle information of each vehicle and the method for detecting the fuel level of each vehicle is the same, this embodiment only describes in detail how to detect the fuel level of one vehicle. Figure 1 As shown, the method includes:
[0079] S101: Acquire vehicle information fed back to the vehicle's driving recorder via the vehicle's CAN bus at multiple times.
[0080] In the embodiment of the present application, the vehicle information includes: vehicle identification, vehicle startup status, CAN bus status, and current fuel level.
[0081] Among them, the vehicle identification can be the vehicle equipment number, and the cloud server can determine the specific vehicle for oil level detection based on the vehicle identification; the vehicle startup status refers to the status of the vehicle's accessory power supply (Accessory, ACC). If the ACC status is empty, it means that the ACC status is abnormal. When the ACC status is not empty, it indicates that the vehicle accessory equipment can be started normally, including the two states of vehicle ignition switch starting and vehicle ignition switch not starting; when the ACC status is not empty, the CAN bus status includes two states: CAN bus normal and CAN bus abnormal; the current oil level refers to the oil level of the vehicle at the current moment detected by the mechanical sensor.
[0082] Specifically, the dashcam can be connected to the Internet via a built-in Subscriber Identity Module (SIM), wireless LAN technology (Wi-Fi), Bluetooth, cellular network (such as 4G or 5G), telematics box (TBox) or other wireless communication technologies to transmit vehicle information to a cloud server. There is no specific restriction on the specific wireless communication technology used by the dashcam.
[0083] S102: Determine whether the vehicle is in a normal ignition state according to the vehicle startup state and the CAN bus state.
[0084] Specifically, after the cloud server obtains the vehicle information, it can determine whether the vehicle is in a normal ignition state based on the vehicle startup status and CAN bus status, that is, whether the vehicle is in a normal ignition state based on whether the ACC status is empty and whether the CAN bus status is abnormal.
[0085] S103: When the vehicle is in a normal ignition state and the fuel level at the current moment is not empty, determine the fuel level difference between the fuel level at the current moment and the pre-recorded fuel level at the previous moment.
[0086] Specifically, if the cloud server determines that the ACC status is not null, the vehicle's ignition switch is on, and the CAN bus is normal, it can determine that the vehicle is in a normal ignition state. At this point, the cloud server can further determine whether the current fuel level collected by the vehicle's mechanical sensor is null. If the current fuel level is not null, the cloud server can further calculate the difference between the vehicle's current fuel level and the previously recorded fuel level at the previous moment.
[0087] S104: When the absolute value of the oil quantity difference is greater than a first oil quantity difference threshold, update the oil quantity change times, and determine whether the oil quantity change times is greater than or equal to the change times threshold.
[0088] Specifically, the fuel level change count indicates the number of times the fuel level has changed. If the absolute fuel level difference between two adjacent moments calculated by the cloud server is greater than a preset first fuel level difference threshold, the fuel level change count is incremented by 1. At this point, the cloud server can further determine whether the fuel level change count is greater than or equal to the preset change threshold.
[0089] S105: When the number of fuel level changes is greater than or equal to the change number threshold, the absolute value of the fuel level difference is greater than or equal to the second fuel level difference threshold, and the fuel level difference is less than 0, send a prompt message to the vehicle according to the vehicle identification.
[0090] Specifically, the prompt information indicates that the vehicle is experiencing abnormal fuel consumption, and the second fuel level difference threshold is greater than the first fuel level difference threshold. In other words, if the cloud server determines that the number of fuel level changes is greater than or equal to the preset change number threshold, the current fuel level is less than the previously recorded fuel level, and the absolute fuel level difference between the two times is greater than or equal to the preset second fuel level difference threshold, it can determine that the vehicle is experiencing abnormal fuel consumption, possibly due to a fuel tank leak or theft. The cloud server can then send a corresponding prompt information to the vehicle based on the obtained vehicle identification, reminding the driver to promptly check the vehicle's fuel tank.
[0091] This embodiment provides a fuel level detection method based on a driving recorder, which is applied to a cloud server, wherein the cloud server is communicatively connected to one or more vehicles. The method includes: obtaining vehicle information fed back to the driving recorder of the vehicle through a CAN bus of the vehicle at multiple times, the vehicle information including: vehicle identification, vehicle startup status, CAN bus status, and current fuel level; determining whether the vehicle is in a normal ignition state based on the vehicle startup status and CAN bus status; when the vehicle is in a normal ignition state and the current fuel level is not empty, determining the fuel level difference between the current fuel level and the pre-recorded fuel level at a previous time; when the absolute value of the fuel level difference is greater than a first fuel level difference threshold, updating the number of fuel level changes and determining whether the number of fuel level changes is greater than or equal to the number of changes threshold, the number of fuel level changes indicating the number of times the fuel level has changed; when the number of fuel level changes is greater than or equal to the number of changes threshold, the absolute value of the fuel level difference is greater than or equal to a second fuel level difference threshold, and the fuel level difference is less than 0, sending a prompt message to the vehicle based on the vehicle identification, the prompt message indicating that the vehicle has experienced abnormal fuel consumption, and the second fuel level difference threshold is greater than the first fuel level difference threshold.
[0092] The following technical effects are achieved: by utilizing vehicle information from a driving recorder, when it is determined that the vehicle is in a normal ignition state and the current fuel level is not empty, the difference between the vehicle's current fuel level and the pre-recorded fuel level of the vehicle at the previous moment is calculated. Thus, when the current fuel level is less than the pre-recorded fuel level at the previous moment, the absolute fuel level difference between the two moments is greater than or equal to a preset second fuel level difference threshold, and the number of fuel level changes is greater than or equal to a preset change number threshold, an indication message is generated indicating abnormal fuel consumption in the vehicle, and the message is sent to the corresponding vehicle based on the vehicle identification to remind the driver to promptly check the vehicle's fuel tank. Thus, when the fuel level in the vehicle's fuel tank changes dramatically, the accuracy of fuel level detection is improved by real-time calculation and analysis of the fuel level change in the vehicle's fuel tank, providing the driver with real-time and accurate fuel level information in a timely manner. Furthermore, when abnormal fuel consumption occurs, a prompt message is sent to the corresponding vehicle to remind the driver to promptly check the vehicle's fuel tank, avoiding potential driving hazards caused by persistent fuel tank leakage and thereby improving vehicle driving safety.
[0093] Figure 2 A schematic diagram of a fuel level detection method based on a driving recorder provided in an embodiment of the present application Figure 2 In one possible example, Figure 2 As shown, this embodiment Figure 1 Based on the embodiment, how to determine whether the vehicle is in a normal ignition state and other possible oil level detection results are described in detail. Figure 2 As shown, the method includes:
[0094] S201: Obtain vehicle information fed back to the vehicle's driving recorder by the vehicle's CAN bus at multiple times.
[0095] S201 is similar to S101 and will not be described in detail in this embodiment.
[0096] S202: When the vehicle startup state indicates that the vehicle is started and the CAN bus state indicates that the CAN bus is normal, determine that the vehicle is in a normal ignition state.
[0097] Specifically, the cloud server can determine that the vehicle is in a normal ignition state when the vehicle start status indicates that the vehicle is started, that is, the vehicle ignition switch is turned on, and the CAN bus status indicates that the CAN bus is also working normally.
[0098] S203: When the vehicle startup state does not indicate that the vehicle is started, and / or the CAN bus state does not indicate that the CAN bus is normal, it is determined that the vehicle is in an abnormal ignition state.
[0099] Specifically, if the cloud server determines that the vehicle ignition switch is not started and / or the CAN bus is abnormal, it can be determined that the vehicle is in an abnormal ignition state.
[0100] S204: When the vehicle is in a normal ignition state and the fuel level at the current moment is not empty, determine the fuel level difference between the fuel level at the current moment and the pre-recorded fuel level at the previous moment.
[0101] S205: When the absolute value of the oil quantity difference is greater than the first oil quantity difference threshold, update the oil quantity change times, and determine whether the oil quantity change times is greater than or equal to the change times threshold.
[0102] S206: When the number of fuel level changes is greater than or equal to the change number threshold, the absolute value of the fuel level difference is greater than or equal to the second fuel level difference threshold, and the fuel level difference is less than 0, send a prompt message to the vehicle according to the vehicle identification.
[0103] S204-S206 are similar to S103-S105 and are not described in detail in this embodiment.
[0104] S207: When the number of fuel level changes is greater than or equal to the change number threshold, the absolute value of the fuel level difference is greater than or equal to the second fuel level difference threshold, and the fuel level difference is greater than 0, determine that the vehicle is in a refueling state.
[0105] Specifically, if the cloud server determines that the number of fuel level changes is greater than or equal to a preset change number threshold, the current fuel level is greater than the previously recorded fuel level, and the absolute fuel level difference between the two times is greater than or equal to a preset second fuel level difference threshold, then the cloud server can determine that the vehicle is currently in the refueling state. The cloud server can then continue to monitor the vehicle's fuel level status.
[0106] Furthermore, after or before determining that the vehicle is in the refueling state, the method also includes: the cloud server can update the duration of continuous change in oil volume based on the time between the current moment and the previous moment, and when the duration of continuous change in oil volume is greater than or equal to the preset change duration threshold, record the vehicle's refueling data and send it to the corresponding vehicle, so that the driver can obtain accurate oil volume information of the vehicle in real time.
[0107] S208: When the fuel level difference is less than or equal to the first fuel level difference threshold, determine that the vehicle is in a normal driving state, and reset the number of fuel level change times and the duration of continuous fuel level change of the vehicle to 0.
[0108] Specifically, if the cloud server determines that the difference between the current fuel level and the previously recorded fuel level is less than or equal to a preset first fuel level difference threshold, it can deem the fuel level difference as a fluctuation in the vehicle's fuel level during normal driving, thereby confirming that the vehicle is currently in a normal driving state. Furthermore, the cloud server can reset the number of fuel level changes and the duration of continuous fuel level changes to 0, allowing them to recount these numbers if the fuel level in the vehicle's tank changes dramatically.
[0109] S209: When the vehicle is not in a normal ignition state and the fuel level is empty at the current moment, a detection failure message is sent to the vehicle according to the vehicle identification.
[0110] Specifically, the cloud server can generate a detection failure message when the vehicle startup status indicates that the vehicle's ACC status is empty, or the vehicle startup status indicates that the vehicle is not started, that is, the vehicle is in an abnormal ignition state such as the vehicle ignition switch is not started, and when the current fuel level obtained is empty, the cloud server can send the detection failure message to the vehicle according to the obtained vehicle identification.
[0111] S210: When the fuel level at the current moment is empty, the fuel level at the previous moment is used as the fuel level at the current moment.
[0112] Specifically, if the cloud server determines that the fuel level at the current moment collected by the vehicle through the mechanical sensor is a null value, the fuel level at the previous moment can be used as the fuel level of the vehicle at the current moment to facilitate comparison with the fuel level at the next moment.
[0113] An embodiment of the present application provides a fuel level detection method based on a driving recorder. When the number of fuel level changes is greater than or equal to a preset change number threshold, the current fuel level is greater than the previous fuel level, and the absolute fuel level difference between the two moments is greater than or equal to a second fuel level difference threshold, the cloud server can determine that the vehicle is in a refueling state at the current moment, thereby solving the problem of how to determine the refueling state of the vehicle; by updating the duration of continuous fuel level changes after or before determining that the vehicle is in a refueling state, recording the vehicle's refueling data, and sending it to the corresponding vehicle, the driver can obtain accurate fuel level information of the vehicle in real time; by regarding the fuel level difference as a fluctuation in the vehicle's fuel level data during normal driving when the fuel level difference is less than or equal to the first fuel level difference threshold, thereby determining that the vehicle is in a normal driving state, and resetting the number of fuel level changes and the duration of continuous fuel level changes to 0, so as to facilitate recounting the number of fuel level changes and the duration of continuous fuel level changes when the fuel level in the vehicle's fuel tank changes drastically.
[0114] In a possible embodiment, the vehicle information may also include road conditions and the speed of the vehicle. When the absolute value of the fuel quantity difference is greater than the first fuel quantity difference threshold, before updating the number of fuel quantity changes, the method also includes: the cloud server determines the corresponding first fuel quantity difference threshold from a preset mapping relationship based on the road conditions and speed, and determines the sum of the first fuel quantity difference threshold and the preset incremental value as the second fuel quantity difference threshold.
[0115] Specifically, in order to improve the accuracy of fuel level detection and facilitate accurate detection of situations when the fuel level in the vehicle's fuel tank changes drastically, the cloud server can establish preset mapping relationships corresponding to a variety of road conditions and speeds according to a variety of road conditions and speeds, so that during the fuel level detection process, according to the specific road conditions and speeds, the corresponding first fuel level difference threshold can be determined from the preset mapping relationship, and the sum of the first fuel level difference threshold and the preset incremental value can be used as the second fuel level difference threshold.
[0116] Furthermore, the process of determining the preset mapping relationship includes: the cloud server obtains a first fuel consumption corresponding to a unit distance traveled by the vehicle under different road conditions and / or at different speeds, and converts the first fuel consumption corresponding to a second fuel consumption corresponding to a unit time length, and determines a first fuel difference threshold corresponding to the road condition and speed based on the product of the vehicle's fuel detection cycle and the second fuel consumption.
[0117] Specifically, the first fuel level difference threshold may be greater than or equal to the product of the fuel level detection period of the vehicle and the second fuel consumption.
[0118] An embodiment of the present application provides a fuel level detection method based on a driving recorder. For the same vehicle, by making it correspond to different first fuel level difference thresholds and second fuel level difference thresholds when driving under different road conditions and at different speeds, the accuracy of fuel level detection is further improved, thereby facilitating the accurate detection of situations when the fuel level in the vehicle's fuel tank changes dramatically.
[0119] In an embodiment of the present invention, the electronic device or main control device can be divided into functional modules according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present invention is schematic and is only a logical functional division. In actual implementation, there may be other division methods.
[0120] Figure 3 This is a schematic diagram of the structure of a fuel level detection device based on a driving recorder provided in an embodiment of the present application. The device is applied to a cloud server, which is connected to one or more vehicles for communication. Figure 3As shown, the device includes: an acquisition module 310; an ignition detection module 320; a difference calculation module 330; a number update module 340; and an oil quantity abnormality module 350;
[0121] The acquisition module 310 is used to obtain vehicle information fed back to the vehicle driving recorder by the vehicle's CAN bus at multiple times, the vehicle information including: vehicle identification, vehicle startup status, CAN bus status, and current fuel level;
[0122] An ignition detection module 320 is used to determine whether the vehicle is in a normal ignition state based on the vehicle startup state and the CAN bus state;
[0123] The difference calculation module 330 is used to determine the fuel level difference between the current fuel level and the pre-recorded fuel level at the previous moment when the vehicle is in a normal ignition state and the fuel level at the current moment is not empty;
[0124] a times updating module 340 for updating the number of oil level changes when the absolute value of the oil level difference is greater than a first oil level difference threshold, and determining whether the number of oil level changes is greater than or equal to the change times threshold, the oil level change times indicating the number of moments at which the oil level changes;
[0125] The fuel quantity abnormality module 350 is used to send a prompt message to the vehicle according to the vehicle identification when the number of fuel quantity changes is greater than or equal to the change number threshold, the absolute value of the fuel quantity difference is greater than or equal to the second fuel quantity difference threshold, and the fuel quantity difference is less than 0. The prompt message indicates that the vehicle has abnormal fuel consumption and the second fuel quantity difference threshold is greater than the first fuel quantity difference threshold.
[0126] In one possible design, the ignition detection module 320 includes: a normal ignition module and an abnormal ignition module;
[0127] a normal ignition module, for determining that the vehicle is in a normal ignition state when the vehicle start state indicates that the vehicle is started and the CAN bus state indicates that the CAN bus is normal;
[0128] The abnormal ignition module is used to determine that the vehicle is in an abnormal ignition state when the vehicle startup state does not indicate that the vehicle is started and / or the CAN bus state does not indicate that the CAN bus is normal.
[0129] In one possible design, the device further includes: a refueling status detection module;
[0130] The refueling status detection module is used to determine that the vehicle is in a refueling state when the number of fuel level changes is greater than or equal to the change number threshold, the absolute value of the fuel level difference is greater than or equal to the second fuel level difference threshold, and the fuel level difference is greater than 0.
[0131] In one possible design, the device further includes: an oil quantity updating module;
[0132] The fuel level update module is used to update the duration of continuous fuel level changes based on the time between the current moment and the previous moment, and record the vehicle's refueling data when the duration of continuous fuel level changes is greater than or equal to the change duration threshold.
[0133] In one possible design, the device further includes: a normal driving detection module;
[0134] The normal driving detection module is used to determine that the vehicle is in a normal driving state when the fuel level difference is less than or equal to a first fuel level difference threshold, and reset the number of fuel level change times and the duration of continuous fuel level change of the vehicle to 0.
[0135] In one possible design, the device further includes: a failure detection module and an oil replacement module;
[0136] A detection failure module is used to send a detection failure message to the vehicle according to the vehicle identification when the vehicle is not in a normal ignition state and the fuel level is empty at the current moment;
[0137] The oil volume replacement module is used to use the oil volume at the previous moment as the current moment's oil volume when the current moment's oil volume is empty.
[0138] In one possible design, the vehicle information includes road conditions and speed, and the device further includes: a mapping module and a summing module;
[0139] A mapping relationship module, configured to determine a corresponding first fuel quantity difference threshold from a preset mapping relationship according to road conditions and speed;
[0140] The summing module is configured to determine the sum of the first fuel quantity difference threshold and the preset increment value as the second fuel quantity difference threshold.
[0141] In one possible design, the device further includes: a first fuel consumption module and a second fuel consumption module;
[0142] A first fuel consumption module is used to obtain a first fuel consumption corresponding to a unit distance traveled by a vehicle under different road conditions and / or at different speeds;
[0143] The second fuel consumption module is used to convert the first fuel consumption into a second fuel consumption corresponding to a unit time, and determine a first fuel difference threshold corresponding to the road condition and speed according to the product of the vehicle's fuel detection cycle and the second fuel consumption.
[0144] The present embodiment provides an oil level detection device based on a driving recorder, which can execute the oil level detection method based on a driving recorder of the above embodiment. The implementation principle and technical effects thereof are similar, and are not described in detail in this embodiment.
[0145] In the specific implementation of the aforementioned oil level detection device based on a driving recorder, each module can be implemented as a processor, and the processor can execute computer execution instructions stored in the memory, so that the processor executes the aforementioned oil level detection method based on a driving recorder.
[0146] Figure 4 This is a schematic diagram of the structure of the electronic device provided in the embodiment of the present application. Figure 4 As shown, the electronic device includes: at least one processor 410 and a memory 420. The electronic device also includes a communication component 430. The processor 410, the memory 420 and the communication component 430 are connected via a bus 440.
[0147] In a specific implementation process, at least one processor 410 executes the computer execution instructions stored in the memory 420, so that at least one processor 410 executes the oil level detection method based on the driving recorder as executed by the electronic device side above.
[0148] The specific implementation process of the processor 410 can be found in the above method embodiment. Its implementation principle and technical effects are similar and will not be repeated here in this embodiment.
[0149] In the above embodiments, it should be understood that the processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASICs), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the present invention may be directly executed by a hardware processor or by a combination of hardware and software modules within the processor.
[0150] The memory may include a high-speed RAM memory, and may also include a non-volatile storage NVM, such as at least one disk storage.
[0151] A bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. Buses can be categorized as address buses, data buses, and control buses. For ease of illustration, the buses in the drawings of this application are not limited to just one bus or just one type of bus.
[0152] The above-mentioned functions implemented by the electronic device and the main control device have introduced the solutions provided by the embodiments of the present invention. It can be understood that in order to implement the above-mentioned functions, the electronic device or the main control device includes hardware structures and / or software modules corresponding to the execution of each function. In combination with the units and algorithm steps of the various examples described in the embodiments disclosed in the embodiments of the present invention, the embodiments of the present invention can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the technical solution of the embodiments of the present invention.
[0153] The present application also provides a computer-readable storage medium, which stores computer-executable instructions. When a processor executes the computer-executable instructions, it is used to implement the above-mentioned oil level detection method based on a driving recorder.
[0154] The readable storage medium may be implemented by any type of volatile or non-volatile memory device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The readable storage medium may be any available medium that can be accessed by a general-purpose or special-purpose computer.
[0155] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be an integral part of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the readable storage medium can also exist as discrete components in an electronic device or a main control device.
[0156] The present application also provides a computer program product, which includes a computer program. The computer program is stored in a readable storage medium. At least one processor of an electronic device can read the computer program from the readable storage medium. At least one processor executes the computer program so that the electronic device executes the solution provided by the above embodiment.
[0157] Those skilled in the art will appreciate that all or part of the steps in the above-described method embodiments can be implemented using hardware associated with program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.
[0158] So far, the technical solution of the present application has been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the scope of protection of the present application is obviously not limited to these specific embodiments. The above embodiments are only used to illustrate the technical solution of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, ordinary technicians in this field should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some or all of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solution to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for detecting oil level based on a driving recorder, characterized in that: Applied to a cloud server, the cloud server being communicatively connected to one or more vehicles, the method comprises: Acquire vehicle information fed back to the vehicle driving recorder by the CAN bus of the vehicle at multiple times, the vehicle information including: vehicle identification, vehicle startup status, CAN bus status, and current fuel volume; Determining whether the vehicle is in a normal ignition state according to the vehicle startup state and the CAN bus state; When the vehicle is in a normal ignition state and the fuel volume at the current moment is not empty, determining the fuel volume difference between the fuel volume at the current moment and the pre-recorded fuel volume at the previous moment; When the absolute value of the oil quantity difference is greater than a first oil quantity difference threshold, updating the oil quantity change times, and determining whether the oil quantity change times is greater than or equal to the change times threshold, the oil quantity change times indicating the number of moments when the oil quantity changes; When the number of oil level changes is greater than or equal to the change number threshold, and the absolute value of the oil level difference is greater than or equal to the second oil level difference threshold, and the oil level difference is less than 0, a prompt message is sent to the vehicle according to the vehicle identification, and the prompt message indicates that the vehicle has abnormal oil consumption, and the second oil level difference threshold is greater than the first oil level difference threshold.
2. The method according to claim 1, characterized in that: The determining whether the vehicle is in a normal ignition state according to the vehicle startup state and the CAN bus state includes: When the vehicle startup state indicates that the vehicle is started and the CAN bus state indicates that the CAN bus is normal, determining that the vehicle is in a normal ignition state; When the vehicle startup state does not indicate that the vehicle is started, and / or the CAN bus state does not indicate that the CAN bus is normal, it is determined that the vehicle is in an abnormal ignition state.
3. The method according to claim 1, characterized in that Also includes: When the number of oil quantity changes is greater than or equal to the change number threshold, and the absolute value of the oil quantity difference is greater than or equal to a second oil quantity difference threshold, and the oil quantity difference is greater than 0, it is determined that the vehicle is in a refueling state.
4. The method according to claim 3, characterized in that After or before determining that the vehicle is in a refueling state, the method further includes: The duration of continuous change of the oil quantity is updated according to the duration between the current moment and the previous moment, and the refueling data of the vehicle is recorded when the duration of continuous change of the oil quantity is greater than or equal to a change duration threshold.
5. The method according to claim 4, characterized in that Also includes: When the oil quantity difference is less than or equal to the first oil quantity difference threshold, it is determined that the vehicle is in a normal driving state, and the number of oil quantity change times and the duration of continuous oil quantity change of the vehicle are reset to 0.
6. The method according to any one of claims 1 to 4, characterized in that Also includes: When the vehicle is not in a normal ignition state and the fuel level at the current moment is empty, sending a detection failure message to the vehicle according to the vehicle identification; When the oil level at the current moment is empty, the oil level at the previous moment is used as the oil level at the current moment.
7. The method according to any one of claims 1 to 4, characterized in that The vehicle information includes road conditions and speed. When the absolute value of the fuel quantity difference is greater than the first fuel quantity difference threshold, before updating the fuel quantity change times, the method further includes: According to the road condition and speed, determining the corresponding first fuel quantity difference threshold from a preset mapping relationship; The sum of the first oil level difference threshold and a preset increment value is determined as the second oil level difference threshold.
8. The method according to claim 7, characterized in that The process of determining the mapping relationship includes: Obtaining a first fuel consumption corresponding to a unit distance traveled by the vehicle under different road conditions and / or at different speeds; The first fuel consumption is converted into a second fuel consumption corresponding to a unit time, and the first fuel difference threshold corresponding to the road condition and the speed is determined according to the product of the fuel detection cycle of the vehicle and the second fuel consumption.
9. An oil level detection device based on a driving recorder, characterized in that: Applied to a cloud server, the cloud server is communicatively connected to one or more vehicles, the device comprises: An acquisition module, used for acquiring vehicle information fed back to the vehicle driving recorder by the CAN bus of the vehicle at multiple times, wherein the vehicle information includes: vehicle identification, vehicle startup status, CAN bus status, and current fuel volume; An ignition detection module, used to determine whether the vehicle is in a normal ignition state according to the vehicle startup state and the CAN bus state; A difference calculation module, used for determining the difference between the fuel volume at the current moment and the fuel volume at the previous moment recorded in advance, when the vehicle is in a normal ignition state and the fuel volume at the current moment is not empty; A times updating module, used for updating the times of oil quantity changes when the absolute value of the oil quantity difference is greater than a first oil quantity difference threshold, and determining whether the times of oil quantity changes is greater than or equal to the times threshold, the times of oil quantity changes indicating the number of moments when the oil quantity changes; The fuel quantity abnormality module is used to send a prompt message to the vehicle according to the vehicle identification when the number of fuel quantity changes is greater than or equal to the change number threshold, the absolute value of the fuel quantity difference is greater than or equal to the second fuel quantity difference threshold, and the fuel quantity difference is less than 0, the prompt message indicates that the vehicle has abnormal fuel consumption, and the second fuel quantity difference threshold is greater than the first fuel quantity difference threshold.
10. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the oil level detection method based on the driving recorder as described in any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the oil level detection method based on a driving recorder as described in any one of claims 1 to 8.
12. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the oil level detection method based on a driving recorder as described in any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Anti-theft fuel oil control method and anti-theft fuel oil control system
CN105196964A
Control method of automatic range hood and automatic range hood
CN113465002A
Method and device for determining displayed oil quantity, electronic equipment and medium
CN114973448A
Vehicle fuel quantity abnormity early warning method and device, computer equipment and storage medium
CN118351667A