A fuel metering detection method, system and fuel dispenser based on pulse collection
By monitoring the operating parameters and phase status of fuel refueling equipment, and combining attitude sensing and liquid level image recognition, multi-source data fusion and dynamic parameter correction are performed. This solves the problems of insufficient multi-source data fusion and weak anti-interference ability in fuel refueling machine metering and detection, and achieves accurate fuel volume measurement and deviation judgment.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- 温州市计量科学研究院
- Filing Date
- 2026-05-11
- Publication Date
- 2026-06-09
AI Technical Summary
Existing fuel dispenser metering and testing technologies suffer from problems such as insufficient multi-source data fusion, fixed parameter calibration, weak anti-interference ability, and low degree of automation, which cannot meet the requirements for judging metering accuracy.
By acquiring the operating parameters of the fuel refueling equipment, monitoring the phase state of the dual-channel metering signals, generating the original pulse sequence after anti-interference processing, and combining attitude sensing data and liquid level image recognition, real-time data acquisition and temperature compensation are performed to generate metering deviation judgment results, thereby realizing the fusion of multi-source data and dynamic parameter correction.
It enables precise measurement and deviation determination of fuel volume, improves measurement accuracy and automation, and ensures the reliability and precision of the metering system.
Smart Images

Figure FT_1 
Figure FT_2 
Figure FT_3
Abstract
Description
Technical Field
[0001] This application relates to a fuel metering and detection method, system, and fuel dispenser based on pulse acquisition, belonging to the technical field of flow rate and liquid level measurement. Background Technology
[0002] Fuel dispensers are crucial measuring instruments used for trade settlement in the refined oil distribution sector. Their accuracy directly impacts consumer rights protection and the regulation of the refined oil market. According to relevant national metrological verification regulations, the maximum permissible error for fuel dispensers is ±0.30%, and the verification cycle should not exceed 6 months. Therefore, to ensure the accuracy of fuel dispenser measurements, comprehensive testing and monitoring of multiple technical indicators, such as pulse counting accuracy, flow meter linearity, and temperature compensation effectiveness, are necessary.
[0003] Currently, existing technologies for detecting and monitoring the accuracy of fuel dispenser metering mainly employ the following methods: 1. Using a single pulse counting method: This method counts the pulse signals output by a metering sensor, multiplies the number of pulses by a preset pulse equivalent, and calculates the refueling volume. However, existing technologies often only focus on the pulse counting itself, neglecting the impact of changes in the fuel dispenser's operating parameters on the pulse equivalent, and have limited ability to handle interfering pulses. 2. Using the static volumetric method for fuel dispenser calibration: This method uses a standard metal measuring instrument as a reference standard, manually reads the liquid level and temperature values, and manually calculates the actual volume by comparing it with the dispenser's reading. However, the static volumetric method relies on manual operation, resulting in large reading errors, low calculation efficiency, and the inability to achieve continuous monitoring. 3. Using an airborne fuel consumption meter tester to detect fuel consumption: However, this method is mainly used in the aviation field and differs significantly from the metering and testing requirements of automotive fuel dispensers, making it unsuitable for the fuel refueling sector.
[0004] It can be seen that the prominent problems of existing technologies include: First, a lack of ability to fuse and process multi-source data. Pulse counting, liquid level measurement, and temperature compensation are independent of each other, failing to form a complete closed loop for judging measurement accuracy. Second, pulse equivalent calibration usually uses fixed values and fails to dynamically correct according to changes in equipment operating parameters, leading to the accumulation of measurement deviations after long-term use. Third, for phase monitoring of dual-channel pulse signals, existing technologies only perform simple counting, lacking accurate identification of phase state anomalies and anti-interference mechanisms. Fourth, leveling operations, liquid level reading, and temperature acquisition during the fuel dispenser calibration process still mainly rely on manual labor, resulting in low automation and difficulty in improving work efficiency. Fifth, existing technologies lack a self-testing and verification mechanism for the pulse counting unit, making it impossible to verify the reliability of the pulse counting function before or during use.
[0005] In summary, existing technologies for judging the accuracy of fuel dispenser metering have technical defects such as insufficient fusion of multi-source data, fixed parameter calibration, weak anti-interference ability, and low degree of automation. They can no longer meet people's requirements and urgently need to be improved. Summary of the Invention
[0006] The main objective of this application is to provide a fuel metering and detection method, system, and fuel dispenser based on pulse acquisition, which can integrate multi-source data, realize dynamic parameter correction, and have self-testing and verification functions, thereby overcoming the shortcomings of the prior art.
[0007] The embodiments of this application are implemented using the following technical solutions: According to one aspect of the embodiments of this application, a fuel metering detection method based on pulse acquisition is provided, comprising: acquiring the operating parameters of a fuel refueling device; determining an initial calibration value of the pulse conversion coefficient based on the operating parameters; during the fuel refueling process, monitoring the phase state of the dual-channel metering signal through time-series sampling; when the phase state of the dual-channel metering signal is detected to be cyclically switched according to a preset progressive sequence, determining the current phase state as a valid pulse sequence, or: generating an original pulse sequence after anti-interference processing; acquiring attitude sensing data in real time, generating a corresponding attitude deviation correction amount, and executing a closed-loop feedback adjustment command based on the attitude deviation correction amount until the attitude sensing data converges within a preset tolerance range; By performing image recognition and feature extraction on the liquid level image, an actual liquid level height measurement value is generated; by synchronously sampling and filtering the multi-source temperature parameters of the fuel, a medium temperature compensation coefficient is generated; by graded control of the airflow rate of the pneumatic simulation device, a simulated pulse signal is generated, and the pulse counting unit is verified based on the simulated pulse signal to generate a counting accuracy verification result; when the counting accuracy verification result indicates that the verification is passed, a comprehensive calculation result of the actual medium volume under standard operating conditions is generated by comprehensively calculating the original pulse sequence, the actual liquid level height measurement value, and the medium temperature compensation coefficient, and a measurement deviation judgment result is generated based on the comparison between the comprehensive calculation result and the value indicated by the filling equipment.
[0008] According to at least one specific embodiment of the present application, the step of acquiring the operating parameters of the fuel refueling equipment, determining the initial calibration value of the pulse conversion coefficient based on the operating parameters, and monitoring the phase state of the dual-channel metering signal through time-sequence sampling during the fuel refueling process, and determining the current phase state as a valid pulse sequence when the phase state of the dual-channel metering signal is detected to be switching sequentially according to a preset progressive sequence, or: generating the original pulse sequence after anti-interference processing, further includes: cyclically reading the level state combination of the dual-channel metering signal at a preset sampling interval to obtain the phase state value at the current sampling time, and performing a differential comparison between the current phase state value and the phase state value at the previous sampling time; when the comparison result indicates that the phase state is switching sequentially according to the preset progressive sequence, generating a valid pulse. The system determines the signal and increments the pulse counter by one, writing the current phase state value into the state trajectory buffer. Alternatively, if the comparison result indicates that the phase state switching order deviates from the preset progressive sequence, the pulse counter increment operation is stopped, the current phase state value is marked as a disturbance state value and stored in the disturbance log buffer, and the disturbance occurrence time is recorded. Based on the pulse counter's increment result during the fuel refueling process, the total number of valid pulse sequences is generated, or the original pulse sequence after anti-interference processing is generated. Based on the disturbance state value stored in the disturbance log buffer and the corresponding disturbance occurrence time, an anti-interference processing record is generated. After fuel refueling is completed, an anti-interference processing report containing valid pulse count information and interference event tracing information is generated by associating and storing the original pulse sequence with the anti-interference processing record.
[0009] According to at least one specific embodiment of the present application, the method further includes: extracting the occurrence frequency and distribution characteristics of historical disturbance events by reading historically stored anti-interference processing reports, adjusting the preset sampling interval based on the occurrence frequency of the historical disturbance events, shortening the preset sampling interval when the occurrence frequency of historical disturbance events exceeds a preset threshold, or restoring the preset sampling interval to its initial setting value when the occurrence frequency of historical disturbance events is lower than the preset threshold.
[0010] According to at least one specific embodiment of the present application, the step of real-time data acquisition of attitude sensing data, generating a corresponding attitude deviation correction amount, executing a closed-loop feedback adjustment command based on the attitude deviation correction amount until the attitude sensing data converges within a preset tolerance range; generating an actual liquid level height calculation value by performing image recognition and feature extraction on the liquid level image; and generating a medium temperature compensation coefficient by synchronously sampling and filtering the multi-source temperature parameters of the fuel, further includes: acquiring current attitude sensing data, comparing the current attitude sensing data with a preset horizontal reference value, calculating the attitude deviation correction amount, generating a rotation direction control command and step pulse count for a stepper motor based on the attitude deviation correction amount, and outputting the rotation direction control command and step pulse count through a general-purpose input / output interface. The pulse is used to drive the stepper motor to rotate until the attitude sensing data converges within a preset tolerance range; the original liquid level image of the liquid level tube is acquired through the camera interface, and image recognition and feature extraction are performed on the original liquid level image to obtain the pixel coordinates of the liquid level feature points. Based on the pre-stored camera calibration parameters, the pixel coordinates of the liquid level feature points are converted into actual physical height values to generate the actual liquid level height calculation value; the temperature signal at the measuring vessel outlet and the temperature signal inside the measuring vessel are simultaneously acquired through the analog-to-digital converter to obtain the first temperature digital value and the second temperature digital value. The first temperature digital value and the second temperature digital value are filtered to generate the first temperature filtered value and the second temperature filtered value. Based on the weighted average of the first temperature filtered value and the second temperature filtered value, the temperature-volume compensation coefficient mapping function is called to calculate the medium temperature compensation coefficient.
[0011] According to at least one specific embodiment of the present application, the image recognition and feature extraction further includes: grayscale conversion, Gaussian filtering, Canny edge detection, and extraction of pixel coordinates of the lowest point of the concave liquid surface; the temperature-volume compensation coefficient mapping function is specifically: based on the mathematical correspondence established by the thermal expansion characteristics of oil, the collected oil temperature value is mapped to a volume compensation coefficient.
[0012] According to at least one specific embodiment of the present application, the step of generating a simulated pulse signal by graded control of the airflow rate of the pneumatic simulation device, performing verification of the pulse counting unit based on the simulated pulse signal, and generating a counting accuracy verification result; when the counting accuracy verification result indicates that the verification is passed, generating a comprehensive calculation result of the actual medium volume under standard working conditions by comprehensively calculating the original pulse sequence, the actual liquid level height measurement value, and the medium temperature compensation coefficient, and generating a metering deviation judgment result based on the comparison value between the comprehensive calculation result and the indication value of the filling equipment, further includes: generating an airflow rate of a preset flow level by controlling the opening of the air valve of the pneumatic simulation device, driving the impeller of the consumption sensor to rotate using the airflow rate of the preset flow level to obtain a simulated pulse signal corresponding to the preset flow level, and reading the counting of the pulse counting unit based on the simulated pulse signal. The system calculates the original volume by comparing the count output value with the theoretical pulse count corresponding to the preset flow level. It then calculates the original volume based on the product of the total effective pulse count of the original pulse sequence and the initial calibration value of the pulse conversion coefficient. Based on the correspondence between the actual liquid level measurement and the volume-height of the standard metal measuring vessel, it calculates the actual volume value inside the measuring vessel. The system then verifies the consistency between the original volume calculation result and the actual volume value inside the measuring vessel, generating a volume value to be compensated. Finally, it multiplies the volume value to be compensated with the medium temperature compensation coefficient to calculate the comprehensive calculation result of the actual medium volume under standard operating conditions. Based on the difference between the comprehensive calculation result and the reading on the filling device, it calculates the absolute deviation value and the relative deviation percentage, comparing these with preset thresholds to generate a measurement deviation judgment result.
[0013] According to at least one specific embodiment of the present application, the initial calibration value of the pulse conversion coefficient is specifically: the reference setting value of the pulse equivalent during verification or calibration, used to represent the standard volume corresponding to each pulse; the volume-height correspondence is specifically: a pre-calibrated functional relationship of a standard metal measuring instrument, used to describe the mapping law between the liquid level height and the corresponding volume in the measuring instrument; the comprehensive calculation result is specifically: multi-source data that integrates the original pulse sequence, the actual liquid level height measurement value, and the medium temperature compensation coefficient; the refueling device indication is specifically: the volume value displayed by the fuel dispenser during the refueling process; the measurement deviation judgment result is specifically: a qualified or unqualified judgment conclusion generated based on the comparison calculation between the comprehensive calculation result and the refueling device indication.
[0014] According to at least one specific embodiment of the present application, the method further includes: when the measurement deviation judgment result is a non-compliance judgment conclusion, calculating the actual deviation of the pulse conversion coefficient based on the difference between the original pulse sequence and the actual liquid level height measurement value, comparing the actual deviation with a preset deviation grading threshold to obtain a deviation level, generating a corresponding calibration strategy identifier based on the deviation level; and calling the corresponding calibration execution path based on the calibration strategy identifier: when the deviation level is low, generating a temporary correction coefficient by superimposing the actual deviation to the initial calibration value of the pulse conversion coefficient; when the deviation level is high, generating an encoder zero-point calibration value by comparing the phase offset of the dual-channel measurement signals, and refitting the weight parameters of the temperature-volume compensation coefficient mapping function based on the correlation analysis of historical multi-source temperature parameters and measurement deviation.
[0015] According to another aspect of the embodiments of this application, a fuel metering and detection system based on pulse acquisition is provided to implement the aforementioned fuel metering and detection method based on pulse acquisition, comprising: a phase state monitoring module for dual-channel metering signals, which acquires the operating parameters of the fuel refueling device, determines the initial calibration value of the pulse conversion coefficient based on the operating parameters, monitors the phase state of the dual-channel metering signals through time-series sampling during the fuel refueling process, and determines the current phase state as a valid pulse sequence when the phase state of the dual-channel metering signals is detected to be cyclically switching according to a preset progressive sequence, or: generates an original pulse sequence after anti-interference processing; and an image recognition and feature extraction implementation module, which performs real-time data acquisition of attitude sensing data, generates a corresponding attitude deviation correction amount, and performs closed-loop feedback adjustment based on the attitude deviation correction amount. The process continues until the attitude sensing data converges within a preset tolerance range; image recognition and feature extraction are performed on the liquid level image to generate the actual liquid level height calculation value; multi-source temperature parameters of the fuel are synchronously sampled and filtered to generate a medium temperature compensation coefficient; the metering deviation judgment result generation module generates a simulated pulse signal by graded control of the airflow rate of the pneumatic simulation device, performs verification of the pulse counting unit based on the simulated pulse signal, and generates a counting accuracy verification result; when the counting accuracy verification result indicates that the verification is passed, the original pulse sequence, the actual liquid level height calculation value, and the medium temperature compensation coefficient are comprehensively calculated to generate a comprehensive calculation result of the actual medium volume under standard operating conditions, and a metering deviation judgment result is generated based on the comparison between the comprehensive calculation result and the value indicated by the filling equipment.
[0016] According to another aspect of the embodiments of this application, a fuel dispenser is provided, wherein the fuel dispenser has the aforementioned pulse acquisition-based fuel metering and detection system built into it.
[0017] The beneficial technical effects of the embodiments of this application are: This application integrates multiple processes such as pulse phase monitoring, automatic attitude leveling, liquid level image recognition, multi-source temperature compensation, and pneumatic simulation self-testing to construct a fuel metering accuracy detection process. In the processing, pulse signal anti-interference processing is combined with multi-source sensor data collaborative calculation to achieve accurate fuel volume measurement and deviation determination.
[0018] In the processing of this application embodiment, pulse phase monitoring and aerodynamic simulation self-test work together to identify the phase state by pre-set progressive sequence, prevent interference pulses from generating a pure original pulse sequence, and then perform pre-verification of the counting unit by simulated pulse signal. The two steps together ensure the reliability of pulse counting and lay the data foundation for volume calculation.
[0019] This application embodiment also achieves data fusion through attitude leveling, liquid level recognition, and temperature compensation. Attitude leveling eliminates errors in liquid level measurement, liquid level recognition provides visual verification data, and temperature compensation eliminates the influence of oil thermal expansion. The synergistic cooperation between attitude leveling, liquid level recognition, and temperature compensation significantly improves the accuracy of medium volume measurement. Finally, by comparing the comprehensive calculation results with the readings of the filling equipment, a reliable measurement deviation judgment result is generated. Attached Figure Description
[0020] To more clearly illustrate the specific implementation methods of the embodiments of this application or the technical solutions in the prior art, the drawings used in the description of the specific implementation methods or the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0021] Figure 1 This is a flowchart of the technical solutions provided in steps S1 to S3.
[0022] Figure 2 This is a flowchart of the optimization technical solutions provided in steps S11 to S13.
[0023] Figure 3 This is a flowchart of the optimization technical solutions provided in steps S21 to S23.
[0024] Figure 4 This is a flowchart of the optimization technical solutions provided in steps S31 to S33.
[0025] Figure 5 This is an architecture diagram of a fuel metering and detection system based on pulse acquisition. Detailed Implementation
[0026] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the embodiments of this application, and not all embodiments. Based on the specific implementation methods in the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the protection scope of the embodiments of this application.
[0027] like Figure 1 The fuel metering and detection method based on pulse acquisition shown includes the following steps: Step S1: Obtain the operating parameters of the fuel refueling equipment. Determine the initial calibration value of the pulse conversion coefficient based on the operating parameters. During the fuel refueling process, monitor the phase state of the dual-channel metering signal through time-series sampling. When the phase state of the dual-channel metering signal is detected to be cyclically switching according to a preset progressive sequence, determine the current phase state as a valid pulse sequence, or: generate the original pulse sequence after anti-interference processing. In this step, the fuel refueling equipment is acquired based on the data interaction between the data acquisition terminal and the fuel dispenser's metering transmission mechanism.
[0028] Step S2: Real-time data acquisition of attitude sensing data is performed to generate corresponding attitude deviation correction amount. Based on the attitude deviation correction amount, closed-loop feedback adjustment command is executed until the attitude sensing data converges within the preset tolerance range. By performing image recognition and feature extraction on the liquid level image, the actual liquid level height is calculated. By synchronously sampling and filtering the multi-source temperature parameters of fuel, the medium temperature compensation coefficient is generated.
[0029] Step S3: By graded control of the airflow rate of the pneumatic simulation device, a simulated pulse signal is generated. Based on the simulated pulse signal, the pulse counting unit is checked to generate a counting accuracy check result. When the counting accuracy check result indicates that the check has passed, the original pulse sequence, the actual liquid level height measurement value, and the medium temperature compensation coefficient are comprehensively calculated to generate a comprehensive calculation result of the actual medium volume under standard working conditions. Based on the comparison between the comprehensive calculation result and the value indicated by the filling equipment, a measurement deviation judgment result is generated.
[0030] Explanation of the name: Initial calibration value: The pulse equivalent is the reference value determined during the first calibration or verification of the equipment. It represents the standard volume corresponding to each pulse signal, with the unit being liters / pulse. It is the basic parameter for subsequent metrological calculations.
[0031] Dual-channel metering signal: Two pulse signals with a 90° phase difference are synchronously output by the flow meter. They are used to determine the rotation direction of the flow meter and detect interference. The phase state is characterized by the level state or electrical phase combination of the two signals.
[0032] Preset incremental sequence cycle: The phase state or level state of the dual-channel metering signal changes cyclically in a preset order, which represents the normal phase change pattern of the flowmeter in the forward rotation and can be used as a reference sequence to judge the validity of the pulse.
[0033] Data acquisition terminal: An external data acquisition device installed on the side of the fuel dispenser, used to receive pulse signals output by the metering transmission mechanism, perform phase status monitoring, anti-interference processing and pulse counting, and upload the data to the host computer system.
[0034] The fuel dispenser's metering transmission mechanism is the mechanical and electronic component inside the fuel dispenser responsible for flow measurement. It includes flow measurement converters and encoders, converting fuel flow into pulse signal outputs, serving as the source of metering data. The data acquisition terminal interacts with the fuel dispenser's metering transmission mechanism via a signal cable connection. The data acquisition terminal receives the dual-channel pulse signals output by the transmission mechanism, performs level sampling and phase monitoring, and simultaneously reads the transmission mechanism's equipment model, pulse equivalent, and other operating parameters through an interactive interface, achieving bidirectional data exchange.
[0035] Attitude deviation correction amount: The correction parameter is calculated based on the difference between the current tilt angle collected by the tilt sensor and the horizontal reference value. It includes information on the direction and magnitude of the deviation and is used to generate the rotation direction control command and step pulse number of the stepper motor.
[0036] Multi-source temperature parameters: Temperature data collected from different locations, including the oil temperature at the fuel dispenser outlet and the oil temperature inside the standard metal measuring instrument, are used to eliminate the influence of oil temperature changes on volume measurement results and are the basic input for temperature compensation calculation.
[0037] Medium temperature compensation coefficient: A correction factor calculated based on the thermal expansion characteristics of oil, which converts the volume at actual temperature to the volume at standard temperature. The calculation formula is 1+β×(20-T), where β is the volume expansion coefficient of oil.
[0038] Graded control: The airflow rate of the pneumatic simulation device is divided into multiple preset levels (such as large, medium and small flow rates). The airflow rate is adjusted step by step by controlling the opening of the air valve to simulate the pulse signal output under different flow conditions.
[0039] Simulated pulse signal: The simulated pulse signal generated by driving the impeller of the consumption sensor through a pneumatic simulation device is used to perform self-testing and verification of the pulse counting unit without actual refueling, thus verifying the accuracy of the counting function.
[0040] Accuracy verification result: The verification result is generated by comparing the count output value of the pulse counting unit to the simulated pulse signal with the preset theoretical pulse number. It is used to determine whether the pulse counting unit is working properly and serves as a prerequisite for subsequent comprehensive calculation.
[0041] The volume displayed on the fuel dispenser panel during the refueling process is a measurement result used for trade settlement. It is compared with the actual volume measured by the calibrated standard metal measuring instrument, and the measurement is judged by the comparison result to determine whether the measurement is qualified.
[0042] Pneumatic simulation device: The pneumatic simulation device is a test device that uses compressed gas to simulate fluid flow. By controlling the opening of the air valve to adjust the airflow rate, it drives the impeller of the consumption sensor to rotate and generate simulated pulse signals. It is used to verify the counting accuracy of the pulse counting unit without actually adding fuel or other media.
[0043] The technical solutions provided in steps S1 to S3 construct a complete process for fuel metering accuracy detection. Step S1 acquires operating parameters through the interaction between the data acquisition terminal and the fuel dispenser transmission mechanism, and uses phase state monitoring to achieve anti-interference processing of pulse signals, generating a pure original pulse sequence. Step S2 integrates automatic attitude leveling, liquid level image recognition, and multi-source temperature compensation to eliminate physical errors and environmental interference in the measurement system. Step S3 verifies the reliability of the pulse counting unit through pneumatic simulation self-testing. After successful verification, the data from the first three steps are comprehensively calculated to finally generate the metering deviation judgment result.
[0044] In the process from step S1 to step S3, step S1 identifies and eliminates interfering pulses through phase transition sequence to ensure the accuracy of the original pulse sequence; the attitude calibration flag output in step S2 controls the liquid level acquisition, and the liquid level height and temperature compensation coefficient provide a verification benchmark for the comprehensive calculation in step S3. Step S3, based on step S2, jointly calculates the original pulse sequence with the liquid level and temperature data, so that the measurement of the actual medium volume depends on both the dynamic response capability of the pulse counting and the actual reference of physical measurement. By mutually verifying and constraining the response capability and physical measurement, a highly reliable measurement deviation judgment result is generated.
[0045] It can be seen that step S3 performs a self-check on the pulse counting unit based on the output results of steps S1 and S2 before comprehensive calculation. Only after the check passes can subsequent calculations be performed, which avoids misjudgment caused by the pulse counting unit itself and significantly improves the reliability of the measurement deviation judgment result.
[0046] Preferably, in step S1, the fuel dispenser flow meter outputs two pulse signals with a 90° phase difference, for example, generating phase A and phase B. When the flow meter rotates forward, the phase states of the two signals change cyclically according to a fixed sequence, such as AA-AB-BB-BA. Similar sequences are continuously monitored through timing sampling. When a state change is detected in a preset order, it is determined to be a valid pulse and the count is accumulated. When a state jump or sequence error is detected, it is determined to be an interference pulse and filtered out. In this process, real-time monitoring continuously determines whether the current sequence is a valid pulse sequence. If it is determined not to be a valid pulse sequence, the complete interference pulse sequence is filtered out after the pulse sequence is sent, thus achieving anti-interference processing.
[0047] Two signal discrimination modes are provided in step S1: pre-processing mode and post-processing mode, wherein: Pre-emptive mode: During refueling, electromagnetic interference causes an abnormal transition in the pulse signal: The normal phase sequence should be AA-AB-BB-BA, but the interference changes it to AA-AB-AA-BB-AB, generating an abnormal signal. There is an extra AA between AB and BB. When AA is detected, it is immediately regarded as an invalid pulse and not counted. The interference is filtered out on the spot.
[0048] Post-event mode (after pulse sequence transmission): First, the original signal sequence containing abnormal transitions (AA-AB-AA-BB-BA) is recorded completely. Then, through backtracking analysis, AB-AA is identified as not conforming to the preset transition sequence, marked as interference and removed. Then, it is reassembled into a valid pulse sequence AA-AB-BB-BA. Finally, pulse counts are generated based on the repaired sequence.
[0049] The pre-emptive and post-emptive models can be summarized as follows: Anti-interference processing is performed using a pre-defined mode: During the fuel refueling process, every phase state switching event is monitored in real time. When the switching direction of the current phase state and the previous phase state is detected to conform to the cyclical order of the preset progressive sequence, the current switching event is determined to be a valid pulse and the count is accumulated. When the switching direction is detected to deviate from the preset progressive sequence, the current switching event is determined to be an interference pulse and filtered out, and the count is not accumulated.
[0050] Anti-interference processing is performed in a post-event mode: During the fuel refueling process, the timing trajectory of all phase state switching events is fully recorded to generate an original switching sequence containing valid pulses and interference pulses; after the fuel refueling is completed, the original switching sequence is back-analyzed to identify abnormal switching signals that do not conform to the preset cyclic sequence order, and these abnormal switching signals are removed. The remaining switching signals that conform to the cyclic sequence are then reassembled in chronological order to generate an effective pulse sequence after anti-interference processing.
[0051] In summary, it can be seen that the pre-processing mode and the post-processing mode are essentially the same. Both filter out interference by identifying state changes that do not conform to the changing sequence. The only difference is whether the processing is done in real time or after the fact.
[0052] This application embodiment constructs a complete process for fuel metering accuracy detection through the technical solutions provided in steps S1 to S3. Step S1 acquires operating parameters based on the interaction between the data acquisition terminal and the fuel dispenser transmission mechanism, and uses phase state monitoring to achieve anti-interference processing of the pulse signal, generating a pure original pulse sequence. Step S2 integrates automatic attitude leveling, liquid level image recognition, and multi-source temperature compensation to eliminate physical errors and environmental interference in the measurement system. Step S3 verifies the reliability of the pulse counting unit through pneumatic simulation self-testing. After successful verification, the data generated in the three steps are comprehensively calculated to finally generate the metering deviation judgment result.
[0053] like Figure 2 As shown, preferably, in step S1, the process of acquiring the operating parameters of the fuel refueling equipment, determining the initial calibration value of the pulse conversion coefficient based on the operating parameters, and monitoring the phase state of the dual-channel metering signal through time-series sampling during fuel refueling, and determining the current phase state as a valid pulse sequence when the phase state of the dual-channel metering signal is detected to be cyclically switching according to a preset progressive sequence, or generating an original pulse sequence after anti-interference processing, further includes: Step S11: The level state combination of the dual-channel metering signal is read cyclically at a preset sampling interval to obtain the phase state value at the current sampling time. The current phase state value is then differentially compared with the phase state value at the previous sampling time. When the comparison result indicates that the phase state is switching sequentially according to a preset changing sequence, a valid pulse judgment signal is generated, the pulse counter is incremented by one, and the current phase state value is written into the state trajectory buffer, or: Step S12: When the comparison result indicates that the switching order of the phase state deviates from the preset progressive sequence, the pulse counter's accumulation operation is stopped, the current phase state value is marked as a disturbance state value and stored in the disturbance log buffer, and the time of disturbance occurrence is recorded. In this step, the disturbance log buffer can be a built-in or external storage medium.
[0054] Step S13: Based on the cumulative result of the pulse counter during the fuel refueling process, generate the total number of valid pulse sequences, or: generate the original pulse sequence after anti-interference processing; based on the disturbance state value and the corresponding disturbance occurrence time stored in the disturbance log buffer, generate an anti-interference processing record; after the fuel refueling is completed, generate an anti-interference processing report containing valid pulse count information and interference event tracing information by associating and storing the original pulse sequence with the anti-interference processing record.
[0055] The optimized technical solution provided in steps S11 to S13 establishes a dual-path processing mechanism for pulse signals: Step S11 continuously monitors the phase state at a preset sampling interval. When a sequential switch conforming to a preset changing sequence is detected, a valid pulse signal is generated and the count is accumulated. Simultaneously, the state value is stored in the trajectory buffer. Step S12 pauses the counting when the switching sequence deviates from the changing sequence and stores the disturbance state value and the time of occurrence in the disturbance log buffer. Step S13 generates a valid pulse sequence based on the accumulated count result and generates an anti-interference processing record based on the disturbance log. After the annotation is completed, the two are associated and stored as a complete anti-interference processing report.
[0056] As can be seen, in the optimized technical solution from steps S11 to S13, step S11 is responsible for identifying valid pulses and continuously accumulating them, while step S12 identifies interference pulses and blocks them from entering the counting channel. These two steps work together to ensure that only valid pulses are included during the counting and accumulation process, guaranteeing the validity of the original pulse sequence. Step S13 associates and stores the pulse sequence generated in step S11 with the disturbance log recorded in step S12. This preserves the original valid measurement data for volume calculation and fully records the temporal distribution of interference events for post-event analysis and fault diagnosis, ensuring the accuracy and traceability of the measurement system.
[0057] The optimized technical solution in steps S11 to S13 may further include: before the subsequent fuel refueling begins, by reading the historically stored anti-interference processing report, extracting the occurrence frequency and distribution characteristics of historical disturbance events, adjusting the preset sampling interval based on the occurrence frequency of the historical disturbance events, shortening the preset sampling interval when the occurrence frequency of historical disturbance events exceeds a preset threshold in order to improve the resolution of phase state monitoring, or: restoring the preset sampling interval to the initial set value when the occurrence frequency of historical disturbance events is lower than the preset threshold.
[0058] It can be seen that further improvements can be made based on steps S11 to S13, introducing an adaptive sampling interval adjustment mechanism based on historical disturbance event statistics: before the subsequent fuel refueling begins, the historically stored anti-interference processing report is read, and the occurrence frequency and distribution characteristics of disturbance events are extracted. When the historical disturbance frequency exceeds the preset threshold, the preset sampling interval is shortened to improve the resolution of phase state monitoring, and when the disturbance frequency is lower than the preset threshold, the sampling interval is restored to the initial setting value.
[0059] Through the adaptive sampling interval adjustment mechanism, the historical anti-interference processing report and the current sampling parameters work together: the anti-interference processing report generated in step S13 during the previous refueling process records the temporal distribution and occurrence frequency of disturbance events. The temporal distribution and occurrence frequency become the basis for adjusting the sampling interval before this refueling, realizing the feedback of historical interference characteristics to the sampling parameter configuration, so that the monitoring accuracy and system resource consumption can maintain a dynamic balance.
[0060] Furthermore, an adaptive adjustment and coordination mechanism is formed between the disturbance frequency and the sampling interval: when historical data indicates a severe interference environment, the sampling interval is shortened to improve monitoring resolution and enhance the detection capability of abnormal phase states; when the interference environment is favorable, the initial sampling interval is restored to reduce system load. This adaptive adjustment and coordination mechanism, based on dynamic adjustment using historical feedback, enables the pulse monitoring system to adapt to different operating conditions, optimizing resource utilization efficiency while ensuring anti-interference capabilities and guaranteeing the normal operation of fuel metering and detection.
[0061] like Figure 3 As shown, preferably, in step S2, the real-time data acquisition of attitude sensing data generates a corresponding attitude deviation correction amount, and a closed-loop feedback adjustment command is executed based on the attitude deviation correction amount until the attitude sensing data converges within a preset tolerance range; the actual liquid level height is calculated by performing image recognition and feature extraction on the liquid level image; and a medium temperature compensation coefficient is generated by synchronously sampling and filtering the multi-source temperature parameters of the fuel. This further includes: Step S21: Acquire current attitude sensing data, compare the current attitude sensing data with a preset horizontal reference value, calculate the attitude deviation correction amount, generate a rotation direction control command and step pulse count for the stepper motor based on the attitude deviation correction amount, and output the rotation direction control command and step pulse count through a general-purpose input / output interface to drive the stepper motor to rotate until the attitude sensing data converges within a preset tolerance range. The stepper motor is part of the fuel dispenser calibration device and can be installed externally on the fuel dispenser. It is a specialized testing device used by metrology supervision departments to periodically check whether the fuel dispenser's metering function is correct. The attitude deviation correction amount in this step refers to the correction parameter calculated based on the difference between the current tilt angle collected by the tilt sensor and the horizontal reference value. The correction parameter includes information on the deviation direction and magnitude. The function of the attitude deviation correction amount is to generate a rotation direction control command and step pulse count for the stepper motor, driving the calibration device to automatically level until the standard metal measuring instrument is in a horizontal state.
[0062] Step S22: Acquire the original liquid level image of the liquid level tube through the camera interface, perform image recognition and feature extraction on the original liquid level image to obtain the pixel coordinates of the liquid level feature points, and convert the pixel coordinates of the liquid level feature points into actual physical height values based on the pre-stored camera calibration parameters to generate the actual liquid level height calculation value.
[0063] Step S23: Synchronously acquire the temperature signal at the measuring instrument port and the temperature signal inside the measuring instrument through an analog-to-digital converter to obtain a first temperature digital value and a second temperature digital value. Perform filtering processing on the first temperature digital value and the second temperature digital value to generate a first temperature filter value and a second temperature filter value. Based on the weighted average of the first temperature filter value and the second temperature filter value, call the temperature-volume compensation coefficient mapping function to calculate the medium temperature compensation coefficient.
[0064] In the optimized technical solutions provided in steps S21 to S23, step S21 calculates the deviation correction amount based on attitude sensing data, generates stepper motor control commands to drive the external calibration device to automatically level, ensuring that the standard measuring instrument is in a horizontal state. Step S22 acquires images of the liquid level tube through a camera, and converts the pixel coordinates into the actual liquid level height through grayscale conversion, filtering, edge detection, and feature point extraction. Step S23 simultaneously acquires the temperature at the measuring instrument opening and inside the measuring instrument, and after filtering and weighted averaging, calls the temperature-volume compensation function to generate the medium temperature compensation coefficient.
[0065] It can be seen that step S21 eliminates the system error of liquid level reading caused by the tilt of the measuring instrument by automatic leveling, and step S22 collects liquid level images after the horizontal reference is established. Steps S21 and S22 together ensure that the physical reference of the actual liquid level height measurement is accurate and reliable, and avoid misreading of liquid level caused by the tilt of the measuring instrument.
[0066] Steps S22 and S23 constitute a data fusion processing method for volume correction. The liquid level measurement value provides visual verification data of the actual volume, and the multi-source temperature acquisition and weighted average processing generate a temperature compensation coefficient. The two work together in the subsequent comprehensive calculation, so that the final actual medium volume calculation relies on the intuitive verification of liquid level measurement and is subject to the physical correction of temperature compensation, forming a dual constraint mechanism, which improves the accuracy and reliability of volume calculation.
[0067] The image recognition and feature extraction further include: grayscale conversion, Gaussian filtering, Canny edge detection, and extraction of pixel coordinates of the lowest point of the concave meniscus. The temperature-volume compensation coefficient mapping function specifically maps the collected oil temperature value to a volume compensation coefficient based on a mathematical correspondence established by the oil's thermal expansion characteristics. The temperature-volume compensation coefficient mapping function uses a standard temperature as a reference, calculates the expansion or contraction per unit volume when the temperature deviates from the standard value using the oil's volume expansion coefficient, and outputs a compensation coefficient to correct the measured volume. For example, the standard temperature can be set to 20℃, and the expansion or contraction of the oil can be measured using 20℃ as a reference, outputting a compensation coefficient to correct the measured volume.
[0068] like Figure 4 As shown, preferably, in step S3, the process of generating a simulated pulse signal by graded control of the airflow rate of the pneumatic simulation device, performing a pulse counting unit verification based on the simulated pulse signal, and generating a counting accuracy verification result; when the counting accuracy verification result indicates that the verification is passed, a comprehensive calculation result of the actual medium volume under standard operating conditions is generated by comprehensively calculating the original pulse sequence, the actual liquid level height measurement value, and the medium temperature compensation coefficient, and a measurement deviation judgment result is generated based on the comparison value between the comprehensive calculation result and the indication value of the filling equipment, further including: Step S31: By controlling the opening of the air valve of the pneumatic simulation device, an airflow rate of a preset flow level is generated. The airflow rate of the preset flow level is used to drive the impeller of the consumption sensor to rotate, thereby obtaining a simulated pulse signal corresponding to the preset flow level. Based on the simulated pulse signal, the counting output value of the pulse counting unit is read, and the counting output value is compared with the theoretical pulse number corresponding to the preset flow level to generate a counting accuracy verification result.
[0069] Step S32: Based on the product of the total number of effective pulses in the original pulse sequence and the initial calibration value of the pulse conversion coefficient, the original volume calculation result is calculated; based on the correspondence between the actual liquid level height measurement value and the volume-height of the standard metal measuring instrument, the actual volume value inside the measuring instrument is calculated; the consistency of the original volume calculation result and the actual volume value inside the measuring instrument is verified to generate the volume value to be compensated. The standard metal measuring instrument in this step is a high-precision standard measuring instrument used to measure the volume of liquids or gases. It can be used as a measuring scale for fuel dispenser calibration and is a commonly used tool in this field.
[0070] Step S33: Multiply the volume value to be compensated by the medium temperature compensation coefficient to calculate the comprehensive calculation result of the actual medium volume under standard operating conditions; calculate the absolute deviation value and relative deviation percentage based on the difference between the comprehensive calculation result and the reading of the filling equipment; compare the absolute deviation value and relative deviation percentage with a preset threshold to generate a measurement deviation judgment result. In this step, the absolute deviation value can also be a percentage value, but it is customarily labeled as %.
[0071] The initial calibration value of the pulse conversion coefficient is specifically: the benchmark setting value of the pulse equivalent during verification or calibration, used to represent the standard volume corresponding to each pulse. The unit of the standard volume is liters / pulse, which can be used as the basic parameter for subsequent metrological calculations.
[0072] The volume-height correspondence is specifically defined as a pre-calibrated function of a standard metal measuring instrument, used to describe the mapping relationship between the liquid level height and the corresponding volume within the instrument, and used to convert the measured liquid level height into the actual volume value.
[0073] The comprehensive calculation result is specifically the actual medium volume value under standard operating conditions obtained by integrating multi-source data such as the original pulse sequence, the actual liquid level height measurement value, and the medium temperature compensation coefficient.
[0074] The indicated value of the refueling equipment specifically refers to the volume value displayed by the fuel dispenser during the refueling process. The indicated value of the reflux device of the fuel smoother is a measurement result used for trade settlement and can be compared with the actual volume measured by the calibrated standard metal measuring instrument to determine measurement error.
[0075] The measurement deviation judgment result is specifically: a qualified or unqualified judgment conclusion is generated based on the comparison between the comprehensive calculation result and the indication of the filling equipment.
[0076] Definitions: Simulated pulse signal: The simulated pulse signal generated by driving the impeller of the consumption sensor to rotate through the pneumatic simulation device is used to perform self-test and verification of the pulse counting unit without actual refueling, which can verify the accuracy of the counting function.
[0077] Consistency verification: The original volume calculated based on the pulse sequence is compared with the actual volume inside the measuring instrument calculated based on the liquid level height to determine whether the two are consistent within the allowable error range. This is used to verify the degree of agreement between pulse measurement and physical measurement.
[0078] Volume to be compensated: The volume reference value for temperature compensation determined after consistency verification. When the original volume matches the actual volume inside the measuring instrument, its value is taken; when they do not match, the weighted average of the two is taken as the volume to be corrected before temperature compensation calculation.
[0079] Comprehensive calculation results: The actual medium volume value under standard operating conditions obtained by integrating multiple sources of data such as the original pulse sequence, the actual liquid level height measurement value, and the medium temperature compensation coefficient can be used as the benchmark data for judging the measurement deviation.
[0080] Absolute deviation value: The difference between the comprehensive calculation result and the reading of the dispensing equipment. The calculation formula is: Comprehensive calculation result - Dispensing equipment reading. It is used to quantify the absolute magnitude of the measurement error, and the unit is liters. If the absolute deviation value is expressed as a percentage, it is necessary to perform a ratio (division) operation between the calculation result and the dispensing equipment value.
[0081] Relative deviation percentage: The ratio of the absolute deviation value to the reading of the filling equipment multiplied by 100%. The calculation formula is |Comprehensive calculation result - reading of filling equipment| / reading of filling equipment × 100%. It is used to quantify the relative proportion of measurement error and serves as the main basis for qualification judgment.
[0082] Steps S31 to S33 collaboratively construct a process for verifying, confirming, and judging the accuracy of fuel metering. Specifically: Step S31 generates a simulated pulse signal of a preset flow level using a pneumatic simulation device, compares the output value of the pulse counting unit with the theoretical pulse count, and generates a counting accuracy verification result. Step S32 calculates the original volume result based on the original pulse sequence, combines the liquid level measurement value with the standard measuring vessel volume-height relationship to calculate the actual volume inside the measuring vessel, and performs consistency verification between the two to generate a volume value to be compensated. Step S33 multiplies the volume value to be compensated with the medium temperature compensation coefficient to obtain the actual medium volume under standard operating conditions, and then compares it with the reading of the refueling equipment to generate a metering deviation judgment result.
[0083] It can be seen that step S31 performs an independent self-test on the pulse counting unit before comprehensive calculation to ensure the reliability of the pulse counting function itself; step S32 performs consistency verification between the volume calculated by the original pulse sequence and the volume verified by liquid level measurement. Through the coordinated cooperation of steps S31 and S33, misjudgment caused by pulse counting unit failure or pulse sequence abnormality is avoided, providing a reliable volume value to be compensated for subsequent deviation determination.
[0084] Steps S32 and S33 achieve data fusion for volume correction and deviation determination. Step S32 generates the volume value to be compensated through consistency verification, integrating the dynamic response capability of pulse metering and the physical verification benchmark of liquid level measurement. Step S33 multiplies the volume value to be compensated with the temperature compensation coefficient to eliminate the influence of oil thermal expansion on volume, and then compares it with the reading of the filling equipment, so that the final metering deviation determination result combines the real-time performance of pulse metering, the accuracy of physical measurement, and the physical properties of temperature correction. The real-time pulse metering system dynamically tracks instantaneous flow changes during fuel refueling, achieving uninterrupted continuous metering with fast response and high data refresh rate. The physical measurement accuracy serves as an absolute reference standard, allowing for visual measurement of the liquid level in standard metal measuring instruments. It is unaffected by flowmeter mechanical wear or encoder offset, independently verifying the reliability of pulse metering. The temperature correction physical property converts the volume at actual temperature to the volume at standard temperature based on the fuel's thermal expansion coefficient, eliminating the physical interference of temperature changes on the metering results. The integration of pulse metering real-time performance, physical measurement accuracy, and temperature correction physical property ensures that the metering deviation judgment results possess both real-time response capability and physical reference constraints, while also compensating for environmental factors.
[0085] Preferably, in addition to steps S1 to S3, the method further includes: When the measurement deviation judgment result is a non-compliance judgment conclusion, the actual deviation of the pulse conversion coefficient is calculated based on the difference between the original pulse sequence and the actual liquid level height measurement value. The actual deviation is compared with the preset deviation grading threshold to obtain the deviation level, and a corresponding calibration strategy identifier is generated based on the deviation level. Based on the calibration strategy identifier, the corresponding calibration execution path is invoked: when the deviation level is low, a temporary correction coefficient is generated by superimposing the actual deviation amount onto the initial calibration value of the pulse conversion coefficient; When the deviation level is high, the encoder zero-point calibration value is generated by comparing the phase offset of the dual-channel metering signals, and the weight parameters of the temperature-volume compensation coefficient mapping function are refitted based on the correlation analysis between historical multi-source temperature parameters and metering deviation.
[0086] This preferred technical solution is a supplement and replacement to steps S1 to S3. In this optimized technical solution, an adaptive repair closed loop for measurement deviation is constructed through a graded calibration mechanism. The actual deviation of the pulse conversion coefficient is calculated in reverse based on the difference between the original pulse sequence and the liquid level height measurement value. The deviation is compared with the preset deviation graded threshold to obtain the deviation level and generate a corresponding calibration strategy identifier. Then, the differentiated calibration execution path is called according to the calibration strategy identifier, and different logical processing methods are executed: when the deviation level is low, the actual deviation is superimposed on the initial calibration value to generate a temporary correction coefficient. When the deviation level is high, the encoder zero-point calibration value is generated by comparing the phase offset. Combined with the correlation analysis of historical temperature parameters and deviation, the weight parameters of the temperature-volume compensation coefficient mapping function are refitted.
[0087] This optimized technical solution establishes a collaborative decision-making mechanism between the actual deviation and the deviation grading threshold: the actual deviation quantifies the true error level of the pulse conversion coefficient, while the deviation grading threshold serves as the benchmark boundary for grading. The selection path of the calibration strategy is determined by the actual deviation and the threshold, ensuring that the degree of intervention in the calibration operation corresponds to the severity of the deviation, thus avoiding over-calibration or under-calibration.
[0088] As a preferred technical solution, this approach also establishes a synergistic relationship between low and high deviations in the calibration execution path: at low levels, a lightweight, superimposed correction method is used to quickly restore metrological accuracy without affecting system stability; while at high levels, deep calibration is triggered, simultaneously correcting the encoder zero point and temperature compensation parameters to promptly eliminate deviations. This two-tiered, cascaded, differentiated repair mechanism, formed by low and high deviations, ensures both efficiency and thoroughness in the calibration operation, representing a significant improvement over existing technologies.
[0089] like Figure 5 As shown, this application provides a fuel metering and detection system based on pulse acquisition and a corresponding fuel dispenser, used to implement the fuel metering and detection method based on pulse acquisition described in any specific embodiment of this application, including: The phase state monitoring module for dual-channel metering signals acquires the operating parameters of the fuel refueling equipment, determines the initial calibration value of the pulse conversion coefficient based on the operating parameters, and monitors the phase state of the dual-channel metering signals through time-series sampling during the fuel refueling process. When the phase state of the dual-channel metering signals is detected to be cyclically switched according to a preset incremental sequence, the current phase state is determined to be a valid pulse sequence, or: the original pulse sequence after anti-interference processing is generated.
[0090] The image recognition and feature extraction module performs real-time data acquisition of attitude sensing data, generates corresponding attitude deviation correction values, and executes closed-loop feedback adjustment commands based on the attitude deviation correction values until the attitude sensing data converges within a preset tolerance range; it generates actual liquid level height calculation values by performing image recognition and feature extraction on liquid level images; and it generates medium temperature compensation coefficients by synchronously sampling and filtering multi-source temperature parameters of fuel.
[0091] The metering deviation judgment result generation module generates a simulated pulse signal by classifying and controlling the airflow rate of the pneumatic simulation device. Based on the simulated pulse signal, it performs a verification of the pulse counting unit and generates a counting accuracy verification result. When the counting accuracy verification result indicates that the verification is passed, it generates a comprehensive calculation result of the actual medium volume under standard operating conditions by comprehensively calculating the original pulse sequence, the actual liquid level height measurement value, and the medium temperature compensation coefficient. Based on the comparison between the comprehensive calculation result and the value indicated by the filling equipment, it generates a metering deviation judgment result.
[0092] The implementation methods of the system described above are merely illustrative. For example, the various functional modules, units, or subsystems within the system may or may not be physically separate, or they may or may not be physical units; that is, they may be located in the same place or distributed across multiple different systems and their subsystems or modules. Those skilled in the art can select some or all of the functional modules, units, or subsystems to achieve the objectives of the embodiments of this application according to actual needs. Those skilled in the art can understand and implement the above-described situations without any creative effort.
[0093] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of the specification of the embodiments of this application.
[0094] In the description of the embodiments of this application, the reference to terms such as "an embodiment," "example," "specific example," etc., means that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the embodiments of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0095] All features disclosed in the embodiments of this application, or all steps in the disclosed methods or processes, may be combined in any way, except for mutually exclusive features and / or steps. Any feature disclosed in the specification of the embodiments of this application, unless specifically stated otherwise, may be replaced by other equivalent or similar alternative features. That is, unless specifically stated otherwise, each feature is merely one example of a series of equivalent or similar features. Throughout the specification, the same reference numerals indicate the same elements.
[0096] Those skilled in the art will understand that modules in the device of the embodiments can be adaptively changed and placed in one or more devices different from that embodiment. Modules, units, or components in the embodiments can be combined into a single module, unit, or component, and further, they can be divided into multiple sub-modules, sub-units, or sub-components. Except where at least some of such features and / or processes or units are mutually exclusive, any combination can be used to combine all features disclosed in this specification of embodiments (including the corresponding claims, abstract, and drawings) and all processes or units of any method or device so disclosed. Unless expressly stated otherwise, each feature disclosed in this specification of embodiments (including the corresponding claims, abstract, and drawings) may be replaced by an alternative feature that serves the same, equivalent, or similar purpose.
[0097] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the embodiments of this application, and are not intended to limit them. Although the embodiments of this application have been described in detail with reference to the foregoing specific embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing specific embodiments, or equivalent substitutions can be made to some or all of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions provided by the specific embodiments of this application.
Claims
1. A fuel metering and detection method based on pulse acquisition, characterized in that, include: The operating parameters of the fuel refueling equipment are obtained, and the initial calibration value of the pulse conversion coefficient is determined based on the operating parameters. During the fuel refueling process, the phase state of the dual-channel metering signal is monitored by time-sequence sampling. When the phase state of the dual-channel metering signal is detected to switch cyclically according to the preset change sequence, the current phase state is determined to be a valid pulse sequence, or: the original pulse sequence after anti-interference processing is generated. Real-time data acquisition of attitude sensing data is performed to generate corresponding attitude deviation correction values. Closed-loop feedback adjustment commands are executed based on the attitude deviation correction values until the attitude sensing data converges within a preset tolerance range. Image recognition and feature extraction are performed on liquid level images to generate actual liquid level height calculation values. Multi-source temperature parameters of fuel are synchronously sampled and filtered to generate medium temperature compensation coefficients. By graded control of the airflow rate of the pneumatic simulation device, a simulated pulse signal is generated. Based on the simulated pulse signal, the pulse counting unit is checked to generate a counting accuracy check result. When the counting accuracy check result indicates that the check has passed, the original pulse sequence, the actual liquid level height measurement value, and the medium temperature compensation coefficient are comprehensively calculated to generate a comprehensive calculation result of the actual medium volume under standard operating conditions. Based on the comparison between the comprehensive calculation result and the value indicated by the filling equipment, a measurement deviation judgment result is generated.
2. The fuel metering and detection method based on pulse acquisition according to claim 1, characterized in that, The process involves acquiring the operating parameters of the fuel refueling equipment, determining the initial calibration value of the pulse conversion coefficient based on the operating parameters, monitoring the phase state of the dual-channel metering signal through time-series sampling during fuel refueling, and determining the current phase state as a valid pulse sequence when the phase state of the dual-channel metering signal is detected to be cyclically switching according to a preset progressive sequence, or generating an original pulse sequence after anti-interference processing. This further includes: The system cyclically reads the level state combinations of the dual-channel metering signals at a preset sampling interval to obtain the phase state value at the current sampling moment. It then performs a differential comparison between the current phase state value and the phase state value at the previous sampling moment. When the comparison result indicates that the phase state has switched sequentially according to a preset progression sequence, a valid pulse judgment signal is generated, the pulse counter is incremented by one, and the current phase state value is written to the state trajectory buffer. Alternatively: When the comparison result indicates that the switching order of the phase state deviates from the preset progressive sequence, the pulse counter accumulation operation is stopped, the current phase state value is marked as a disturbance state value and stored in the disturbance log buffer, and the time of disturbance occurrence is recorded at the same time. Based on the cumulative result of the pulse counter during the fuel refueling process, generate the total number of valid pulse sequences, or: generate the original pulse sequence after anti-interference processing; based on the disturbance state value and the corresponding disturbance occurrence time stored in the disturbance log buffer, generate an anti-interference processing record; after the fuel refueling is completed, generate an anti-interference processing report containing valid pulse count information and interference event tracing information by associating and storing the original pulse sequence with the anti-interference processing record.
3. The fuel metering and detection method based on pulse acquisition according to claim 2, characterized in that, Also includes: By reading historical anti-interference processing reports, the frequency and distribution characteristics of historical disturbance events are extracted. Based on the frequency of the historical disturbance events, the preset sampling interval is adjusted. When the frequency of the historical disturbance events exceeds the preset threshold, the preset sampling interval is shortened; or when the frequency of the historical disturbance events is lower than the preset threshold, the preset sampling interval is restored to the initial setting value.
4. The fuel metering and detection method based on pulse acquisition according to claim 1, characterized in that, The attitude sensing data is collected in real time to generate a corresponding attitude deviation correction amount. Based on the attitude deviation correction amount, a closed-loop feedback adjustment command is executed until the attitude sensing data converges within a preset tolerance range. The actual liquid level height is calculated by performing image recognition and feature extraction on the liquid level image. By synchronously sampling and filtering the multi-source temperature parameters of fuel, a medium temperature compensation coefficient is generated, which further includes: Acquire current attitude sensing data, compare the current attitude sensing data with a preset horizontal reference value, calculate the attitude deviation correction amount, generate a rotation direction control command and step pulse count for the stepper motor based on the attitude deviation correction amount, output the rotation direction control command and step pulse count through a general input / output interface, and drive the stepper motor to rotate until the attitude sensing data converges within a preset tolerance range. The original liquid level image of the liquid level tube is acquired through the camera interface. Image recognition and feature extraction are performed on the original liquid level image to obtain the pixel coordinates of the liquid level feature points. Based on the pre-stored camera calibration parameters, the pixel coordinates of the liquid level feature points are converted into actual physical height values to generate the actual liquid level height calculation value. The temperature signals at the meter port and inside the meter are synchronously acquired by an analog-to-digital converter to obtain a first digital temperature value and a second digital temperature value. The first digital temperature value and the second digital temperature value are filtered to generate a first filtered temperature value and a second filtered temperature value. Based on the weighted average of the first filtered temperature value and the second filtered temperature value, the temperature-volume compensation coefficient mapping function is called to calculate the medium temperature compensation coefficient.
5. The fuel metering and detection method based on pulse acquisition according to claim 4, characterized in that, The image recognition and feature extraction further include: grayscale conversion, Gaussian filtering, Canny edge detection, and extraction of pixel coordinates of the lowest point of the concave liquid surface; The temperature-volume compensation coefficient mapping function is specifically defined as follows: based on the mathematical correspondence established by the thermal expansion characteristics of oil, the collected oil temperature value is mapped to the volume compensation coefficient.
6. The fuel metering and detection method based on pulse acquisition according to claim 1, characterized in that, The process involves graded control of the airflow rate of the pneumatic simulation device to generate simulated pulse signals. Based on these simulated pulse signals, a pulse counting unit is calibrated to generate a counting accuracy calibration result. When the calibration result indicates successful calibration, a comprehensive calculation of the actual medium volume under standard operating conditions is generated by integrating the original pulse sequence, the actual liquid level measurement value, and the medium temperature compensation coefficient. Based on the comparison between this comprehensive calculation result and the reading on the filling equipment, a metering deviation judgment result is generated. This further includes: By controlling the opening of the air valve of the pneumatic simulation device, an airflow rate of a preset flow level is generated. The airflow rate of the preset flow level drives the impeller of the consumption sensor to rotate, thereby obtaining a simulated pulse signal corresponding to the preset flow level. Based on the simulated pulse signal, the counting output value of the pulse counting unit is read. The counting output value is compared with the theoretical pulse number corresponding to the preset flow level to generate a counting accuracy verification result. The original volume calculation result is calculated based on the product of the total number of effective pulses in the original pulse sequence and the initial calibration value of the pulse conversion coefficient; the actual volume value inside the measuring vessel is calculated based on the correspondence between the actual liquid level height and the volume-height of the standard metal measuring vessel; the consistency of the original volume calculation result and the actual volume value inside the measuring vessel is verified to generate the volume value to be compensated. The volume to be compensated is multiplied by the medium temperature compensation coefficient to calculate the comprehensive calculation result of the actual medium volume under standard operating conditions; based on the difference between the comprehensive calculation result and the value indicated by the filling equipment, the absolute deviation value and the relative deviation percentage are calculated, and the absolute deviation value and the relative deviation percentage are compared with the preset threshold to generate the measurement deviation judgment result.
7. The fuel metering and detection method based on pulse acquisition according to claim 6, characterized in that, The initial calibration value of the pulse conversion coefficient is specifically: the reference setting value of the pulse equivalent during verification or calibration, used to represent the standard volume corresponding to each pulse; The volume-height correspondence is specifically: a pre-calibrated functional relationship of a standard metal measuring instrument, used to describe the mapping law between the liquid level height and the corresponding volume in the measuring instrument; The comprehensive calculation result is specifically: multi-source data that integrates the original pulse sequence, the actual liquid level height measurement value, and the medium temperature compensation coefficient; The specific value displayed by the refueling device is the volume value shown by the fuel dispenser during the refueling process; The measurement deviation judgment result is specifically: a qualified or unqualified judgment conclusion is generated based on the comparison between the comprehensive calculation result and the indication of the filling equipment.
8. The fuel metering and detection method based on pulse acquisition according to claim 1, characterized in that, Also includes: When the measurement deviation judgment result is a non-compliance judgment conclusion, the actual deviation of the pulse conversion coefficient is calculated based on the difference between the original pulse sequence and the actual liquid level height measurement value. The actual deviation is compared with the preset deviation grading threshold to obtain the deviation level, and a corresponding calibration strategy identifier is generated based on the deviation level. Based on the calibration strategy identifier, the corresponding calibration execution path is invoked: when the deviation level is low, a temporary correction coefficient is generated by superimposing the actual deviation amount onto the initial calibration value of the pulse conversion coefficient; When the deviation level is high, the encoder zero-point calibration value is generated by comparing the phase offset of the dual-channel metering signals, and the weight parameters of the temperature-volume compensation coefficient mapping function are refitted based on the correlation analysis between historical multi-source temperature parameters and metering deviation.
9. A fuel metering and detection system based on pulse acquisition, used to implement the fuel metering and detection method based on pulse acquisition as described in any one of claims 1 to 8, characterized in that, include: The phase state monitoring module of the dual-channel metering signal acquires the operating parameters of the fuel refueling equipment, determines the initial calibration value of the pulse conversion coefficient based on the operating parameters, and monitors the phase state of the dual-channel metering signal through time-series sampling during the fuel refueling process. When the phase state of the dual-channel metering signal is detected to switch cyclically according to the preset incremental sequence, the current phase state is determined to be a valid pulse sequence, or: the original pulse sequence after anti-interference processing is generated. The image recognition and feature extraction implementation module performs real-time data acquisition of attitude sensing data, generates corresponding attitude deviation correction amounts, and executes closed-loop feedback adjustment commands based on the attitude deviation correction amounts until the attitude sensing data converges within a preset tolerance range; it generates actual liquid level height calculation values by performing image recognition and feature extraction on liquid level images; and it generates medium temperature compensation coefficients by synchronously sampling and filtering multi-source temperature parameters of fuel. The metering deviation judgment result generation module generates a simulated pulse signal by classifying and controlling the airflow rate of the pneumatic simulation device. Based on the simulated pulse signal, it performs a verification of the pulse counting unit and generates a counting accuracy verification result. When the counting accuracy verification result indicates that the verification is passed, it generates a comprehensive calculation result of the actual medium volume under standard operating conditions by comprehensively calculating the original pulse sequence, the actual liquid level height measurement value, and the medium temperature compensation coefficient. Based on the comparison between the comprehensive calculation result and the value indicated by the filling equipment, it generates a metering deviation judgment result.
10. A fuel dispenser, characterized in that, The fuel dispenser is equipped with the fuel metering and detection system based on pulse acquisition as described in claim 9.