Range-extending type automobile oil level processing method, device and equipment and range-extending type automobile
By reading the oil level sensor signal in extended-range cars and performing slope correction and filtering, the problem of unstable oil level signal is solved, and more accurate and reliable fuel information display is achieved.
Patent Information
- Application Number
- CN202411974821.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-04-01
AI Technical Summary
Extended range cars have unstable fuel level signals under different working conditions, resulting in inaccurate calculation of residual fuel mileage, which leads to misleading the driver.
By reading the original oil level signal of the oil level sensor, and slope correction and filtering are performed according to the vehicle's slope state, range extender operating state and vehicle speed, the accuracy and stability of the oil level signal are ensured.
It effectively compensates for oil level deviation caused by ramp tilt, reduces the error in oil level display, ensures that the driver has a consistent oil level display experience under different terrain conditions, and improves the accuracy and reliability of fuel information.
Smart Images

Figure CN119738017A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of automobile fuel management and signal processing, and in particular to an oil level processing method for an extended-range automobile. Background Art
[0002] In extended-range vehicles, the accuracy of calculating the remaining fuel mileage is crucial to the driver's driving experience. The remaining mileage is usually estimated based on the current fuel level in the fuel tank. The driver uses the remaining mileage information to determine whether to refuel or plan mileage.
[0003] Traditional fuel management systems usually use a method of directly reading the fuel level sensor signal, which can provide relatively accurate fuel level information on flat roads and in a stationary state, but are prone to fuel level reading deviations when the vehicle is driving or parked on a slope. The fluctuation of the fuel level signal directly affects the calculation of the remaining fuel mileage, causing the displayed remaining mileage value to change frequently. Especially when the fuel level is low, this fluctuation can greatly mislead the driver and confuse him or her about whether to refuel.
[0004] To this end, those skilled in the art provide a method for handling the oil level of an extended-range vehicle to solve the problems raised in the above-mentioned background technology. Summary of the invention
[0005] In view of the deficiencies in the prior art, the present invention provides a method for processing the oil level of an extended-range vehicle, which solves the problem of unstable and inaccurate oil level signals of the extended-range vehicle under different operating conditions.
[0006] To achieve the above objectives, the present invention is implemented through the following technical solutions: a method for processing the oil level of an extended-range vehicle, comprising the following steps:
[0007] S1. After the vehicle is powered on, read the original oil level signal of the oil level sensor;
[0008] S2, selecting the oil level initialization method according to the slope state;
[0009] S3. During the use of the vehicle, the oil level signal is processed according to the operating state of the range extender, the speed and slope of the vehicle;
[0010] Among them, when the vehicle is started and the vehicle is parked on a slope, the vehicle speed is zero, and the range extender is in operation, the original oil level signal is first slope corrected to obtain the slope oil level, and then the slope oil level is filtered to obtain an updated oil level signal.
[0011] Preferably, when the vehicle is powered off, the current oil level signal is stored in the EEPROM, and the initialization step in S2 includes:
[0012] S21, reading the original oil level signal of the oil level sensor;
[0013] S22, outputting an oil level signal after determining the vehicle slope state;
[0014] The slope determination step S22 includes:
[0015] When the slope does not exceed the set threshold, the original oil level signal is used as the oil level output signal;
[0016] When the slope exceeds the set threshold, the oil level signal stored in the EEPROM is used as the initialized oil level output signal.
[0017] Preferably, the oil level processing step in S3 includes:
[0018] S31, first determine the operating status of the range extender;
[0019] S32: Outputting the oil level signal after determining the vehicle operation status.
[0020] Preferably, in said S32, when it is determined that the range extender is in operation and stopped on a slope, a slope correction is performed;
[0021] The calculation formula of the oil level signal after the slope correction is:
[0022] FuelLevel corrected =FuelLevel Raw +Δs l op
[0023] Among them, Δs l op is the slope correction value, FuelLevel corrected Indicates the corrected oil level signal, FuelLevel Raw is the original oil level signal read;
[0024] The slope correction value Δs l op is calculated by using the lateral acceleration Di rX and the longitudinal acceleration Di rY.
[0025] Preferably, in S32, when it is determined that the range extender is in operation and the vehicle is traveling, the original oil level signal is filtered.
[0026] Preferably, in said S32, when the range extender stops and the vehicle is in a refueling state, the original oil level signal is used as the oil level output signal;
[0027] When the range extender stops and the vehicle is not in the refueling state, the oil level output signal remains unchanged.
[0028] Preferably, in S32, when it is determined that the range extender is in operation and the vehicle is parked on flat ground, the original oil level signal of the oil level sensor is filtered.
[0029] A vehicle oil level judgment system is used for a range-extended vehicle oil level processing method, comprising:
[0030] The oil level acquisition module is used to read the original oil level signal of the oil level sensor and provide basic oil level data input for the system;
[0031] A slope judgment module is used to detect the current slope state of the vehicle;
[0032] A range extender status monitoring module, used to detect the operating status of the range extender;
[0033] The vehicle speed monitoring module is used to monitor the vehicle speed information and determine whether the vehicle is in a driving state or a stationary state;
[0034] The oil level processing module is used to process the original oil level signal according to the vehicle's slope, range extender status and vehicle speed;
[0035] A filter module, used for filtering the oil level signal;
[0036] The storage module is used to store the current oil level signal when the vehicle is powered off and save it to the EEPROM so that the oil level can be read and initialized when the vehicle is powered on next time;
[0037] Output module to transmit processed fuel level signal to vehicle instrument panel or fuel management system.
[0038] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor executes a method for processing the oil level of an extended-range vehicle.
[0039] A range-extended vehicle comprises a computer device, and the vehicle completes oil level calculation through the computer device.
[0040] The present invention provides a method for handling the oil level of an extended-range vehicle. It has the following beneficial effects:
[0041] 1. When the vehicle is started and it is detected that the vehicle is parked on a slope, the vehicle speed is zero and the range extender is in operation, the system first performs slope correction on the original oil level signal collected by the oil level sensor to compensate for the oil level deviation caused by the slope inclination, and then filters the corrected oil level signal to make the oil level signal more stable, avoid oil level display errors caused by parking on a slope, ensure accurate fuel information for the driver at startup, and help the driver obtain a consistent oil level display experience under different terrain conditions.
[0042] 2. The present invention designs an effective slope correction method by analyzing the lateral and longitudinal acceleration data of the vehicle, which can compensate for the change in the fuel level when the vehicle is parked on a slope, making the oil level signal closer to the actual fuel amount, reducing the oil level error caused by the slope, and avoiding the driver's misjudgment due to inaccurate oil level when parking on a slope. At the same time, the correction method is applicable to various types of extended-range vehicles, which improves the universality and applicability of the system.
[0043] 3. The present invention designs corresponding oil level processing logic under different working conditions such as the operating state of the range extender, the driving or stationary state of the vehicle, and on slopes and flat ground. By combining the vehicle speed and range extender status information, the system can intelligently select filtering or correction processing under different working conditions to ensure that the oil level is kept stable when the range extender stops, smooth oil level fluctuations during driving, and simplify processing when stationary on flat ground, thereby improving the adaptability and reliability of the oil level signal and providing the driver with a more accurate fuel display. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 It is a schematic diagram of the steps of the present invention;
[0045] Figure 2 Schematic diagram of system control logic of the present invention. DETAILED DESCRIPTION
[0046] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0047] Embodiment 1:
[0048] Reference Figure 1-Figure 2 In a first embodiment of the present invention, the present invention provides a method for processing the oil level of an extended-range vehicle, comprising the following steps:
[0049] S1. After the vehicle is powered on, read the original oil level signal of the oil level sensor;
[0050] Specifically, when the vehicle is started (powered on), the system first reads the current oil level signal FuelLevel_Raw from the oil level sensor, which is the basic data for subsequent oil level processing.
[0051] This signal directly reflects the fuel level in the tank, but may be affected by factors such as vehicle position, slope and fuel sloshing, so it is only a preliminary input.
[0052] The raw fuel level signal is the most direct fuel height information, but it may not be accurate enough without correction or filtering. Direct use of this signal will cause the fuel level display to be unstable. As the first step in fuel level signal processing, this signal provides basic data input for subsequent processing (slope correction and filtering).
[0053] S2, selecting the oil level initialization method according to the slope state;
[0054] The initialization steps include:
[0055] S21, reading the original oil level signal of the oil level sensor;
[0056] S22, outputting an oil level signal after determining the vehicle slope state;
[0057] Step S22 slope determination includes:
[0058] When the slope does not exceed the set threshold, the original oil level signal is used as the oil level output signal;
[0059] When the slope exceeds the set threshold, the oil level signal stored in the EEPROM is used as the initialized oil level output signal.
[0060] Specifically, the initialization steps include:
[0061] S21. After the vehicle is powered on, the system first collects the original oil level signal of the current fuel tank through the oil level sensor. This signal is a direct reflection of the fuel level in the fuel tank and serves as the basic data for oil level initialization. The system will periodically read the sensor data to ensure that the original oil level signal obtained is true and valid, providing data support for subsequent initialization and processing.
[0062] S22, the system determines the current slope state of the vehicle in real time through the vehicle attitude sensor or acceleration sensor. The specific determination includes:
[0063] If it is detected that the vehicle slope does not exceed the set safety threshold, the system determines that the vehicle is on flat ground or slightly inclined. At this time, the original oil level signal of the oil level sensor is directly displayed as the oil level output signal;
[0064] If it is detected that the vehicle slope exceeds the set threshold, the system determines that the vehicle is in a slope state. To avoid oil level reading deviation caused by vehicle tilt, the system chooses to use the oil level signal stored in the EEPROM when the vehicle was last powered off as the current initialization oil level signal.
[0065] Through the above judgment, the system effectively avoids the erroneous readings of the oil level sensor caused by the tilt of the fuel level when the vehicle is on a slope, ensures the consistency and reliability of the oil level display, prevents the driver from seeing oil level information that is inconsistent with the actual situation on the slope, and reduces the risk of misjudgment.
[0066] In addition, the system can automatically switch the oil level initialization logic according to different slope conditions, which not only reduces unnecessary oil level errors, but also ensures the efficiency of the initialization process and adapts to the needs of complex parking environments.
[0067] When the system detects the vehicle power-off signal, it will automatically store the current oil level output signal in the EEPROM. This storage mechanism ensures that the vehicle can read a stable and reliable oil level signal as the initial value when it is powered on next time, especially in special working conditions such as parking on a slope, to avoid the problem of oil level display jumping or discontinuity due to different vehicle positions.
[0068] Through EEPROM data storage, the system can achieve persistent storage of oil level information, ensuring a stable oil level display for the driver at the next start, effectively improving user experience and system accuracy. In addition, the stored data also provides necessary reference for subsequent fault diagnosis and system calibration.
[0069] S3. During the use of the vehicle, the oil level signal is processed according to the operating state of the range extender, the speed and slope of the vehicle;
[0070] Among them, when the vehicle is started and the vehicle is parked on a slope, the vehicle speed is zero, and the range extender is in operation, the original oil level signal is firstly slope-corrected to obtain the slope oil level, and then the slope oil level is filtered. In S32, when it is determined that the range extender is in operation and parked on a slope, slope correction is performed;
[0071] The calculation formula of the oil level signal after slope correction is:
[0072] FuelLevel corrected =FuelLevel Raw +Δs l op
[0073] Among them, Δs l op is the slope correction value, FuelLevel corrected Indicates the corrected oil level signal, FuelLevel Raw is the original oil level signal read;
[0074] The slope correction value Δs l op is calculated from the lateral acceleration Di rX and the longitudinal acceleration Di rY.
[0075] When it is determined that the range extender is in operation and the vehicle is driving, the original oil level signal will be filtered.
[0076] When the range extender stops and the vehicle is in a refueling state, the original oil level signal is used as the oil level output signal; when the range extender stops and the vehicle is not in a refueling state, the oil level output signal remains unchanged.
[0077] When it is determined that the range extender is in operation and the vehicle is parked on flat ground, the original oil level signal of the oil level sensor is filtered.
[0078] Specifically, for different vehicle states, when the vehicle is started and the vehicle is parked on a slope, the vehicle speed is zero, and the range extender is in operation: the system first reads the original oil level signal of the oil level sensor
[0079] FuelLevel Raw , and make slope corrections based on the vehicle’s current slope status.
[0080] Method for obtaining the slope correction value (sl op): The system determines the comprehensive inclination angle of the current vehicle through the lateral acceleration Di rX and longitudinal acceleration Di rY collected by the vehicle attitude sensor. According to the size of the comprehensive inclination angle, the system searches for the corresponding slope correction value sl op in the preset slope correction curve table.
[0081] Curve lookup mechanism:
[0082] The slope correction curve table is pre-calibrated based on the fuel level deviation data of the vehicle at different slopes and stored in the system memory or EEPROM. The corresponding correction value sl op is found in the curve table by the comprehensive inclination value to ensure that the fuel level reading under the slope state matches the actual fuel level. The slope correction value sl op obtained by looking up the table is consistent with the original fuel level signal FuelLevel Raw Make corrections to get the corrected slope fuel level signal FuelLevel corrected In order to further eliminate the instantaneous fluctuations that may be introduced during the correction process, the corrected slope oil level signal is filtered and finally a smooth oil level signal Fuel Level is output.
[0083] When the range extender is in operation and the vehicle is moving: the system identifies the vehicle's driving state and confirms that the vehicle is moving through the vehicle speed signal. To eliminate the impact of fuel level fluctuations during driving, the system generates a signal for the original fuel level signal FuelLevel Raw After filtering, a smooth oil level signal is output, which effectively reduces the instantaneous fluctuation caused by oil shaking and ensures that the oil level display is stable and reliable.
[0084] When the range extender stops and the vehicle is in the refueling state: the system determines that the vehicle is in the refueling process, and the original fuel level signal FuelLevel is read at this time Raw It directly serves as the oil level output signal Fuel Level, ensuring that the oil level display is updated synchronously with the refueling progress, making it easy for the driver to understand the refueling situation in real time.
[0085] When the range extender is stopped and the vehicle is not being refueled:
[0086] Under this condition, the system stops updating the oil level signal and keeps the last oil level output signal unchanged.
[0087] FuelLevel old This design effectively prevents abnormal fluctuations in the oil level display when the vehicle changes slope or shakes slightly, and ensures the stability of the oil level signal under static conditions.
[0088] When the range extender is in operation and the vehicle is parked on flat ground: the system recognizes that the vehicle is stationary on flat ground. At this time, no slope correction is required and the original fuel level signal FuelLevel is directly corrected. Raw After filtering, a stable oil level signal (Fuel Level) is output.
[0089] Under different vehicle operating conditions, the system effectively solves the oil level display problem during parking on a slope, bumpy driving and refueling by combining slope correction, filtering and state judgment. In particular, by obtaining the slope correction value through table lookup, the system avoids complex real-time calculations, improves response speed and processing efficiency, and ensures accurate and stable oil level information under various working conditions.
[0090] Embodiment 2:
[0091] In a second embodiment of the present invention, the present invention provides a vehicle oil level determination system, comprising:
[0092] The oil level acquisition module is used to read the original oil level signal of the oil level sensor and provide basic oil level data input for the system;
[0093] Specifically, the oil level acquisition module is the basic input module of the entire system, responsible for reading the original oil level signal FuelLevel provided by the oil level sensor Raw . This signal directly reflects the height of the fuel level in the fuel tank, but it will be affected by factors such as vehicle posture (such as slope and driving status) and fuel sloshing. The oil level acquisition module periodically collects sensor signals and transmits the signal as basic oil level data to the oil level processing module. Since the oil level signal has not been corrected and filtered, direct use may cause unstable oil level display. Therefore, the signal of the acquisition module needs to be processed by subsequent modules to eliminate errors and fluctuations. The oil level acquisition module not only needs to maintain stable communication with the oil level sensor, but also needs to keep synchronized with the subsequent oil level processing module to ensure real-time data update and provide a data basis for the accuracy of the system.
[0094] A slope judgment module is used to detect the current slope state of the vehicle;
[0095] Specifically, when the synthetic acceleration exceeds the set threshold, the vehicle is judged to be on a slope; otherwise, the vehicle is considered to be parked on flat ground. The slope judgment module transmits the slope status information to the oil level processing module, guiding it to select different oil level signal processing methods to ensure that the oil level signal is corrected when on a slope. The slope judgment module and the oil level acquisition module work closely together to provide the necessary status basis for subsequent oil level correction and filtering processing, ensuring the stability of the fuel display under slope conditions.
[0096] A range extender status monitoring module, used to detect the operating status of the range extender;
[0097] Specifically, the main function of the range extender status monitoring module is to detect the operating status of the range extender, determine whether it is in working condition, and pass the information to the oil level processing module. This module detects the start signal of the range extender and identifies the open and closed status of the range extender in real time. When the range extender is in a stopped state, the system will avoid updating the oil level signal to prevent unnecessary oil level fluctuations from interfering with the accuracy of the remaining fuel display; when the range extender is in operation, the system enters the real-time processing mode and dynamically processes the oil level signal. The range extender status monitoring module works together with the vehicle speed monitoring module and the slope judgment module to provide the oil level processing module with the overall operating status information of the vehicle, so that it can select the appropriate oil level signal processing method under different conditions.
[0098] The vehicle speed monitoring module is used to monitor the vehicle speed information and determine whether the vehicle is in a driving state or a stationary state;
[0099] Specifically, the vehicle speed monitoring module is used to monitor the vehicle speed information in real time to determine whether the vehicle is in driving or stationary state. The module obtains the current speed value of the vehicle by reading the data signal of the vehicle speed sensor, and transmits the information to the oil level processing module. The output of the vehicle speed monitoring module determines whether the oil level signal needs to be filtered. For example, when the vehicle is in driving state, the system will filter the oil level signal to reduce the fluctuation caused by fuel sloshing during driving; when the vehicle is stationary, the system will select the appropriate processing method based on the location of the vehicle (ramp or flat ground). The vehicle speed monitoring module cooperates with the range extender status monitoring module and the slope judgment module, so that the oil level processing module can comprehensively consider the vehicle speed, range extender status and slope information, and process the oil level signal more finely.
[0100] The oil level processing module is used to process the original oil level signal according to the vehicle's slope, range extender status and vehicle speed;
[0101] Specifically, the oil level processing module is the core processing module of the entire system. It is responsible for processing the original oil level signal in different ways according to the vehicle's slope status, range extender operating status and vehicle speed information to ensure the accuracy and stability of the oil level signal. According to the slope information transmitted by the slope judgment module, the oil level processing module performs slope correction on the oil level signal under the ramp state and calculates the corrected oil level signal. According to the status information transmitted by the vehicle speed monitoring module and the range extender status monitoring module, the oil level processing module determines whether filtering is required to reduce oil level fluctuations, and finally generates a stable oil level output signal Fuel Level. The oil level processing module receives status information from each module, intelligently judges and selects the appropriate oil level processing strategy, so that the fuel display can maintain high accuracy and stability under different working conditions.
[0102] A filter module, used for filtering the oil level signal;
[0103] Specifically, the filter module is used to smooth the oil level signal and reduce the impact of fuel level fluctuations on the oil level signal. The filter module uses a low-pass filter or an exponentially weighted filter algorithm to smooth the oil level signal in the driving state and a specific static state. According to the instructions of the oil level processing module, the filter module adjusts the filter parameters in real time, such as increasing or decreasing the filter coefficient, to meet the needs of different vehicle states. During driving, the filter module performs a low-pass filter on the signal to prevent frequent fluctuations caused by fuel sloshing; after the slope correction, the filter module smoothes the corrected signal again to ensure the stability of the final oil level output. The filter module works closely with the oil level processing module and the oil level acquisition module to ensure that the oil level signal remains consistent and stable after processing.
[0104] The storage module is used to store the current oil level signal when the vehicle is powered off and save it to the EEPROM so that the oil level can be read and initialized when the vehicle is powered on next time;
[0105] Specifically, the storage module saves the current oil level signal to the EEPROM when the vehicle is powered off to ensure that the oil level initialization at the next power-on can be based on stable historical data. The storage module periodically receives the current oil level signal from the oil level processing module, and stores the data in the EEPROM when triggered by a signal that the vehicle is about to power off. The stored oil level signal can be used as an initial reference signal when the vehicle is powered on again, especially when the vehicle is parked on a slope, to avoid errors caused by directly using the oil level reading in an inclined state. The function of the storage module ensures the retention and reuse of the oil level data when the system is shut down, and cooperates with the slope judgment module and the oil level processing module to ensure that the oil level initialization after power-on is accurate and reliable.
[0106] Output module to transmit processed fuel level signal to vehicle instrument panel or fuel management system.
[0107] Specifically, the output module is used to transmit the final processed fuel level signal Fuel Level to the vehicle dashboard or fuel management system so that the driver can view the fuel level information in real time. The output module is directly connected to the fuel level processing module, obtains the processed fuel level signal in real time, and converts it into a signal form recognizable by the vehicle instrument system, driving the dashboard to display the current remaining fuel information. The output module can also transmit the processed fuel level signal to the fuel management system so that the remaining mileage estimate can be updated in real time according to the fuel level changes during driving. As the final output unit of the system, the output module ensures that all processed fuel level information can be fed back to the driver in a timely and accurate manner, which is an important part of achieving transparency of fuel information.
[0108] Summary: The original oil level signal acquired by the oil level acquisition module provides basic data input for the entire system. The slope judgment module and the speed monitoring module provide status information based on the actual state of the vehicle (ramp, speed, etc.), and transmit it to the oil level processing module in combination with the range extender operating status of the range extender status monitoring module. The oil level processing module dynamically adjusts the oil level processing method based on these inputs, and calls the slope correction and filtering modules when necessary to ensure the accuracy and stability of the output signal. The filtering module further smoothes the oil level signal to reduce the impact of short-term fluctuations. Finally, the storage module saves the current oil level signal when the power is off for use when it is powered on next time, and the output module transmits the processed oil level signal to the instrument panel and the fuel management system so that the driver can grasp the fuel information in real time. Through the close cooperation of various modules, the present invention can effectively solve the problem of unstable oil level display of the vehicle under different operating conditions, and provide the driver with more accurate and reliable fuel information.
[0109] When the system detects that the vehicle is on a slope, the speed is zero and the range extender is running, it first determines the slope. The slope determination module determines the vehicle's tilt state by analyzing the vehicle's lateral and longitudinal accelerations, and then calculates the slope correction value. The slope correction value is used to compensate for the oil level deviation caused by the vehicle's tilt. By performing a slope correction on the original oil level signal, the system obtains a corrected oil level signal that is closer to the actual fuel level. After the slope correction is completed, the system then filters the corrected oil level signal to eliminate small fluctuations and make the oil level signal more stable. This slope parking processing mechanism ensures that the oil level information provided at startup is not affected by the tilt angle, especially avoiding errors in the oil level display when parking on a slope.
[0110] In addition, the present invention also designs a variety of oil level processing schemes for the vehicle's driving and stationary states. When the vehicle is in motion, since the fuel will fluctuate with the shaking of the vehicle, the system filters the oil level signal to smooth the instantaneous changes in the oil level, reduce the oil level fluctuations during driving, and avoid the frequent changes in the oil level signal from misleading the driver. When the vehicle is parked on flat ground and the range extender is running, the system simplifies the processing and only performs basic filtering to ensure the stability of the oil level display.
[0111] Finally, when the vehicle is powered off, the system stores the current oil level signal in the EEPROM so that it can be initialized and used the next time it is powered on. This storage mechanism ensures the continuity of the oil level display and avoids the problem of inconsistent oil level readings caused by the vehicle being parked on a slope or in different states. Through the slope judgment and initialization method after powering on, the system can flexibly select the last stored oil level signal or the current original signal to ensure a smooth transition of the oil level display when the vehicle is started.
[0112] The present invention uses slope correction, filtering and multi-condition oil level processing strategies to keep the oil level signal of the extended-range vehicle stable in various states such as driving, parking on a slope and parking on flat ground, providing strong support for the accurate calculation of the remaining fuel mileage, reducing the misleading of the driver due to oil level fluctuations, and improving the user's driving experience and the reliability of fuel information.
[0113] Embodiment 3
[0114] The third embodiment of the present invention is based on the same inventive concept. A computer device proposed by the present invention includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the steps of a method for processing the oil level of an extended-range vehicle in the above-mentioned embodiment are implemented.
[0115] Embodiment 4
[0116] The fourth embodiment of the present invention is based on the same inventive concept and provides an extended-range vehicle. The extended-range vehicle includes a computer device, and the vehicle executes an extended-range vehicle oil level processing method through the computer device.
[0117] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0118] Finally, it should be noted that the above-described embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims
1. A method for handling the oil level of an extended-range vehicle, characterized in that: The following steps are involved: S1. After the vehicle is powered on, read the original oil level signal of the oil level sensor; S2, selecting the oil level initialization method according to the slope state; S3. During the use of the vehicle, the oil level signal is processed according to the operating state of the range extender, the speed and slope of the vehicle; Among them, when the vehicle is started and the vehicle is parked on a slope, the vehicle speed is zero, and the range extender is in operation, the original oil level signal is first slope corrected to obtain the slope oil level, and then the slope oil level is filtered to obtain an updated oil level signal.
2. The method for handling the oil level of an extended-range vehicle according to claim 1, characterized in that: When the vehicle is powered off, the current oil level signal is stored in the EEPROM. The initialization steps in S2 include: S21, reading the original oil level signal of the oil level sensor; S22, outputting an oil level signal after determining the vehicle slope state; The slope determination step S22 includes: When the slope does not exceed the set threshold, the original oil level signal is used as the oil level output signal; When the slope exceeds the set threshold, the oil level signal stored in the EEPROM is used as the initialized oil level output signal.
3. The method for handling oil level of an extended range vehicle according to claim 1, characterized in that: The oil level processing step in S3 includes: S31, first determine the operating status of the range extender; S32: Outputting the oil level signal after determining the vehicle operation status.
4. The method for handling the oil level of an extended-range vehicle according to claim 3, characterized in that: In the S32, when it is determined that the range extender is in operation and parked on a slope, a slope correction is performed; The calculation formula of the oil level signal after the slope correction is: FuelLevel corrected =FuelLevel Raw +Δslop Among them, Δslop is the slope correction value, FuelLevel corrected Indicates the corrected fuel level signal, FuelLevel Raw is the original oil level signal read; The slope correction value Δslop is calculated by using the lateral acceleration DirX and the longitudinal acceleration DirY.
5. The method for handling the oil level of an extended-range vehicle according to claim 3, characterized in that: In the S32, when it is determined that the range extender is in operation and the vehicle is traveling, the original oil level signal is filtered.
6. The method for handling oil level of an extended range vehicle according to claim 3, characterized in that: In the S32, when the range extender stops and the vehicle is in a refueling state, the original oil level signal is used as the oil level output signal; When the range extender stops and the vehicle is not in the refueling state, the oil level output signal remains unchanged.
7. The method for handling oil level of an extended range vehicle according to claim 3, characterized in that: In the above S32, when it is determined that the range extender is in operation and the vehicle is parked on flat ground, the original oil level signal of the oil level sensor is filtered.
8. An automobile oil level judgment system, characterized in that: A method for treating the oil level of an extended-range vehicle according to any one of claims 1 to 7, comprising: The oil level acquisition module is used to read the original oil level signal of the oil level sensor and provide basic oil level data input for the system; A slope judgment module is used to detect the current slope state of the vehicle; A range extender status monitoring module, used to detect the operating status of the range extender; The vehicle speed monitoring module is used to monitor the vehicle speed information and determine whether the vehicle is in a driving state or a stationary state; The oil level processing module is used to process the original oil level signal according to the vehicle's slope, range extender status and vehicle speed; A filter module, used for filtering the oil level signal; The storage module is used to store the current oil level signal when the vehicle is powered off and save it to the EEPROM so that the oil level can be read and initialized when the vehicle is powered on next time; Output module to transmit processed fuel level signal to vehicle instrument panel or fuel management system.
9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method for processing the oil level of an extended-range vehicle as claimed in any one of claims 1 to 7 is implemented.
10. An extended-range vehicle, characterized in that: The extended-range vehicle includes a computer device as described in claim 9, and the vehicle completes oil level calculation through a computer device.