A method, apparatus, device, and storage medium for detecting fuel level and voltage in a vehicle.

By sampling the voltage of the vehicle's power supply system and correcting the fuel sensor, the problem of fuel level signal interruption caused by power supply voltage fluctuations was solved, and accurate and timely detection of fuel level voltage was achieved.

CN115597681BActive Publication Date: 2026-03-13CHONGQING CHANGAN TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-28
Publication Date
2026-03-13

AI Technical Summary

Technical Problem

In the existing technology, the voltage detection method of fuel sensor cannot be effectively corrected when the supply voltage fluctuates for a long time, which makes it impossible to judge the fuel level of the vehicle in a timely and accurate manner.

Method used

The first sampling is performed on the power supply voltage of the vehicle power supply system. The voltage difference is calculated and compared with a preset threshold. If the threshold is exceeded, the power supply voltage and the fuel sensor are sampled a second time. The sampling ratio coefficient is calculated to correct the fuel level voltage.

Benefits of technology

It enables accurate correction of oil level voltage when the power supply voltage fluctuates, avoids oil level signal interruption, and improves the timeliness and accuracy of oil level judgment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115597681B_ABST
    Figure CN115597681B_ABST
Patent Text Reader

Abstract

This invention provides a method, apparatus, device, and storage medium for detecting fuel level voltage in a vehicle. The method includes: performing a first sampling operation on the supply voltage of the vehicle's power supply system to obtain a first supply voltage; calculating the voltage difference based on the first supply voltage and a preset standard voltage value; if the voltage difference is greater than a voltage difference threshold, simultaneously performing a second sampling operation on the supply voltage and the fuel sensor to obtain a second supply voltage and a first fuel level voltage to calculate a sampling ratio coefficient; and using the sampling ratio coefficient to correct the first fuel level voltage to obtain the actual fuel level voltage. This invention solves the problem of the inability to correct abnormal data, which leads to the inability to detect fuel level signals normally. It can correct data with large errors in real time, effectively avoiding the risk of fuel level monitoring gaps caused by long-term fluctuations in supply voltage, and effectively improving the timeliness and accuracy of fuel level judgment. It has the characteristics of ingenious approach, strong vehicle adaptability, and low modification difficulty.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of automotive electronics technology, specifically to a method, device, equipment, and storage medium for detecting the oil level and voltage of a vehicle. Background Technology

[0002] In gasoline-powered vehicles, fuel level is detected by a fuel sensor. The fuel sensor can be considered as a sliding rheostat; as the fuel level rises or falls, its resistance changes accordingly. In other words, the change in the resistance of the fuel sensor reflects the rise or fall of the fuel level. The fuel sensor is generally powered by the ignition system. Theoretically, the supply voltage is constant, but in reality, voltage fluctuations occur during ignition, causing the actual measured voltage of the fuel sensor to not correspond to the theoretical supply voltage.

[0003] In existing technologies, to improve the accuracy of the voltage sampled by the fuel sensor, abnormal values ​​are generally filtered out by introducing circuits or devices with judgment and indication functions. For example, a reference voltage is connected to the detection circuit, the test voltage is compared with the reference voltage by a comparator, and semiconductor devices such as transistors are used to filter out test voltages that do not meet the judgment rules. Existing technologies have at least the following drawbacks: they cannot correct abnormal data, and when the supply voltage fluctuates for a long time, a large amount of detection data will be filtered out, resulting in the fuel level signal not being able to be detected normally, and the vehicle's fuel level cannot be judged in a timely and accurate manner. Summary of the Invention

[0004] In view of the shortcomings of the prior art, which is unable to correct abnormal data and will filter out a large amount of detection data when the power supply voltage fluctuates for a long time, resulting in the inability to detect the oil level signal normally and make timely and accurate judgments on the oil level of the vehicle, the present invention provides a method, device, equipment and storage medium for detecting the oil level voltage of a vehicle to solve the above-mentioned technical problems.

[0005] In a first aspect, the present invention provides a method for detecting the oil level voltage of a vehicle, comprising:

[0006] The first supply voltage is obtained by performing a first sampling operation on the supply voltage of the vehicle power supply system;

[0007] The voltage difference is calculated based on the first supply voltage and the preset standard voltage value, and the voltage difference is compared with the preset voltage difference threshold.

[0008] If the voltage difference is greater than the voltage difference threshold, then a second sampling operation is performed on the power supply voltage and the fuel sensor simultaneously to obtain the second power supply voltage and the first fuel level voltage.

[0009] The sampling ratio coefficient is calculated based on the second supply voltage and the standard voltage value, and the first oil level voltage is corrected using the sampling ratio coefficient to obtain the actual oil level voltage.

[0010] Secondly, the present invention provides a vehicle oil level voltage detection device, comprising:

[0011] The first sampling module is used to perform a first sampling operation on the power supply voltage of the vehicle power supply system to obtain the first power supply voltage.

[0012] The comparison module is used to calculate the voltage difference based on the first supply voltage and a preset standard voltage value, and compare the voltage difference with a preset voltage difference threshold.

[0013] The second sampling module is used to simultaneously perform a second sampling operation on the power supply voltage and the fuel sensor when the voltage difference is greater than the voltage difference threshold, so as to obtain the second power supply voltage and the first fuel level voltage.

[0014] The voltage correction module is used to calculate a sampling ratio coefficient based on the second supply voltage and the standard voltage value, and to correct the first oil level voltage using the sampling ratio coefficient to obtain the actual oil level voltage.

[0015] Thirdly, the present invention provides an electronic device, comprising:

[0016] One or more processors;

[0017] A storage device for storing one or more programs, which, when executed by one or more processors, cause the electronic device to implement a vehicle oil level voltage detection method as described above.

[0018] Fourthly, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a computer processor, causes the computer to perform a vehicle oil level voltage detection method as described above.

[0019] The vehicle fuel level voltage detection method, device, equipment, and storage medium described above first perform a first sampling operation on the power supply voltage of the vehicle's power supply system to obtain a first power supply voltage. The voltage difference is calculated based on the first power supply voltage and a preset standard voltage value. This voltage difference is compared with a preset differential voltage threshold. If the voltage difference is greater than the threshold, a second sampling operation is performed simultaneously on the power supply voltage and the fuel sensor to obtain a second power supply voltage and a first fuel level voltage. A sampling ratio coefficient is calculated based on the second power supply voltage and the standard voltage value, and the first fuel level voltage is corrected using this coefficient to obtain the actual fuel level voltage. This invention solves the problem in the prior art where abnormal data cannot be corrected, and where long-term fluctuations in the power supply voltage filter out a large amount of detection data, leading to abnormal fuel level signal detection and an inability to accurately and timely determine the vehicle's fuel level. This invention can accurately determine the fuel level voltage and correct large errors in real time, effectively avoiding the risk of fuel level monitoring interruptions due to long-term fluctuations in the power supply voltage. It enables continuous acquisition of the fuel level voltage, effectively improving the timeliness and accuracy of fuel level judgment. It features ingenious design, strong vehicle adaptability, and low modification difficulty.

[0020] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application. Attached Figure Description

[0021] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application. It is obvious that the drawings described below are merely some embodiments of this application, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort. In the drawings:

[0022] Figure 1 This is a flowchart illustrating a vehicle oil level voltage detection method according to an exemplary embodiment of this application;

[0023] Figure 2 yes Figure 1 A flowchart of an exemplary implementation following step S120 in the illustrated embodiment;

[0024] Figure 3 This is a schematic diagram of the structure of a vehicle oil level voltage detection device according to an exemplary embodiment of this application;

[0025] Figure 4 A schematic diagram of the structure of a computer system suitable for implementing the electronic device of the present application is shown. Detailed Implementation

[0026] The embodiments of the present invention will be described below with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention. It should be understood that the preferred embodiments are only for illustrating the present invention and not for limiting the scope of protection of the present invention.

[0027] It should be noted that the illustrations provided in the following embodiments are only schematic representations of the basic concept of the present invention. Therefore, the drawings only show the components related to the present invention and are not drawn according to the actual number, shape and size of the components in the actual implementation. In the actual implementation, the form, quantity and proportion of each component can be changed according to actual needs, and the layout of the components may also be more complex.

[0028] In the following description, numerous details are explored to provide a more thorough explanation of embodiments of the invention. However, it will be apparent to those skilled in the art that embodiments of the invention may be practiced without these specific details. In other embodiments, well-known structures and devices are shown in block diagram form rather than in detail to avoid obscuring embodiments of the invention.

[0029] First, it should be noted that the embodiments provided in this application can be applied to the application scenario of vehicle fuel level detection. The fuel level signal is generally detected by a fuel sensor, which can be equivalent to a sliding rheostat. When the fuel level increases or decreases, the resistance value of the fuel sensor changes accordingly, and the current on the fuel sensor will also change synchronously. The instrument system detects the fuel level signal, such as the voltage value, through its internal sampling circuit, and calculates the resistance change based on the fuel level signal. Thus, the fuel level can be monitored based on the changes in the fuel sensor, and the fuel level signal can be displayed on the vehicle's infotainment system or instrument panel in a preset information display format.

[0030] In one embodiment, please refer to Figure 1 This application exemplarily illustrates a method for detecting the oil level voltage of a vehicle, specifically including the following steps:

[0031] Step S110: Perform a first sampling operation on the power supply voltage of the vehicle power supply system to obtain the first power supply voltage;

[0032] Step S120: Calculate the voltage difference based on the first supply voltage and the preset standard voltage value, and compare the voltage difference with the preset voltage difference threshold.

[0033] Step S130: If the voltage difference is greater than the voltage difference threshold, then perform a second sampling operation on the power supply voltage and the fuel sensor simultaneously to obtain the second power supply voltage and the first fuel level voltage.

[0034] Step S140: Calculate the sampling ratio coefficient based on the second power supply voltage and the standard voltage value, and use the sampling ratio coefficient to correct the first oil level voltage to obtain the actual oil level voltage;

[0035] For steps S110-S120, the supply voltage of the vehicle power supply system needs to be sampled, and the voltage difference between it and the preset standard voltage value needs to be calculated. In order to determine the subsequent processing method based on the relationship between the voltage difference and the preset differential voltage threshold, the vehicle power supply system refers to the system that supplies power to the fuel sensor, generally referring to the IGN (Ignition Switch) power supply in the vehicle. When the vehicle power supply system provides voltage to the fuel sensor, the operating voltage of the fuel sensor may fluctuate due to fluctuations in its own output voltage. Therefore, the standard voltage value here should be understood as the voltage provided to the fuel sensor by the vehicle power supply system when there are no voltage fluctuations. The differential voltage threshold should be understood as the maximum acceptable value of fluctuation when the supply voltage fluctuates. If the differential voltage threshold is exceeded, it means that the fluctuation of the supply voltage will have a non-negligible impact on the actual detected fuel level voltage.

[0036] For steps S130-S140, if the voltage difference is greater than the voltage difference threshold, it means that the current supply voltage is fluctuating significantly. The fuel level voltage detected directly by the fuel sensor is likely to be inaccurate. The collected fuel level voltage cannot truly reflect the voltage that the current fuel level should correspond to. At this time, for the fuel level voltage collected from the fuel sensor at a certain moment, it is necessary to correct the fuel level voltage by using the fluctuation of the supply voltage at the same moment.

[0037] It is important to understand that since the voltage collected from the fuel sensor is obtained by dividing the supply voltage based on its resistance, the fuel level voltage and the supply voltage change linearly under a specific resistance. As long as the change ratio of the supply voltage fluctuation relative to the standard voltage value can be obtained, the collected fuel level voltage can be corrected accordingly to calculate the actual fuel level voltage. Therefore, a second sampling operation is performed on the supply voltage and the fuel sensor to obtain the second supply voltage and the first fuel level voltage. The sampling ratio coefficient is calculated based on the second supply voltage and the standard voltage value, and the first fuel level voltage is corrected using the sampling ratio coefficient to obtain the actual fuel level voltage.

[0038] In this embodiment, the sampling operation can be performed, for example, by a voltage acquisition device or by analog signals and / or digital signals and analog-to-digital conversion. For example, in some embodiments of this embodiment, specific implementation methods of sampling are illustrated. For instance, in the step of performing a first sampling operation on the supply voltage of the vehicle power supply system to obtain a first supply voltage, the following steps are specifically included:

[0039] The vehicle power supply system is sampled using a first analog-to-digital converter to obtain a first analog-to-digital conversion value;

[0040] The first supply voltage is calculated based on the first preset accuracy of the first analog-to-digital converter and the first analog-to-digital conversion value;

[0041] For example, in the step of simultaneously performing a second sampling operation on the power supply voltage and the fuel sensor, the second sampling operation includes the following steps:

[0042] The vehicle power supply system is sampled using the first analog-to-digital converter to obtain the second analog-to-digital conversion value. At the same time, the fuel sensor is sampled using the second analog-to-digital converter to obtain the third analog-to-digital conversion value.

[0043] The second power supply voltage is calculated based on the first preset accuracy and the second analog-to-digital conversion value. The first oil level voltage is calculated based on the second preset accuracy and the third analog-to-digital conversion value of the second analog-to-digital converter.

[0044] Regarding the specific implementation of the second sampling operation described in the above steps, it should be understood that the second sampling operation for the power supply voltage and the fuel sensor is performed simultaneously. That is, the obtained second analog-to-digital conversion value and the third analog-to-digital conversion value are time-corresponding. The purpose is to ensure that the calculated second power supply voltage and the first fuel level voltage are also time-corresponding, so that the voltage difference between the second power supply voltage and the standard voltage value, and the impact on the first fuel level voltage, can be correspondingly corrected in the subsequent correction involving the second power supply voltage.

[0045] For example, the first and second sampling operations provided in this embodiment can be performed via analog-to-digital (AD) conversion. First, an AD value is obtained through an Analog-to-Digital Converter (ADC), and then the voltage value is calculated using the ADC's corresponding precision. It's worth noting that the AD value is the analog-to-digital conversion value, and the ADC's precision is a preset precision. For example, if the preset ADC precision is 12 bits (0-4096) and the reference voltage is 3.3V, then AD = 4096 represents the AD value for measuring 3.3V. Each AD value = 3.3V / 4096 = 0.805mV. Assuming the acquired AD value is 3000, then the measured voltage = 3000 × 0.805mV = 2.41V. This method allows for the detection of voltage values ​​with the required precision. The analog-to-digital converter here includes the first and second analog-to-digital converters described in the above embodiments.

[0046] In this embodiment, after comparing the voltage difference with a preset voltage difference threshold, an implementation scheme for another comparison result is also provided, specifically, as follows: Figure 2 As shown, after step S120, that is, after comparing the voltage difference with a preset voltage difference threshold, the above method further includes:

[0047] Step S210: If the voltage difference is less than or equal to the voltage difference threshold, then perform a third sampling operation on the fuel sensor to obtain the second fuel level voltage.

[0048] Step S220: Use the second oil level voltage as the actual oil level voltage;

[0049] For steps S210-S220, it is understood that if the voltage difference is less than or equal to the voltage difference threshold, it means that the current supply voltage has not fluctuated, or the fluctuation is within an acceptable range and will not have a significant impact on or mislead the final result of the fuel level detection. Therefore, the fuel sensor is directly subjected to a third sampling operation to obtain the second fuel level voltage, which is then used as the actual fuel level voltage.

[0050] It should be understood that, for ease of understanding, the voltage sampling methods described above are first, second, and third. In practice, these should be understood as distinctions in sampling rounds, not as limitations on the sampling method. That is, the specific sampling operation in the third sampling operation can be the same as the first or second sampling operation. For example, the voltage value can be obtained by sampling and calculating the AD value through an ADC. It can also be selected and adjusted according to requirements.

[0051] In this embodiment, an exemplary implementation method is also provided for calculating a sampling ratio coefficient based on a second supply voltage and a standard voltage value, and for correcting the first oil level voltage using the sampling ratio coefficient, specifically including the following steps:

[0052] Calculate the multiple of the standard voltage value relative to the second supply voltage, and use the multiple as the sampling ratio coefficient;

[0053] The actual oil level voltage is obtained by multiplying the first oil level voltage by the sampling ratio coefficient.

[0054] In this embodiment, after obtaining the actual oil level voltage, the method further includes:

[0055] Calculate the actual resistance value of the fuel sensor based on the actual fuel level voltage;

[0056] Based on the actual resistance value, the preset resistance range of the fuel sensor is matched to determine the target resistance range that matches the actual resistance value.

[0057] Based on the correspondence between the resistance range and the preset oil level information, the target oil level information corresponding to the target resistance range is determined;

[0058] Display the target oil level information;

[0059] Regarding the above steps, it is important to understand that the preset resistance range can be a range corresponding to different oil level voltages determined in advance through calculation. It can be stored in the vehicle's database or the cloud database. At the same time, different resistance ranges correspond to preset oil level information. This oil level information can be understood as the information that corresponds to the detected oil level signal and needs to be displayed to the operator. It represents the oil level status corresponding to the oil level signal, so that the operator can understand the current oil level status based on the displayed oil level information.

[0060] Specifically, for example, in some embodiments, according to steps S110-140, the actual fuel level voltage 1V is obtained. Based on the actual fuel level voltage, the standard voltage value, and the resistance value corresponding to the standard voltage value, the actual resistance value corresponding to the actual fuel level voltage can be calculated. This actual resistance value is the resistance value of the current fuel sensor. The actual resistance value 1V is matched with at least one preset resistance value range. The target resistance value range is matched, for example, (0.5V, 1.5V), so that the actual resistance value 1V falls within the target resistance value range (0.5V, 1.5V). The fuel level information "current fuel level 1 / 2" corresponding to the target resistance value range (0.5V, 1.5V) is used as the target fuel level information and displayed. This display can be done through the vehicle's infotainment system, dashboard, or other display devices such as mobile phones, tablets, etc. For example, in some other embodiments, the target fuel level information is displayed by sending a text message "current fuel level 1 / 2" to the driver.

[0061] As described above, the fuel level voltage detection method for a vehicle provided in this application firstly samples the power supply voltage of the vehicle's power supply system to obtain a first power supply voltage. The voltage difference is calculated based on the first power supply voltage and a preset standard voltage value. This voltage difference is then compared with a preset differential voltage threshold. If the voltage difference is greater than the threshold, a second sampling operation is performed simultaneously on the power supply voltage and the fuel sensor to obtain a second power supply voltage and a first fuel level voltage. A sampling ratio coefficient is calculated based on the second power supply voltage and the standard voltage value, and the first fuel level voltage is corrected using this coefficient to obtain the actual fuel level voltage. This invention solves the problem in the prior art where abnormal data cannot be corrected, and where long-term fluctuations in the power supply voltage filter out a large amount of detection data, leading to abnormal fuel level signal detection and an inability to accurately and timely determine the vehicle's fuel level. This invention can accurately determine the fuel level voltage and correct large errors in real time, effectively avoiding the risk of fuel level monitoring interruptions due to long-term fluctuations in the power supply voltage. It enables continuous acquisition of the fuel level voltage, effectively improving the timeliness and accuracy of fuel level judgment. This method is characterized by its ingenious approach, strong vehicle adaptability, and low modification difficulty.

[0062] In one embodiment, this application also specifically provides a vehicle oil level voltage detection device, which corresponds one-to-one with the vehicle oil level voltage detection method in the above embodiments, such as... Figure 3 As shown, Figure 3 This is a schematic diagram of the structure of a vehicle oil level and voltage detection device according to an exemplary embodiment of this application, including a first sampling module 301, a comparison module 302, a second sampling module 303, and a voltage correction module 304. Detailed descriptions of each module are as follows:

[0063] The first sampling module 301 is used to perform a first sampling operation on the power supply voltage of the vehicle power supply system to obtain the first power supply voltage.

[0064] The comparison module 302 is used to calculate the voltage difference based on the first supply voltage and the preset standard voltage value, and compare the voltage difference with the preset voltage difference threshold.

[0065] The second sampling module 303 is used to simultaneously perform a second sampling operation on the power supply voltage and the fuel sensor when the voltage difference is greater than the voltage difference threshold, so as to obtain the second power supply voltage and the first fuel level voltage.

[0066] The voltage correction module 304 is used to calculate the sampling ratio coefficient based on the second power supply voltage and the standard voltage value, and to correct the first oil level voltage using the sampling ratio coefficient to obtain the actual oil level voltage.

[0067] In this embodiment, the first sampling module further includes an analog-to-digital conversion unit;

[0068] The analog-to-digital converter unit is used for:

[0069] The vehicle power supply system is sampled using a first analog-to-digital converter to obtain a first analog-to-digital conversion value;

[0070] The first supply voltage is calculated based on the first preset accuracy and the first analog-to-digital converter value.

[0071] This application provides a vehicle fuel level voltage detection device. First, a first sampling operation is performed on the power supply voltage of the vehicle's power supply system to obtain a first power supply voltage. The voltage difference is calculated based on the first power supply voltage and a preset standard voltage value. This voltage difference is compared with a preset differential voltage threshold. If the voltage difference is greater than the threshold, a second sampling operation is performed simultaneously on the power supply voltage and the fuel sensor to obtain a second power supply voltage and a first fuel level voltage. A sampling ratio coefficient is calculated based on the second power supply voltage and the standard voltage value, and the first fuel level voltage is corrected using the sampling ratio coefficient to obtain the actual fuel level voltage. This invention solves the problem in the prior art where abnormal data cannot be corrected, and where long-term fluctuations in the power supply voltage filter out a large amount of detection data, leading to abnormal fuel level signal detection and an inability to accurately and timely determine the vehicle's fuel level. This invention can accurately determine the fuel level voltage and correct large errors in real time, effectively avoiding the risk of fuel level monitoring interruptions due to long-term fluctuations in the power supply voltage. It enables continuous acquisition of the fuel level voltage, effectively improving the timeliness and accuracy of fuel level judgment. It features ingenious design, strong vehicle adaptability, and low modification difficulty.

[0072] It should be noted that the vehicle oil level and voltage detection device and the vehicle oil level and voltage detection method provided in the above embodiments belong to the same concept. The specific operation methods of each terminal have been described in detail in the method embodiments and will not be repeated here. In practical applications, the vehicle oil level and voltage detection device provided in the above embodiments can be assigned to different functional modules as needed, that is, the internal structure of the system can be divided into different functional modules to complete all or part of the functions described above. This is not a limitation here.

[0073] An embodiment of this application also provides an electronic device, including: one or more processors; and a storage device for storing one or more programs, which, when executed by the one or more processors, cause the electronic device to implement the vehicle oil level voltage detection method provided in the above embodiments.

[0074] Figure 4 A schematic diagram of a computer system suitable for implementing the embodiments of this application is shown. It should be noted that... Figure 4 The computer system 400 of the electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.

[0075] like Figure 4 As shown, the computer system 400 includes a Central Processing Unit (CPU) 401, which can perform various appropriate actions and processes based on programs stored in Read-Only Memory (ROM) 402 or programs loaded from storage portion 408 into Random Access Memory (RAM) 403, such as performing the methods described in the above embodiments. The RAM 403 also stores various programs and data required for system operation. The CPU 401, ROM 402, and RAM 403 are interconnected via a bus 404. An Input / Output (I / O) interface 405 is also connected to the bus 404.

[0076] The following components are connected to I / O interface 405: an input section 406 including a keyboard, mouse, etc.; an output section 407 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 408 including a hard disk, etc.; and a communication section 409 including a network interface card such as a LAN (Local Area Network) card, modem, etc. The communication section 409 performs communication processing via a network such as the Internet. A drive 410 is also connected to I / O interface 405 as needed. A removable medium 411, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on drive 410 as needed so that computer programs read from it can be installed into storage section 408 as needed.

[0077] Specifically, according to embodiments of this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program including a computer program for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 409, and / or installed from removable medium 411. When the computer program is executed by central processing unit (CPU) 401, it performs various functions defined in the system of this application.

[0078] It should be noted that the computer-readable medium shown in the embodiments of this application can be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), flash memory, optical fiber, portable compact disc read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this application, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying a computer-readable computer program. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media can also be any computer-readable medium other than computer-readable storage media, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to wireless, wired, etc., or any suitable combination thereof.

[0079] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. Each block in a flowchart or block diagram may represent a module, segment, or portion of code, which contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0080] The units described in the embodiments of this application can be implemented in software or hardware, and the described units can also be located in a processor. The names of these units do not necessarily limit the specific unit itself.

[0081] Another aspect of this application provides a computer-readable storage medium storing a computer program that, when executed by a computer's processor, causes the computer to perform the vehicle oil level voltage detection method as described above. This computer-readable storage medium may be included in the electronic device described in the above embodiments, or it may exist independently and not incorporated into the electronic device.

[0082] Another aspect of this application provides a computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the vehicle oil level voltage detection method provided in the various embodiments described above.

[0083] The above embodiments are merely illustrative of the principles and effects of the present invention and are not intended to limit the invention. Any person skilled in the art can modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by those skilled in the art without departing from the spirit and technical concept disclosed in the present invention should still be covered by the claims of the present invention.

Claims

1. A method of oil level voltage detection of a vehicle, characterized by, The method comprises the following steps: performing a first sampling operation on a power supply voltage of a vehicle power supply system to obtain a first power supply voltage; calculating a voltage difference according to the first power supply voltage and a preset standard voltage value, wherein the standard voltage value is a voltage provided by the vehicle power supply system to the fuel sensor when there is no voltage fluctuation; if the voltage difference is greater than the pressure difference threshold, performing a second sampling operation on the power supply voltage and the fuel sensor simultaneously to obtain a second power supply voltage and a first oil level voltage; calculating a multiple of the standard voltage value relative to the second power supply voltage, and taking the multiple as a sampling proportionality coefficient; multiplying the first oil level voltage by the sampling proportionality coefficient to obtain an actual oil level voltage.

2. The oil level voltage detection method of a vehicle according to claim 1, characterized by, The step of performing a first sampling operation on a power supply voltage of a vehicle power supply system to obtain a first power supply voltage comprises the following steps: sampling the vehicle power supply system by using a first analog-to-digital converter to obtain a first analog-to-digital conversion value; calculating a first power supply voltage according to a first preset accuracy of the first analog-to-digital converter and the first analog-to-digital conversion value.

3. The oil level voltage detection method of a vehicle according to claim 2, characterized by, The second sampling operation comprises the following steps: sampling the vehicle power supply system by using the first analog-to-digital converter to obtain a second analog-to-digital conversion value, and sampling the fuel sensor by using a second analog-to-digital converter to obtain a third analog-to-digital conversion value; calculating a second power supply voltage according to the first preset accuracy and the second analog-to-digital conversion value, and calculating a first oil level voltage according to a second preset accuracy of the second analog-to-digital converter and the third analog-to-digital conversion value.

4. The oil level voltage detection method of a vehicle according to claim 1, characterized by, After comparing the voltage difference with the preset pressure difference threshold, the method further comprises the following steps: if the voltage difference is less than or equal to the pressure difference threshold, performing a third sampling operation on the fuel sensor to obtain a second oil level voltage; taking the second oil level voltage as an actual oil level voltage.

5. The oil level voltage detection method of a vehicle according to claim 1 or 4, characterized by, After obtaining the actual oil level voltage, the method further comprises the following steps: calculating an actual resistance value of the fuel sensor according to the actual oil level voltage; matching a preset resistance value interval of the fuel sensor according to the actual resistance value to determine a target resistance value interval matched with the actual resistance value; determining target oil level information corresponding to the target resistance value interval based on a correspondence between the resistance value interval and preset oil level information; displaying the target oil level information.

6. An oil level voltage detection device for a vehicle, characterized by comprising: The method comprises the following steps: a first sampling module for performing a first sampling operation on a power supply voltage of a vehicle power supply system to obtain a first power supply voltage; a comparison module for calculating a voltage difference according to the first power supply voltage and a preset standard voltage value, and comparing the voltage difference with a preset pressure difference threshold, wherein the standard voltage value is a voltage provided by the vehicle power supply system to the fuel sensor when there is no voltage fluctuation; a second sampling module for performing a second sampling operation on the power supply voltage and the fuel sensor simultaneously to obtain a second power supply voltage and a first oil level voltage when the voltage difference is greater than the pressure difference threshold; The voltage correction module is configured to calculate a multiple of the standard voltage value relative to the second power supply voltage, take the multiple as a sampling proportionality coefficient, multiply the first oil level voltage by the sampling proportionality coefficient to obtain an actual oil level voltage.

7. The oil level voltage detection device of claim 6, wherein: The first sampling module further includes an analog-to-digital conversion unit. The analog-to-digital conversion unit is configured to: sample the vehicle power supply system by using a first analog-to-digital converter to obtain a first analog-to-digital conversion value; calculate a first power supply voltage according to a first preset accuracy of the first analog-to-digital converter and the first analog-to-digital conversion value.

8. An electronic device, comprising: The electronic device includes: one or more processors; a storage device configured to store one or more programs that, when executed by the one or more processors, cause the electronic device to implement the vehicle oil level voltage detection method of any one of claims 1 to 5.

9. A computer-readable storage medium, characterized in that, A computer program is stored thereon, and when the computer program is executed by a processor of a computer, the computer executes the vehicle oil level voltage detection method of any one of claims 1 to 5.

Citation Information

Patent Citations

  • Crude oil level measurement device

    CN107560686A

  • Oil level sensor and interface method between oil level display meters thereof

    CN112556793A