High-precision oil mass detection system and storage medium

By setting up a switch control module and a status detection module in the fuel detection system, data in different working states of the sensor module are obtained and error compensation is performed, the problem of low accuracy of the existing fuel detection system is solved, and high-precision oil quantity detection and better user experience are achieved.

CN120063428APending Publication Date: 2025-05-30FORYOU GENERAL ELECTRONICS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510089518.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-21
Publication Date
2025-05-30

AI Technical Summary

Technical Problem

Due to the low accuracy of hardware equipment and incomplete software algorithms, the existing fuel detection system has low accuracy of oil volume detection and poor user experience, and cannot be effectively applied in scenarios such as high-precision measurement, fault diagnosis and fuel efficiency optimization.

Method used

A high-precision oil quantity detection system is designed. By setting up a switch control module and a status detection module in the sensor module, the switch control module is used to control the on-off of the main power circuit, obtain the oil quantity acquisition data when the sensor module is short-circuited and when the power is turned on, and perform error compensation calculations to determine the actual fuel oil quantity.

Benefits of technology

It realizes high accuracy of fuel detection, with a detection accuracy of ±0.5Ω, which can more accurately reflect slight changes in fuel characteristics, and improves the overall performance and user experience of the fuel system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120063428A_ABST
    Figure CN120063428A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of oil tank oil quantity detection, and provides a high-precision oil quantity detection system and a storage medium, the high-precision oil quantity detection system is provided with a switch control module and a state detection module which are connected to the two sides of an oil pressure sensor respectively, and the switch control module is used for controlling on-off of a power supply main loop to enable a sensor module to be short-circuited or connected with a power supply; therefore, the internal resistance of the switch control module does not influence the data acquisition of the circuit while accurately executing the on-off of the switch to realize the oil quantity detection, and the error of the internal resistance of the switch circuit is solved from the hardware circuit design. Meanwhile, a data analysis module is connected to obtain fuel quantity collection data collected when the sensor module is short-circuited and a power supply is switched on respectively, error compensation calculation is carried out to determine the actual fuel quantity, errors caused by resistance changes of components are eliminated from software analysis, and therefore by optimizing a cooperative working mechanism of software and hardware, the fuel quantity is accurately measured. More accurate and more reliable fuel oil detection is realized, and the overall performance of a fuel oil system is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of oil tank oil level detection, and in particular to a high-precision oil level detection system and a storage medium. Background Art

[0002] In the field of fuel testing, the detection accuracy of software and hardware in the interactive process has always been the focus of the industry. Traditional fuel testing systems mainly rely on hardware devices, such as sensors, flow meters and other modules to collect various parameters of fuel. However, due to the limitations of manufacturing process and assembly accuracy, these hardware devices often produce certain errors during long-term use, thus affecting the accuracy of detection.

[0003] In traditional fuel detection circuits, due to hardware design limitations and insufficient signal processing technology, the detection accuracy can usually only reach ±4Ω. Although this level of accuracy can meet the needs of conventional fuel detection to a certain extent, it is not enough in application scenarios such as high-precision measurement, fuel system fault diagnosis, and fuel efficiency optimization. Specifically, within the low resistance value variation range, it is impossible to accurately capture subtle changes in fuel characteristics, resulting in limited reliability and accuracy of the detection results, which in turn affects the performance evaluation and maintenance decisions of the fuel system.

[0004] To overcome this problem, modern fuel testing systems have introduced advanced software technology. The accuracy of the test can be further improved by real-time processing and analysis of the data collected by the hardware equipment through software. However, in practical applications, the coordination problem between software and hardware has gradually become prominent. For example, the insufficient accuracy of the hardware equipment may cause the software to produce deviations when processing data, and the imperfection of the software algorithm may also affect the accurate interpretation of the hardware equipment data.

[0005] Therefore, how to achieve effective coordination between software and hardware in fuel testing to improve the detection accuracy of the overall system has become a technical problem that needs to be solved urgently. Summary of the invention

[0006] The present invention provides a high-precision oil quantity detection system and storage medium, which solves the technical problems of low oil quantity detection accuracy and poor user experience caused by low precision of hardware equipment and imperfect software algorithms in the existing fuel detection system, which leads to deviations in data collection and data analysis.

[0007] In order to solve the above technical problems, the present invention provides a high-precision oil level detection system, comprising:

[0008] The sensor module connected to the main power circuit includes an oil pressure sensor for oil level detection;

[0009] A switch control module connected in parallel with the sensor module and in series on the main power circuit. The switch control module is used to control the short - circuit or power - on of the sensor module and perform switch control for fuel quantity detection.

[0010] A status detection module connected in series between the power supply terminal VIN and the sensor module, which is used to capture the resistance value real - time feedback by the oil pressure sensor to obtain fuel quantity acquisition data.

[0011] A data analysis module connected to the output end of the status detection module, which is used to respectively obtain the fuel quantity acquisition data collected when the sensor module is short - circuited and when the power is turned on, and perform error compensation calculation to determine the actual fuel quantity.

[0012] Based on the high - precision fuel quantity detection requirements, this basic solution specifically sets a switch control module and a status detection module respectively connected to both sides of the oil pressure sensor. The switch control module controls the on - off of the main power circuit to short - circuit or power - on the sensor module. Thus, while accurately performing the switch on - off to achieve fuel quantity detection, it ensures that the internal resistance of the switch control module will not affect the data acquisition of the circuit, solving the error of the switch circuit internal resistance from the hardware circuit design. At the same time, a data analysis module is connected. The data analysis module respectively obtains the fuel quantity acquisition data collected when the sensor module is short - circuited and when the power is turned on, and performs error compensation calculation to determine the actual fuel quantity, excluding the error caused by the change of the component resistance value from the software analysis. Therefore, by optimizing the collaborative working mechanism of software and hardware, more accurate and reliable fuel detection is achieved, improving the overall performance of the fuel system.

[0013] In a further implementation scheme, the respectively obtaining the fuel quantity acquisition data collected when the sensor module is short - circuited and when the power is turned on includes:

[0014] The data analysis module drives the switch control module to short - circuit the sensor module. At this time, after the power supply terminal VIN is connected to the status detection module, it is grounded through the switch control module, and the current fuel quantity acquisition data is obtained from the status detection module to get the first acquisition data.

[0015] The data analysis module drives the switch control module to disconnect the connection with the status detection module. At this time, the sensor module is powered on and conducts, and the current fuel quantity acquisition data is obtained from the status detection module to get the second acquisition data.

[0016] The first acquisition data and the second acquisition data are respectively the fuel quantity acquisition data collected when the sensor module is short - circuited and when the power is turned on.

[0017] This solution collects the fuel quantity acquisition data when the sensor module is short - circuited and when the power is turned on, thereby determining the resistance value change of the circuit resistance in the current state in real - time. Then, in software analysis, the error compensation is performed on the resistance value error that cannot be eliminated by the hardware device. The error caused by environmental factors on the circuit resistance change is fully considered, and the error compensation algorithm is optimized. Furthermore, the detection accuracy of the fuel resistance is greatly improved, reaching a high - precision level of ±0.5Ω. The detection accuracy of ±0.5Ω enables the system to more accurately reflect the tiny changes in fuel characteristics, providing more reliable data support for fuel quality analysis and system fault diagnosis.

[0018] In a further implementation, the switch control module includes a first switch transistor Q1 connected in series on the main power supply circuit, and a switch module connected to the control end of the first switch transistor Q1; the first end of the first switch transistor Q1 is connected to the sensor module and the status detection module, and the second end is grounded; the power supply terminal VIN is connected to the status detection module and the first switch transistor Q1 in sequence to form the main power supply circuit.

[0019] When the switch module controls the first switch transistor Q1 to conduct, the sensor module is short - circuited, and the acquisition of fuel quantity acquisition data is performed to obtain the first acquisition data; when the switch module controls the first switch transistor Q1 to turn off, the sensor module is connected to the power supply terminal VIN through the status detection module to be powered on, and the acquisition of fuel quantity acquisition data is performed to obtain the second acquisition data.

[0020] This solution sets the first switch transistor Q1 connected in series on the main power supply circuit. Since the first switch transistor Q1 is in parallel with the sensor module, when the first switch transistor Q1 conducts, the sensor module will be short - circuited, that is, the oil pressure sensor does not work. At this time, the first acquisition data used to analyze the resistance value change with the environment can be obtained to assist in error compensation; when the first switch transistor Q1 is cut off, the sensor module is powered on to work, and then the second acquisition data related to the oil pressure sensor can be obtained to assist in fuel quantity calculation. The hardware circuit design directly avoids the interference of the switch transistor internal resistance when the oil pressure sensor is working, and the circuit control is simple and the cost is low.

[0021] In a further implementation, the switch module includes a second switch transistor Q2, a third switch transistor Q3, a resistor R1, a resistor R2, a resistor R3, and a resistor R4; both ends of the resistor R1 are respectively connected to the control end and the second end of the third switch transistor Q3.

[0022] The control end of the second switch transistor Q2 is connected to the data analysis module, the first end is connected to the control end of the third switch transistor Q3 through the resistor R2, and the second end is grounded.

[0023] The first terminal of the third switching transistor Q3 is connected to the control terminal of the first switching transistor Q1 through a resistor R3 and is also grounded through a resistor R4, and the second terminal is connected to the power supply terminal VIN.

[0024] When this solution uses two switching transistors to implement a switching circuit, the first-stage switching transistor serves as the input terminal, responsible for amplifying the input signal and transmitting the signal to the second-stage switching transistor. The second-stage switching transistor serves as the output terminal and outputs the amplified signal. In addition, the cascading method of the two triodes can also achieve more precise signal control by adjusting the sizes of the cascading resistors and capacitors, selecting components such as capacitors and inductors with appropriate values, and has the advantages of low cost, good output effect, and high stability.

[0025] In a further embodiment, the state detection module includes a first voltage division detection circuit, a second voltage division detection circuit, and a protection resistor R5; the protection resistor R5 is connected in series on the main power supply loop, one end is connected to the power supply terminal VIN and the first voltage division detection circuit, and the other end is connected to the second voltage division detection circuit, the switch control module, and the sensor module; the data analysis module is electrically connected to the first voltage division detection circuit and the second voltage division detection circuit;

[0026] When the data analysis module drives the switch control module to short-circuit the sensor module, at this time, after the power supply terminal VIN is connected to the state detection module, it is grounded through the switch control module, and the corresponding fuel quantity acquisition data is obtained from the second voltage division detection circuit to obtain the first acquisition data;

[0027] When the data analysis module drives the switch control module to disconnect from the state detection module, at this time, the sensor module is powered on and conducts, and at the same time, the corresponding fuel quantity acquisition data is obtained from the first voltage division detection circuit and the second voltage division detection circuit to obtain the second acquisition data.

[0028] In a further embodiment, the first voltage division detection circuit includes a resistor R6 and a resistor R7. One end of the resistor R6 is connected to the protection resistor R5 and the power supply terminal VIN, and the other end is connected to the data analysis module; one end of the resistor R7 is connected to the other end of the resistor R6, and the other end is grounded.

[0029] In a further embodiment, the second voltage division detection circuit includes a resistor R8 and a resistor R9. One end of the resistor R8 is connected to the protection resistor R5, the switch control module, and the sensor module, and the other end is connected to the data analysis module; one end of the resistor R9 is connected to the other end of the resistor R8, and the other end is grounded.

[0030] In this solution, the state detection module is set to be connected to the power supply terminal VIN, and then connected to the sensor module or the switch control module in series on the main power supply loop. On the one hand, it can collect the change of the resistance value, and on the other hand, it can also calculate the resistance value of the oil pressure sensor through dual-channel acquisition. Furthermore, by accurately monitoring the change of the fuel resistance, the system can more accurately control the fuel injection volume, optimize the combustion process, improve fuel economy, reduce emissions, and conform to the current environmental protection trend of energy conservation and emission reduction.

[0031] In a further implementation scheme, error compensation calculation is performed to determine the actual fuel quantity, including:

[0032] Obtain the first acquisition data, where the first acquisition data is the fuel quantity acquisition data obtained from the second voltage division detection circuit when the sensor module is short-circuited;

[0033] Obtain the second acquisition data, where the second acquisition data is the fuel quantity acquisition data obtained from the first voltage division detection circuit and the second voltage division detection circuit respectively when the sensor module is powered on and conducting;

[0034] Obtain the wire harness impedance of the wire harness at both ends of the fuel sensor;

[0035] Perform error compensation calculation according to the first acquisition data, the second acquisition data and the wire harness impedance to obtain the actual resistance value of the fuel sensor, and obtain the corresponding fuel quantity according to the actual resistance value.

[0036] This solution fully considers the impedance of the wire harness at both ends of the fuel sensor, and at the same time combines the first acquisition data for error compensation calculation. Finally, based on the second acquisition data, the actual resistance value of the fuel sensor is calculated. Considering the line loss and the change of the resistance value can more accurately determine the actual fuel tank quantity, and then give the user an accurate fuel quantity feedback, enhance the system reliability. High-precision detection helps to timely discover potential problems in the fuel system, such as fuel filter clogging, fuel pump efficiency decline, etc., so as to take maintenance measures in advance to avoid failures and extend the service life of the system.

[0037] In a further implementation scheme, the data analysis module includes an MCU module and a CAN module; the MCU module is connected to the state detection module, the switch control module, and the CAN module, and is used to perform error compensation calculation according to the first acquisition data, the second acquisition data and the wire harness impedance to obtain the actual resistance value of the fuel sensor; the CAN module is used to obtain the corresponding fuel quantity according to the actual resistance value.

[0038] The present invention also provides a storage medium, on which a computer program is stored, and the computer program is used to be executed by a high-precision fuel quantity detection system as described above to implement fuel quantity detection. Among them, the storage medium can be a magnetic disk, an optical disc, a read-only memory (ROM), or a random access memory (RAM), etc. Brief Description of the Drawings

[0039] Figure 1 is a system block diagram of a traditional fuel detection circuit provided by an embodiment of the present invention;

[0040] Figure 2 is a system block diagram of a high-precision fuel quantity detection system provided by an embodiment of the present invention;

[0041] Figure 3 is provided by an embodiment of the present invention Figure 2 hardware circuit diagram;

[0042] Figure 4 is a working principle diagram of software for identifying the fuel resistance provided by an embodiment of the present invention;

[0043] Figure 5 is a correspondence table between the fuel sensor resistance and the CAN value provided by an embodiment of the present invention;

[0044] Figure 6 is a data acquisition schematic diagram when the first switching transistor Q1 is turned on provided by an embodiment of the present invention;

[0045] Figure 7 is a data acquisition schematic diagram when the first switching transistor Q1 is turned off provided by an embodiment of the present invention.

[0046] Among them: sensor module 1; switch control module 2, switch module 21; state detection module 3, first voltage division detection circuit 31, second voltage division detection circuit 32; data analysis module 4, MCU module 41, CAN module 42; liquid crystal meter 5. Detailed Embodiment

[0047] The following specifically illustrates the implementation manners of the present invention in conjunction with the drawings. The given embodiments are only for illustrative purposes and should not be construed as limiting the present invention. The included drawings are only for reference and illustration, and do not constitute a limitation on the protection scope of the present invention's patent, because many changes can be made to the present invention without departing from the spirit and scope of the present invention.

[0048] See Figure 1, the traditional fuel detection circuit consists of a switch module, an ADC acquisition module, and a sensor module connected in sequence. The power supply is input from the switch module, and the MCU module is connected to the switch module and the ADC acquisition module. Therefore, when the switch module is turned on, the sensor module and the ADC acquisition module are powered on, and when the switch module is turned off, the sensor module and the ADC acquisition module are powered off. VIN generates two AD values in real time according to the resistance value of the oil pressure sensor for the MCU to detect, and this circuit can only achieve a detection accuracy of plus or minus 3 ohms. In terms of hardware, the internal resistance of the switching transistor in the main circuit of the switch module and the errors of other components (such as zener diodes) cannot guarantee accuracy, so there is an objective error of plus or minus 1% in its voltage dividing resistor.

[0049] Embodiment 1

[0050] A high-precision fuel quantity detection system provided by an embodiment of the present invention, as Figures 2 to 7 shown, in this embodiment, it includes:

[0051] A sensor module 1 connected to the main power supply circuit, including an oil pressure sensor for fuel quantity detection;

[0052] A switch control module 2 connected in parallel with the sensor module 1 and in series on the main power supply circuit, where the switch control module 2 is used to control the short circuit or power-on of the sensor module 1 and perform switch control for fuel quantity detection;

[0053] A state detection module 3 connected in series between the power supply terminal VIN and the sensor module 1, used to capture the resistance value real-time feedback by the oil pressure sensor to obtain fuel quantity acquisition data;

[0054] A data analysis module 4 connected to the output end of the state detection module 3, used to respectively obtain the fuel quantity acquisition data collected when the sensor module 1 is short-circuited and when it is powered on, and perform error compensation calculation to determine the actual fuel quantity.

[0055] In this embodiment, the sensor module 1 further includes a resistor R10. One end of the oil pressure sensor is connected to the first end of the first switching transistor Q1 and the state detection module 3, and the other end is grounded.

[0056] In this embodiment, the respectively obtaining the fuel quantity acquisition data collected when the sensor module 1 is short-circuited and when it is powered on includes:

[0057] The data analysis module 4 drives the switch control module 2 to short-circuit the sensor module 1. At this time, after the power supply terminal VIN is connected to the state detection module 3, it is grounded through the switch control module 2, and the current fuel quantity acquisition data is obtained from the state detection module 3 to obtain the first acquisition data;

[0058] The data analysis module 4 drives the switch control module 2 to disconnect from the state detection module 3. At this time, the sensor module 1 is powered on and conducts, and obtains the current fuel quantity acquisition data from the state detection module 3 to obtain the second acquisition data;

[0059] The first acquisition data and the second acquisition data are the fuel quantity acquisition data collected when the sensor module 1 is short-circuited and when the power is turned on, respectively.

[0060] In this embodiment, the fuel quantity acquisition data is collected when the sensor module 1 is short-circuited and when the power is turned on, so as to determine the change in the resistance value of the circuit resistor in the current state in real time. Therefore, the resistance value error that cannot be eliminated by the hardware device is compensated for in software analysis. The error caused by environmental factors on the change of the circuit resistance value is fully considered, and the error compensation algorithm is optimized. Furthermore, a large improvement in the fuel resistance detection accuracy is achieved, reaching a high-precision level of ±0.5Ω. The detection accuracy of ±0.5Ω enables the system to more accurately reflect the small changes in fuel characteristics, providing more reliable data support for fuel quality analysis and system fault diagnosis.

[0061] In this embodiment, the switch control module 2 includes a first switch tube Q1 connected in series on the main power supply circuit, and a switch module 21 connected to the control end of the first switch tube Q1; the first end of the first switch tube Q1 is connected to the sensor module 1 and the state detection module 3, and the second end is grounded; the power supply terminal VIN is connected to the state detection module 3 and the first switch tube Q1 in sequence to form a main power supply circuit;

[0062] When the switch module 21 controls the first switch tube Q1 to conduct, the sensor module 1 is short-circuited, and the acquisition of the fuel quantity acquisition data is performed to obtain the first acquisition data; when the switch module 21 controls the first switch tube Q1 to turn off, the sensor module 1 is connected to the power supply terminal VIN through the state detection module 3 and is powered on, and the acquisition of the fuel quantity acquisition data is performed to obtain the second acquisition data.

[0063] Among them, the first switch tube Q1 is preferably a MOS tube, including an N-channel MOS tube and a P-channel MOS tube.

[0064] In this embodiment, a first switching transistor Q1 is connected in series to the main power circuit. Since the first switching transistor Q1 is connected in parallel with the sensor module 1, when the first switching transistor Q1 is turned on, the sensor module 1 will be short-circuited, that is, the oil pressure sensor does not work. At this time, the first acquisition data for analyzing the resistance value changing with the environment can be obtained to assist in error compensation; when the first switching transistor Q1 is turned off, the sensor module 1 is powered on and works, and then the second acquisition data related to the oil pressure sensor can be obtained to assist in fuel quantity calculation. The hardware circuit design directly avoids the interference of the internal resistance of the switching transistor when the oil pressure sensor is working, and the circuit control is simple and the cost is low.

[0065] In this embodiment, the switching module 21 includes a second switching transistor Q2, a third switching transistor Q3, a resistor R1, a resistor R2, a resistor R3, and a resistor R4; both ends of the resistor R1 are respectively connected to the control terminal and the second terminal of the third switching transistor Q3;

[0066] The control terminal of the second switching transistor Q2 is connected to the data analysis module 4, the first terminal is connected to the control terminal of the third switching transistor Q3 through the resistor R2, and the second terminal is grounded;

[0067] The first terminal of the third switching transistor Q3 is connected to the control terminal of the first switching transistor Q1 through the resistor R3 and is also grounded through the resistor R4, and the second terminal is connected to the power supply terminal VIN.

[0068] Among them, the second switching transistor Q2 and the third switching transistor Q3 are preferably triodes, including NPN-type triodes and PNP-type triodes.

[0069] In this embodiment, taking the first switching transistor Q1 as an N-channel MOS transistor, the second switching transistor Q2 as an NPN-type triode, and the third switching transistor Q3 as a PNP-type triode as an example, the specific switching control principle is as follows:

[0070] Before the detection operation is started, the MCU module 41 first raises the level of the enable signal MCU_EN, so that the second switching transistor Q2 is closed. The closing of the second switching transistor Q2 further pulls down the base potential of the third switching transistor Q3, so that the third switching transistor Q3 enters the conducting state. Furthermore, the gate voltage of the first switching transistor Q1 approaches the input voltage VIN, resulting in the conduction of the first switching transistor Q1, and then the potential at point VA is approximately the ground potential. At this time, the sensor module 1 is short-circuited, and the circuit is in a non-fuel quantity detection state.

[0071] When the detection process starts, the MCU module 41 disconnects the second switching transistor Q2 by lowering the level of the enable signal MCU_EN. This action immediately raises the base potential of the third switching transistor Q3, forcing the third switching transistor Q3 into the off state. The disconnection of the third switching transistor Q3 ultimately causes the gate voltage of the first switching transistor Q1 to drop, turning off the first switching transistor Q1. The sensor module 1 is connected to the power supply terminal VIN through the state detection module 3 and is powered on, and the circuit is in the fuel level detection state.

[0072] When implementing the switching circuit using two switching transistors in this embodiment, the first-stage switching transistor serves as the input terminal, responsible for amplifying the input signal and transmitting the signal to the second-stage switching transistor. The second-stage switching transistor serves as the output terminal and outputs the amplified signal. In addition, the cascading method of the two triodes can also achieve more precise signal control by adjusting the sizes of the cascading resistors and capacitors, selecting components such as capacitors and inductors with appropriate values, and has the advantages of low cost, good output effect, and high stability.

[0073] In this embodiment, the state detection module 3 includes a first voltage division detection circuit 31, a second voltage division detection circuit 32, and a protection resistor R5; the protection resistor R5 is connected in series on the main power supply loop, one end is connected to the power supply terminal VIN and the first voltage division detection circuit 31, and the other end is connected to the second voltage division detection circuit 32, the switch control module 2, and the sensor module 1; the data analysis module 4 is electrically connected to the first voltage division detection circuit 31 and the second voltage division detection circuit 32;

[0074] When the data analysis module 4 drives the switch control module 2 to short-circuit the sensor module 1, at this time, after the power supply terminal VIN is connected to the state detection module 3, it is grounded through the switch control module 2, and the corresponding fuel level acquisition data is obtained from the second voltage division detection circuit 32 to obtain the first acquisition data;

[0075] When the data analysis module 4 drives the switch control module 2 to disconnect from the state detection module 3, at this time, the sensor module 1 is powered on and conducts, and the corresponding fuel level acquisition data is obtained from the first voltage division detection circuit 31 and the second voltage division detection circuit 32 to obtain the second acquisition data.

[0076] In this embodiment, the first voltage division detection circuit 31 includes a resistor R6 and a resistor R7. One end of the resistor R6 is connected to the protection resistor R5 and the power supply terminal VIN, and the other end is connected to the data analysis module 4; one end of the resistor R7 is connected to the other end of the resistor R6, and the other end is grounded.

[0077] In this embodiment, the second voltage division detection circuit 32 includes a resistor R8 and a resistor R9. One end of the resistor R8 is connected to the protection resistor R5, the switch control module 2, and the sensor module 1, and the other end is connected to the data analysis module 4; one end of the resistor R9 is connected to the other end of the resistor R8, and the other end is grounded.

[0078] In this embodiment, the state detection module 3 is set to be connected to the power supply terminal VIN, and then the sensor module 1 or the switch control module 2 is connected in series on the main power supply loop. On the one hand, it can collect the change of the resistance value, and on the other hand, it can also calculate the resistance value of the oil pressure sensor through dual-channel collection. Furthermore, by accurately monitoring the change of the fuel resistance, the system can more accurately control the fuel injection volume, optimize the combustion process, improve fuel economy, reduce emissions, and meet the current environmental protection trend of energy conservation and emission reduction.

[0079] In this embodiment, performing error compensation calculation to determine the actual fuel quantity includes:

[0080] S1. Obtain the first acquisition data, where the first acquisition data is the fuel quantity acquisition data obtained from the second voltage division detection circuit 32 when the sensor module 1 is short-circuited;

[0081] S2. Obtain the second acquisition data, where the second acquisition data is the fuel quantity acquisition data obtained from the first voltage division detection circuit 31 and the second voltage division detection circuit 32 respectively when the sensor module 1 is powered on and conducting;

[0082] S3. Obtain the wire harness impedance of the two ends of the fuel sensor;

[0083] S4. Perform error compensation calculation according to the first acquisition data, the second acquisition data, and the wire harness impedance to obtain the actual resistance value of the fuel sensor, and obtain the corresponding fuel quantity according to the actual resistance value.

[0084] In this embodiment, referring to Figure 4 , the second acquisition data includes the voltage values of AD_DET1 and AD_DET2.

[0085] The ADC of the MCU module 41 can collect the above two voltage values. Combining with Figure 3 's hardware detection circuit, the following formula can be calculated:

[0086]

[0087] After obtaining the fuel resistance value, the CAN processor performs conversion according to the corresponding relationship between the resistance value and the CAN value, and finally the CAN value is displayed on the display module. Its corresponding relationship is exemplified in the table in Figure 5 .

[0088] As can be seen from the table, the correspondence between the CAN value and the resistance value is very precise, and the allowable error range is between plus or minus 0.5 ohms. In actual applications, the following three error factors need to be considered:

[0089] (1) The resistance value of the wire harness at both ends connected to the sensor.

[0090] (2) The resolution of the AD.

[0091] (3) The error of the resistance value in the circuit.

[0092] If each factor cannot be taken into account, the actual fuel sensor resistance will not be equal to the resistance value obtained by the software algorithm:

[0093] R fls ≠R fls_soft

[0094] In (1), the wire harness error measured in actuality can be added. For the error in (2), the resolution of the AD can be improved. As for the error source in (3), it cannot be avoided because the resistance value is affected by various factors such as process and temperature, and there will be an error of plus or minus 1% in the resistance value. If only a 100-ohm resistor is used, there will be an accuracy error of 1 ohm. Therefore, this error cannot be eliminated in the hardware design. Therefore, the software algorithm compensation method based on the MCU in steps S1 to S4 is designed in the present invention to compensate for this error.

[0095] First step, control by the MCU module 41 to close the first switching transistor Q1, obtain the fuel quantity acquisition data from the second voltage division detection circuit 32, read the VAD_S2 value as the first acquisition data, and the circuit state is as Figure 6 shown.

[0096] Second step, control by the MCU module 41 to open the first switching transistor Q1, obtain the fuel quantity acquisition data from the first voltage division detection circuit 31 and the second voltage division detection circuit 32 respectively, read the voltage values of VAD_DET1 and VAD_DET2 as the second acquisition data, and the circuit state is as Figure 7 shown.

[0097] Third step, perform error compensation calculation according to the first acquisition data, the second acquisition data and the wire harness impedance to obtain the actual resistance value of the fuel sensor, and the compensation calculation formula is as follows:

[0098]

[0099] In the formula, ΔR is the line loss, R fls_soft is the actually calculated resistance value, R flsis the true resistance value of the fuel sensor. Combining the above steps, this embodiment further eliminates the fixed error of the resistance brought by the hardware, significantly improving the fuel detection accuracy.

[0100] This embodiment fully considers the impedance of the wire harness at both ends of the fuel sensor, and at the same time combines the first acquisition data for error compensation calculation. Finally, based on the second acquisition data, the actual resistance value of the fuel sensor is calculated. Considering the line loss and the change of the resistance value can more accurately determine the actual fuel tank volume, and then give the user an accurate fuel volume feedback, enhancing the system reliability. High-precision detection helps to timely discover potential problems in the fuel system, such as fuel filter clogging, fuel pump efficiency decline, etc., so as to take maintenance measures in advance to avoid failures and extend the service life of the system.

[0101] In this embodiment, the data analysis module 4 includes an MCU module 41 and a CAN module 42; the MCU module 41 is connected to the state detection module 3, the switch control module 2, and the CAN module 42, and is used to perform error compensation calculation according to the first acquisition data, the second acquisition data, and the wire harness impedance to obtain the actual resistance value of the fuel sensor; the CAN module 42 is used to obtain the corresponding fuel volume according to the actual resistance value.

[0102] In this embodiment, the fuel volume detection system further includes a liquid crystal meter 5, and the liquid crystal meter 5 is connected to the output end of the CAN module 42. After the actual resistance value is further processed by the CAN module 42, the current fuel volume (i.e., the fuel volume) is finally displayed on the instrument panel.

[0103] Based on the high-precision fuel volume detection requirements, this embodiment of the present invention specifically sets a switch control module 2 and a state detection module 3 respectively connected to both sides of the oil pressure sensor. The switch control module 2 is used to control the on and off of the main power circuit of the sensor module 1 to short-circuit or connect the power supply to the sensor module 1. Then, while accurately executing the on and off of the switch to realize the fuel volume detection, it is ensured that the internal resistance of the switch control module 2 will not affect the data acquisition of the circuit, solving the error of the internal resistance of the switch circuit from the hardware circuit design; at the same time, the data analysis module 4 is connected, and the fuel volume acquisition data collected when the sensor module 1 is short-circuited and when the power supply is connected are respectively obtained, and error compensation calculation is performed to determine the actual fuel volume, eliminating the error brought by the change of the resistance value of the components from the software analysis. Thus, by optimizing the collaborative working mechanism of software and hardware, more accurate and reliable fuel detection is realized, improving the overall performance of the fuel system.

[0104] The implementation of the present invention not only solves the bottleneck of the prior art, but also provides a new idea for the further technological innovation in the field of fuel detection, promoting the industry to develop towards higher precision and more intelligent directions and facilitating technological innovation.

[0105] Embodiment 2

[0106] The present invention also provides a storage medium, on which a computer program is stored, and the computer program is used to be executed by a high-precision fuel quantity detection system as described above to implement fuel quantity detection. Among them, the storage medium can be a magnetic disk, an optical disc, a read-only memory (ROM), or a random access memory (RAM), etc.

[0107] The above embodiments are preferred embodiments of the present invention, but the embodiments of the present invention are not limited to the above embodiments. Any other changes, modifications, substitutions, combinations, and simplifications made without departing from the spirit and principle of the present invention shall be equivalent replacement methods and are all included in the protection scope of the present invention.

Claims

1. A high-precision oil level detection system, characterized in that: include: The sensor module connected to the main power circuit includes an oil pressure sensor for oil level detection; A switch control module connected in parallel with the sensor module and in series with the main power supply circuit, the switch control module is used to control the sensor module to short-circuit or connect the power supply, and is used to perform switch control of oil quantity detection; A state detection module connected in series between the power supply terminal VIN and the sensor module is used to capture the resistance value fed back by the oil pressure sensor in real time to obtain oil volume collection data; The data analysis module connected to the output end of the state detection module is used to obtain the oil quantity collection data collected when the sensor module is short-circuited and when the power is turned on, and perform error compensation calculation to determine the actual fuel quantity.

2. A high-precision oil level detection system as claimed in claim 1, characterized in that: The step of respectively acquiring the oil volume data collected when the sensor module is short-circuited and when the power is turned on comprises: The data analysis module drives the switch control module to short-circuit the sensor module. At this time, the power supply terminal VIN is connected to the state detection module and then grounded through the switch control module. The current oil volume collection data is obtained from the state detection module to obtain the first collection data; The data analysis module drives the switch control module to disconnect from the state detection module, and the sensor module is powered on to obtain the current oil volume collection data from the state detection module to obtain the second collection data; The first collected data and the second collected data are the oil volume collected data collected when the sensor module is short-circuited and when the power is turned on, respectively.

3. A high-precision oil level detection system as claimed in claim 2, characterized in that: The switch control module includes a first switch tube Q1 connected in series on the main power supply circuit, and a switch module connected to the control end of the first switch tube Q1; the first end of the first switch tube Q1 is connected to the sensor module and the state detection module, and the second end is grounded; the power supply end VIN is connected to the state detection module and the first switch tube Q1 to form a main power supply circuit; When the switch module controls the first switch tube Q1 to be turned on, the sensor module is short-circuited, and the oil quantity collection data is collected to obtain the first collection data; when the switch module controls the first switch tube Q1 to be turned off, the sensor module is connected to the power supply terminal VIN through the state detection module and powered on, and the oil quantity collection data is collected to obtain the second collection data.

4. A high-precision oil level detection system as claimed in claim 3, characterized in that: The switch module includes a second switch tube Q2, a third switch tube Q3, a resistor R1, a resistor R2, a resistor R3 and a resistor R4; two ends of the resistor R1 are respectively connected to the control end and the second end of the third switch tube Q3; The control end of the second switch tube Q2 is connected to the data analysis module, the first end is connected to the control end of the third switch tube Q3 through the resistor R2, and the second end is grounded; A first end of the third switch tube Q3 is connected to the control end of the first switch tube Q1 through a resistor R3 and is also grounded through a resistor R4, and a second end of the third switch tube Q3 is connected to the power supply end VIN.

5. A high-precision oil level detection system as claimed in claim 1, characterized in that: The state detection module includes a first voltage-dividing detection circuit, a second voltage-dividing detection circuit and a protection resistor R5; the protection resistor R5 is connected in series to the main power supply circuit, one end of which is connected to the power supply terminal VIN and the first voltage-dividing detection circuit, and the other end is connected to the second voltage-dividing detection circuit, the switch control module and the sensor module; the data analysis module is electrically connected to the first voltage-dividing detection circuit and the second voltage-dividing detection circuit; When the data analysis module drives the switch control module to short-circuit the sensor module, the power supply terminal VIN is connected to the state detection module and then grounded through the switch control module, and the corresponding oil volume collection data is obtained from the second voltage division detection circuit to obtain the first collection data; When the data analysis module drives the switch control module to disconnect from the status detection module, the sensor module is powered on and simultaneously obtains corresponding oil volume collection data from the first voltage division detection circuit and the second voltage division detection circuit to obtain second collection data.

6. A high-precision oil level detection system as claimed in claim 5, characterized in that: The first voltage-dividing detection circuit includes a resistor R6 and a resistor R7, one end of the resistor R6 is connected to the protection resistor R5 and the power supply terminal VIN, and the other end is connected to the data analysis module; one end of the resistor R7 is connected to the other end of the resistor R6, and the other end is grounded.

7. A high-precision oil level detection system as claimed in claim 5, characterized in that: The second voltage-dividing detection circuit includes a resistor R8 and a resistor R9, one end of the resistor R8 is connected to the protection resistor R5, the switch control module and the sensor module, and the other end is connected to the data analysis module; one end of the resistor R9 is connected to the other end of the resistor R8, and the other end is grounded.

8. A high-precision oil level detection system as claimed in claim 5, characterized in that: Perform error compensation calculations to determine the actual fuel quantity, including: Acquire first collected data, where the first collected data is oil volume collected data acquired from the second voltage-dividing detection circuit when the sensor module is short-circuited; Acquire second collected data, where the second collected data is oil volume collected data acquired from the first voltage division detection circuit and the second voltage division detection circuit respectively when the sensor module is powered on; Obtaining the harness impedance of the harnesses at both ends of the fuel sensor; An error compensation calculation is performed according to the first collected data, the second collected data and the harness impedance to obtain an actual resistance value of the fuel sensor, and a corresponding fuel amount is obtained according to the actual resistance value.

9. A high-precision oil level detection system as claimed in claim 8, characterized in that: The data analysis module includes an MCU module and a CAN module; the MCU module is connected to the state detection module, the switch control module, and the CAN module, and is used to perform error compensation calculation according to the first collected data, the second collected data, and the harness impedance to obtain the actual resistance value of the fuel sensor; The CAN module is used to obtain the corresponding fuel amount according to the actual resistance value.

10. A storage medium having a computer program stored thereon, characterized in that: The computer program is used to be executed by a high-precision oil level detection system as claimed in any one of claims 1 to 9 to achieve oil level detection.