Data processing method and system for fuel dispenser computer controller

By establishing a nozzle position task table and time-sharing scheduling sequence in the fuel dispenser computer controller, and obtaining and verifying identity feature parameters, the accuracy and reliability of metering signal acquisition are ensured. This solves the problem of incorrect attribution of metering data for multi-nozzle fuel dispensers and achieves metering accuracy and system reliability in high-concurrency scenarios.

CN121609288BActive Publication Date: 2026-04-03WENZHOU BLUESKY ENERGY TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2026-02-02
Publication Date
2026-04-03

AI Technical Summary

Technical Problem

Existing multi-nozzle fuel dispenser computer controllers are prone to problems such as incorrect attribution of metering data, missed measurements, or double measurements in complex peripheral and high-concurrency business scenarios. Furthermore, they are difficult to trace and locate. Interactive tasks such as display panels and back-end communication interfere with the timing of metering acquisition and control, affecting metering accuracy and operational reliability.

Method used

By employing data processing methods and systems, a gun position task table is established, a time-sharing scheduling sequence is generated, and identity feature parameters are obtained and verified. Metering and counting gates are only activated after successful channel confirmation; otherwise, abnormal handling is performed, including recording failure information and retrying mechanisms, to prevent misassignment of guns and signal interference.

Benefits of technology

It effectively suppresses metering errors caused by transient channel switching and signal crosstalk, improves the credibility of metering data and the reliability of system operation, provides a traceable chain of evidence, and facilitates fault location and maintenance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121609288B_ABST
    Figure CN121609288B_ABST
Patent Text Reader

Abstract

This invention relates to the field of fuel dispenser control and metering data processing technology, specifically a data processing method and system for a fuel dispenser computer controller. The method establishes a fuel dispenser task table including nozzle identification, channel selection parameters, and identity feature reference information; it switches to the target nozzle channel according to a time-sharing scheduling control data selection circuit; before metering data acquisition, it acquires the identity feature parameters associated with the target nozzle and judges their consistency with the reference information to obtain a channel confirmation result; if confirmation is successful, it activates the metering counting gating to acquire metering pulses and writes them to the nozzle cache; if confirmation fails, it disables counting and performs exception handling; based on the valid cached data, it generates metering data and outputs valve or motor control, display, or communication data. The system uses a passive identity code to achieve channel self-authentication, improving the metering accuracy and reliability in multi-nozzle time-sharing reuse scenarios.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of fuel dispenser control and metering data processing technology, specifically to a data processing method and system for a fuel dispenser computer controller. Background Technology

[0002] As a crucial piece of equipment in the retail of refined oil products, fuel dispensers have undergone a transformation in their metering and control systems. This evolution has progressed from mechanical metering and relay logic control to electronic metering control centered on microcontrollers, and further to integrated intelligent devices that combine display interaction, transaction management, backend networking, mobile payment, and data traceability. With the increasing demands of station-level management systems, the Internet of Things (IoT) at gas stations, and regulatory requirements, fuel dispenser computer controllers have gradually upgraded from early low-frequency processors and limited peripheral interfaces to platform architectures using high-performance embedded processors such as ARM cores. These controllers feature higher clock speeds, larger storage resources, and richer timer and input / output resources to support the coordinated operation of multiple nozzle positions, real-time metering, valve and motor control, power failure protection, parameter management, backend communication, ticket printing, and card reader functionality. With the increasing prevalence of multi-nozzle fuel dispensers, the controllers need to continuously ensure metering accuracy and operational reliability in complex peripheral and high-concurrency business scenarios.

[0003] Existing multi-nozzle fuel dispenser computer controllers still have several shortcomings in practical engineering implementation. On the one hand, in order to reduce hardware costs and achieve multi-nozzle metering signal access under limited interface resources, data selection circuits are often used to time-division multiplex the metering pulses or coded signals from multiple nozzles. However, under conditions such as transient channel switching, signal crosstalk, electromagnetic interference, incorrect wiring, incorrect channel mapping configuration, or abnormal selection control, inconsistencies between the acquisition channel and the target nozzle can easily occur, leading to incorrect metering data attribution or omissions and duplicates. Moreover, such problems are often sporadic and hidden, making them difficult to trace and locate afterward. On the other hand, interactive tasks such as display panels, backend communication, printing, and card reading may interfere with the metering acquisition and control timing under high loads, further amplifying the real-time and reliability risks in multi-nozzle concurrent scenarios. Therefore, data processing methods and systems for fuel dispenser computer controllers are needed to solve the above problems. Summary of the Invention

[0004] (a) Technical problem to be solved: In view of the shortcomings of the prior art, the present invention provides a data processing method and system for a fuel dispenser computer controller, which solves the above-mentioned problems.

[0005] (II) Technical Solution: To achieve the above objectives, the present invention provides the following technical solution: a data processing method for a fuel dispenser computer controller, applied to a fuel dispenser computer controller with multiple nozzle positions, the fuel dispenser computer controller including a processor and a data selection circuit connected to the processor, the data selection circuit being used to select and switch between multiple nozzle position signal channels, the method comprising:

[0006] Step S1: Establish a gun position task table, which includes at least gun position identifiers, channel selection parameters corresponding to the data selection circuit, and identity feature reference information corresponding to each gun position; Step S2: Generate a time-sharing scheduling sequence according to the gun position task table, and control the data selection circuit to switch to the target gun position channel according to the time-sharing scheduling sequence; Step S3: Before collecting metering signals from the target gun position, obtain the identity feature parameters associated with the target gun position, and perform a consistency judgment between the identity feature parameters and the identity feature reference information to obtain a channel confirmation result; Step S4: When the channel confirmation result indicates successful confirmation, activate the metering counting gating and collect the metering pulse signal of the target gun position, and write the collected data into the data buffer corresponding to the gun position; when the channel confirmation result indicates failed confirmation, disable the metering counting gating and perform exception handling; Step S5: Generate metering data based on the valid collected data in the data buffer of each gun position and output control data and interactive data, wherein the control data includes at least valve or motor control signals, and the interactive data includes at least refueling data for display or communication.

[0007] Furthermore, the identity feature parameter is a passive identity code sampling value, which is generated by a passive device network corresponding to the target gun position, and the passive identity code sampling value is any one of the following: a voltage range value obtained by voltage sampling of the identity code channel of the target gun position; or a time range value obtained by charging and discharging the identity code channel of the target gun position and measuring the time required to reach a preset threshold.

[0008] Furthermore, when acquiring the identity feature parameters associated with the target gun position, the data selection circuit is controlled to switch and multiplex between the identity code channel corresponding to the target gun position and the metering signal channel corresponding to the target gun position, so as to complete the acquisition of identity feature parameters and metering signal without adding an additional identity code acquisition channel.

[0009] Furthermore, the anomaly handling includes: when the channel confirmation result indicates a confirmation failure, recording the channel confirmation failure information and performing a channel confirmation retry for the target gun position, wherein if the number of channel confirmation retry attempts reaches a preset upper limit and still fails to confirm, skipping the current metering signal acquisition for the target gun position.

[0010] Furthermore, the channel confirmation failure information includes at least the target gun position identifier, the channel selection parameters corresponding to the data selection circuit, the identity feature parameters, and the acquisition time information.

[0011] Furthermore, the preset upper limit is 1 to 5 times, and each channel confirmation retry is performed after the data selection circuit is switched back to the target gun position channel and after a preset switching protection interval.

[0012] Furthermore, after controlling the data selection circuit to switch to the target gun position channel, a switching protection interval is set, and the identity feature parameters are acquired within the switching protection interval.

[0013] Furthermore, when acquiring the identity feature parameters associated with the target gun position, the identity code channel of the target gun position is sampled at least twice, and the channel confirmation result is obtained based on the consistency determination of the repeated sampling results. The consistency determination includes: when the identity feature parameters match the identity feature reference information at least a preset number of times, the confirmation is determined to be successful.

[0014] Furthermore, the identity feature reference information is threshold interval information. The threshold intervals corresponding to different gun positions do not overlap, and a preset interval margin is set between adjacent threshold intervals to distinguish the identity feature parameters of different gun positions.

[0015] This invention also provides a data processing system for a fuel dispenser computer controller, applied to a fuel dispenser computer controller with multiple nozzle positions. The system includes a processor and a data selection circuit connected to the processor. The data selection circuit is used to select and switch between multiple nozzle position signal channels. The system further includes: a nozzle position task table establishment module, used to establish a nozzle position task table, the nozzle position task table including at least a nozzle position identifier, channel selection parameters corresponding to the data selection circuit, and identity feature reference information corresponding to each nozzle position; a time-sharing scheduling module, used to generate a time-sharing scheduling sequence according to the nozzle position task table, and control the data selection circuit to switch to the target nozzle position channel according to the time-sharing scheduling sequence; and a channel confirmation module, used to obtain... The system retrieves the identity feature parameters associated with the target gun position and performs a consistency check between the identity feature parameters and the identity feature reference information to obtain a channel confirmation result. A metering acquisition and gating module is used to activate the metering counting gating and acquire the metering pulse signal of the target gun position when the channel confirmation result indicates successful confirmation, and write the acquired data into the data buffer corresponding to that gun position. When the channel confirmation result indicates failed confirmation, the metering counting gating is disabled and exception handling is performed. A metering data generation and output module is used to generate metering data based on the valid acquired data in the data buffer of each gun position and output control data and interactive data, wherein the control data includes at least valve or motor control signals, and the interactive data includes at least refueling data for display or communication.

[0016] (III) Beneficial Effects: Compared with the prior art, the present invention provides a data processing method and system for a fuel dispenser computer controller, which has the following beneficial effects: The data processing method and system for a fuel dispenser computer controller obtains the identity feature parameters associated with the target nozzle position before collecting the metering signal, and performs consistency judgment between the identity feature parameters and the identity feature reference information in the nozzle task table to form a channel confirmation result. The channel confirmation result is bound to the metering counting gate control, so that the metering counting gate control is allowed to be opened and the metering pulse signal is collected only when the confirmation is successful. When the confirmation fails, the metering counting gate control is prohibited from being opened and an exception handling is performed. Thus, in the case of time-division multiplexing acquisition using data selection circuit, the problems of wrong nozzle assignment, missed counting and double counting caused by transient channel switching, signal crosstalk, electromagnetic interference, incorrect wiring harness insertion, incorrect channel mapping configuration or abnormal selection control are effectively suppressed. At the same time, the exception handling can be combined with mechanisms such as channel confirmation retry, skipping the current acquisition and recording channel confirmation failure information to form a traceable evidence chain, which facilitates fault location and operation and maintenance, thereby improving the credibility of the metering data source, the reliability of system operation and the metering accuracy in multi-nozzle concurrent scenarios. Attached Figure Description

[0017] Figure 1 This is a flowchart illustrating the data processing method for a fuel dispenser computer controller provided by the present invention.

[0018] Figure 2 This is a schematic diagram of the data processing system for a fuel dispenser computer controller provided by the present invention. Detailed Implementation

[0019] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0020] To enable those skilled in the art to better understand the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0021] Please see Figure 1 , Figure 1 This is a flowchart illustrating a data processing method for a fuel dispenser computer controller provided by the present invention. The data processing method for a fuel dispenser computer controller is applied to a fuel dispenser computer controller with multiple nozzle positions. The fuel dispenser computer controller includes a processor and a data selection circuit connected to the processor. The data selection circuit is used to select and switch between multiple nozzle position signal channels. The method includes: Step S1, establishing a nozzle position task table, the nozzle position task table including at least a nozzle position identifier, channel selection parameters corresponding to the data selection circuit, and identity feature reference information corresponding to each nozzle position; Step S2, generating a time-sharing scheduling sequence according to the nozzle position task table, and controlling the data selection circuit to switch to the target nozzle position channel according to the time-sharing scheduling sequence; Step S3, ... Before collecting metering signals from the target gun position, acquire the identity feature parameters associated with the target gun position, and perform a consistency judgment between the identity feature parameters and the identity feature reference information to obtain the channel confirmation result; Step S4: When the channel confirmation result indicates successful confirmation, activate the metering counting gate and collect the metering pulse signal of the target gun position, and write the collected data into the data buffer corresponding to the gun position; When the channel confirmation result indicates failed confirmation, disable the metering counting gate and perform exception handling; Step S5: Generate metering data based on the valid collected data in the data buffer of each gun position and output control data and interactive data, wherein the control data includes at least valve or motor control signals, and the interactive data includes at least refueling data for display or communication.

[0022] In this embodiment, the data processing method for the fuel dispenser computer controller runs on the processor of the multi-nozzle fuel dispenser computer controller. The processor uses a data selection circuit to switch between multiple nozzle signal channels in a time-division manner to achieve the access and acquisition of multi-nozzle metering signals. Its technical principle lies in connecting "nozzle selection" and "nozzle identity verification" in series, so that metering counting is only allowed when the channel source can be verified: First, in step S1, the processor establishes a nozzle task table according to the number of nozzles on the fuel dispenser, binds the nozzle identifier of each nozzle to its corresponding data selection circuit channel selection parameters, and configures identity feature reference information for each nozzle to characterize the desired channel range of that nozzle. This provides a structured configuration basis and judgment criteria for subsequent time-division acquisition. In step S2, the processor generates a time-division scheduling sequence according to the gun position task table and executes it periodically. The scheduling sequence can be organized by a combination of polling, priority, or gun position working status. The processor outputs channel selection parameters based on the scheduling sequence to control the data selection circuit to switch to the current target gun position channel, achieving time-division multiplexing access for multi-gun position signals. In step S3, to avoid acquisition attribution errors caused by transient channel switching, incorrect wiring, mapping errors, or control anomalies, the processor first acquires the identity feature parameters associated with the target gun position before entering the metering sampling phase. These identity feature parameters can be associated with the target gun position. The identity feature sampling channel is obtained and its consistency with the identity feature reference information in the gun position task table is judged to obtain the channel confirmation result, thereby verifying at the software level whether "the currently selected channel is indeed the target gun position". In step S4, the processor binds the channel confirmation result with the metering and counting gating. When the confirmation is successful, the metering and counting gating is opened and the metering pulse signal of the target gun position is collected within the predetermined sampling window. The collected pulse count or pulse increment is written to the data buffer area corresponding to the gun position to ensure that the data of different gun positions are isolated from each other and facilitate subsequent calculation. When the confirmation fails, the metering and counting gating is prohibited from being opened and exception handling is performed to block the data of untrusted channels from entering. In the metering link, anomaly handling may include recording failure status, triggering retry, or skipping the current sampling to ensure that the system maintains metering safety under abnormal operating conditions. Finally, in step S5, the processor generates metering data based on the valid collected data in the data buffer of each nozzle position. The metering data may include refueling amount, amount, cumulative amount, and transaction status, and further outputs control data and interaction data. The control data is used to drive actuators such as valves or motors to realize refueling start / stop and safety shutdown, and the interaction data is used to provide real-time refueling data and status information to the display or communication module, thereby simultaneously achieving metering accuracy, real-time control, and availability of business interaction in multi-nozzle concurrent scenarios.

[0023] Furthermore, the identity feature parameter is a passive identity code sampling value, which is generated by a passive device network corresponding to the target gun position, and the passive identity code sampling value is any one of the following: a voltage range value obtained by voltage sampling of the identity code channel of the target gun position; or a time range value obtained by charging and discharging the identity code channel of the target gun position and measuring the time required to reach a preset threshold.

[0024] In this embodiment, to ensure the low-cost, easy-to-implement, and interference-resistant engineering feasibility of the identity feature parameters in step S3, the identity feature parameters are specifically implemented as passive identity code sampling values. These passive identity codes are generated by a passive device network located at each target gun position. The technical principle lies in utilizing the inherent electrical characteristics of passive devices to form a distinguishable gun position "physical fingerprint" without relying on complex calculations, enabling the processor to confirm the current channel source after the data selection circuit switches to the target gun position. In one implementation, the passive device network is a resistor voltage divider or equivalent impedance network. Each gun position is configured with different resistance combinations to form a stable voltage range corresponding to the identity code channel. The processor samples the identity code channel once or multiple times through analog-to-digital conversion or voltage comparison to obtain voltage sampling values ​​and maps them to a preset voltage range, using these as passive identity code sampling values ​​for... The system matches the identity feature reference information in the gun position task table to determine whether the current channel is the target gun position. In another implementation, the passive device network is an RC time constant network. The processor performs charging and discharging operations on the identity code channel through GPIO and uses a timer to measure the time required for the identity code channel level to reach a preset threshold. The time falling within the preset time interval forms a time interval value as a passive identity code sampling value, which is then used for channel confirmation. This method does not require additional analog sampling resources and is suitable for controllers with limited interface resources. Both of the above methods can be used in conjunction with a data selection circuit to obtain passive identity code sampling values ​​in a time-division manner by selecting the identity code channel of different gun positions. Since the passive identity code is generated by passive devices and does not rely on software generation or complex calculations, it can still provide stable and determinable features under conditions such as electromagnetic interference, wiring harness replacement, or channel switching transients.

[0025] Furthermore, when acquiring the identity feature parameters associated with the target gun position, the data selection circuit is controlled to switch and multiplex between the identity code channel corresponding to the target gun position and the metering signal channel corresponding to the target gun position, so as to complete the acquisition of identity feature parameters and metering signal without adding an additional identity code acquisition channel.

[0026] In this embodiment, to achieve coordinated acquisition of identity feature parameters and metering signal acquisition under engineering conditions of limited interface resources and multiple concurrent gun positions, the processor, when executing step S3, controls the data selection circuit to switch and multiplex between the identity code channel and the metering signal channel corresponding to the target gun position. The technical principle is to reuse the same set of selection switches and input acquisition links, completing "channel identity verification" first and then "metering pulse acquisition" within a time-division acquisition cycle. This avoids the need to add a separate acquisition channel or device for identity code sampling, reducing hardware costs and simplifying wiring and assembly. Specifically, the processor outputs channel selection parameters based on the gun position task table to enable the data selection circuit to select the appropriate channel first. The identification code channel of the target gun position acquires identification feature parameters and performs a consistency judgment with the identification feature reference information to obtain the channel confirmation result. If the confirmation is successful, the control data selection circuit switches to the metering signal channel of the same target gun position and opens the metering counting gate to enter the sampling window to collect metering pulse signals and write them into the data buffer of that gun position. If the confirmation fails, the metering counting gate remains closed and the acquisition of the metering signal channel can be skipped. Through the above multiplexing and switching method, the identification code sampling and metering sampling are organized serially in time and form a sequential constraint relationship in function. This allows the system to effectively verify the source of the acquisition channel without adding additional channels and ensures that the channel self-verification is completed before the metering data is written to the buffer.

[0027] Furthermore, the anomaly handling includes: when the channel confirmation result indicates a confirmation failure, recording the channel confirmation failure information and performing a channel confirmation retry for the target gun position, wherein if the number of channel confirmation retry attempts reaches a preset upper limit and still fails to confirm, skipping the current metering signal acquisition for the target gun position.

[0028] In this embodiment, to prevent untrusted channel data from entering the metering link in the event of channel confirmation failure, the anomaly handling is organized as "failure recording plus confirmation retry plus failure skipping". The technical principle is to treat channel confirmation failure as a potential risk event of incorrect gun attribution or selection anomalies. Metering counting gating is prohibited until channel trustworthiness is restored, and a controllable retry mechanism distinguishes between transient interference and persistent faults: when the channel confirmation result obtained in step S3 indicates confirmation failure, the processor first records the channel confirmation failure information to form traceable operational evidence, and then performs a channel confirmation retry for the target gun position. That is, it re-controls the data selection circuit to select the target gun position according to the channel selection parameters of that gun position and re-acquires the identity feature parameters and performs consistency judgment to update the channel confirmation result. During the retry process, the processor still maintains... The metering and counting gating is closed to ensure that any unconfirmed metering pulses are not counted as valid data. When a channel confirmation retries successfully complete within a preset limit, the processor resumes the normal acquisition process and, upon successful confirmation, activates the metering and counting gating to enter the metering sampling window. This eliminates the impact of occasional confirmation failures caused by switching transients, electromagnetic interference, or short-term jitter on business continuity. When the number of channel confirmation retries reaches the preset limit and still fails to confirm, the processor determines that there is a persistent abnormality at that gun position (e.g., incorrect wiring harness insertion, incorrect channel mapping, abnormal selection control, or abnormal identification code device), and skips the current metering signal acquisition for that target gun position. That is, it does not enter the metering sampling window for that gun position and does not write to the metering cache to avoid incorrect gun attribution or incorrect metering data. At the same time, this failure record can be used for subsequent alarm reporting, maintenance location, and security strategies.

[0029] Furthermore, the channel confirmation failure information includes at least the target gun position identifier, the channel selection parameters corresponding to the data selection circuit, the identity feature parameters, and the acquisition time information.

[0030] In this embodiment, to ensure accurate reproduction and localization of channel confirmation failures and support for subsequent maintenance and security linkage, the channel confirmation failure information is designed as a minimal evidence data set including gun position identifier, channel selection parameters, identity feature parameters, and acquisition time information. The technical principle is to associate a confirmation failure event with four key elements: "which gun position, which channel was selected at the time, what identity features were acquired, and when it occurred." This distinguishes different fault causes and avoids the problem of being unable to trace the cause based solely on alarm status. The gun position identifier indicates the target gun position where the anomaly occurred and supports alarm and disabling strategies based on gun position isolation. The channel selection parameters reflect the selection address or control combination of the data selection circuit, thereby... When there are incorrect wiring harness insertions or mapping configuration errors, the correspondence between "logical gun position and physical channel" can be verified. The identity feature parameter is used to record the passive identity code value or its range information obtained in this sampling, so as to determine whether it falls into other gun position threshold ranges, falls into invalid ranges, or drifts. The collection time information is used to provide the timestamp or sequence number of the event to support the correlation analysis with transaction process, background logs and peripheral events. In terms of application, the processor writes the channel confirmation failure information into non-volatile storage or operation log buffer, and can report it to the display or communication module along with the interaction data. Thus, in the event of subsequent dispute verification or equipment maintenance, the source of the anomaly can be quickly located based on this evidence data set and targeted measures can be taken.

[0031] Furthermore, the preset upper limit is 1 to 5 times, and each channel confirmation retry is performed after the data selection circuit is switched back to the target gun position channel and after a preset switching protection interval.

[0032] In this embodiment, the preset upper limit for the number of channel confirmation retries is set to 1 to 5 times. Each channel confirmation retrieval is performed after the data selection circuit is switched back to the target gun position channel and a preset switching protection interval has elapsed. The technical principle is to classify channel confirmation failures into two categories: "transient interference recoverable" and "continuous abnormality unrecoverable." A small number of retries can absorb occasional failures caused by electromagnetic interference, switching transient glitches, or short-term jitter. Setting an upper limit avoids meaninglessly occupying the sampling period and affecting the real-time measurement of other gun positions in continuous failure scenarios. Specifically, when a confirmation failure occurs, the processor first re-outputs the channel selection parameters for that gun position. The target gun position is reselected by driving the data selection circuit, and then the system enters the switching protection interval. During this protection interval, the metering counting gate is not opened and the metering pulse is not collected. This provides time guarantee for the switching stability of the data selection circuit, the restoration of the line level, and the convergence of the identification code sampling value. After the protection interval ends, the identification feature parameter acquisition and consistency judgment are performed to complete a retry. By binding the retry action with the switching protection interval, the probability of misjudgment caused by switching transients can be reduced, and the effectiveness of confirming the retry can be improved. At the same time, the current acquisition is skipped in time after the preset upper limit is reached, and the failure information is retained. This enables the system to maintain deterministic timing behavior and stable metering processing capability under multi-gun position time-sharing scheduling.

[0033] Furthermore, after controlling the data selection circuit to switch to the target gun position channel, a switching protection interval is set, and the identity feature parameters are acquired within the switching protection interval.

[0034] In this embodiment, to reduce the impact of transient data selection circuit switching on identity feature parameter sampling and channel confirmation, a switching protection interval is set after the processor controls the data selection circuit to switch to the target gun position channel. Identity feature parameter acquisition is completed within this switching protection interval. The technical principle is that the data selection circuit may introduce short-term glitches, crosstalk, or unstable levels during channel switching. If identity feature parameters are sampled immediately, the sampled values ​​may deviate from the true range, resulting in misjudgment. Therefore, setting a protection interval provides a buffer for signal stability. At the same time, arranging identity feature parameter sampling within this protection interval can transform the originally necessary waiting time into effective working time, thereby completing channel confirmation and maintaining system real-time performance without significantly increasing the overall sampling period.

[0035] The specific application method is as follows: after the processor selects parameters for the output channel and completes the channel switching, it starts a timer to form a switching protection interval. During this interval, the metering and counting gate is kept closed and the sampling operation of the identity code channel is performed to obtain the identity feature parameters and complete the consistency judgment accordingly. When the protection interval ends and the channel is successfully confirmed, the metering sampling window is entered to collect the metering pulse signal. Through the above timing organization, the probability of false judgment can be reduced, the reliability of confirmation can be improved, and the impact on the time-sharing scheduling efficiency of multiple gun positions can be reduced, thus making it more suitable for the metering control scenario of fuel dispensers with high concurrency gun positions.

[0036] Furthermore, when acquiring the identity feature parameters associated with the target gun position, the identity code channel of the target gun position is sampled at least twice, and the channel confirmation result is obtained based on the consistency determination of the repeated sampling results. The consistency determination includes: when the identity feature parameters match the identity feature reference information at least a preset number of times, the confirmation is determined to be successful.

[0037] In this embodiment, to further enhance the anti-interference capability of channel confirmation under complex electromagnetic environments and transient conditions of channel switching, the identity code channel of the target gun position is repeatedly sampled at least twice when acquiring the identity feature parameters associated with the target gun position. The channel confirmation result is obtained based on the consistency judgment of the repeated sampling results. The technical principle is that the passive identity code sampling value may be affected by instantaneous noise, sampling jitter, or the initial state of line capacitor charging and discharging, resulting in occasional deviations. A single sampling is prone to misjudging occasional deviations as channel inconsistency or mistakenly judging incorrect channels as consistent. Therefore, by repeating sampling and adopting consistency rule constraints, the probability of misjudgment can be significantly reduced without introducing complex algorithms. The specific application method is as follows: after the data selection circuit switches and enters the switching protection interval, the processor continuously samples the identity code channel according to the preset number of samplings to obtain multiple sets of identity feature parameters. Each set of identity feature parameters is matched with the identity feature reference information in the gun position task table. When the matching results of at least the preset number of times all indicate a match, the channel confirmation is determined to be successful; otherwise, the channel confirmation is determined to be unsuccessful and an exception is handled. Through the above consistency judgment mechanism, the system can tolerate a small number of abnormal sampling points while maintaining the stability of the channel confirmation results. This improves the reliability of metering and counting gate opening decisions in multi-gun position time-division multiplexing acquisition scenarios and reduces false rejection or false release caused by interference.

[0038] Furthermore, the identity feature reference information is threshold interval information. The threshold intervals corresponding to different gun positions do not overlap, and a preset interval margin is set between adjacent threshold intervals to distinguish the identity feature parameters of different gun positions.

[0039] In this embodiment, to ensure that the channel confirmation judgment has a clear distinguishing boundary and reduce the probability of confusion between the identity feature parameters of adjacent gun positions, the identity feature reference information is set as threshold interval information, and the threshold intervals corresponding to different gun positions do not overlap. A preset interval margin is set between adjacent threshold intervals. The technical principle is that the passive identity code sampling value will fluctuate within a certain range when affected by device tolerances, temperature drift, harness voltage drop, and sampling errors. If the threshold intervals of each gun position overlap or the interval is too small, misjudgment is likely to occur when the boundary fluctuates, thus affecting the correct decision of the metering and counting gate. Therefore, by setting the threshold intervals of each gun position... Discretization is performed and interval margins are reserved so that the identity feature parameters of any gun position can still stably fall into their corresponding intervals even if they drift within a reasonable range. At the same time, the sampled values ​​that fall into the interval margin or invalid intervals can be directly judged as confirmation failures and enter the exception handling, thereby realizing the effective identification of misinsertion, mapping errors or selection anomalies. In specific application, when the gun position task table is established, a corresponding threshold interval and its adjacent margin boundaries are configured for each gun position. When the processor performs the consistency judgment in step S3, it completes the matching judgment based on the threshold interval, and the single-valuedness and interpretability of the judgment rule are guaranteed by interval mutual exclusion and margin constraints.

[0040] This invention also provides a data processing system for a fuel dispenser computer controller, applied to a fuel dispenser computer controller with multiple nozzle positions. The system includes a processor and a data selection circuit connected to the processor. The data selection circuit is used to select and switch between multiple nozzle position signal channels. The system further includes: a nozzle position task table establishment module, used to establish a nozzle position task table, the task table including at least a nozzle position identifier, channel selection parameters corresponding to the data selection circuit, and identity feature reference information corresponding to each nozzle position; a time-sharing scheduling module, used to generate a time-sharing scheduling sequence according to the nozzle position task table, and control the data selection circuit to switch to the target nozzle position channel according to the time-sharing scheduling sequence; and a channel confirmation module, used to collect metering signals from the target nozzle position. First, the system acquires the identity feature parameters associated with the target gun position and performs a consistency judgment between the identity feature parameters and the identity feature reference information to obtain the channel confirmation result. The metering acquisition and gating module is used to activate the metering counting gating and acquire the metering pulse signal of the target gun position when the channel confirmation result indicates successful confirmation, and write the acquired data into the data buffer corresponding to that gun position. When the channel confirmation result indicates failed confirmation, the metering counting gating is disabled and exception handling is performed. The metering data generation and output module is used to generate metering data based on the valid acquired data in the data buffer of each gun position and output control data and interactive data, wherein the control data includes at least valve or motor control signals, and the interactive data includes at least refueling data for display or communication.

[0041] Working Principle: This invention addresses the metering and control data processing scenarios of multi-position refueling machine computer controllers, employing a general mechanism of "time-division multiplexing acquisition plus channel self-verification gating." The processor periodically traverses the refueling position task table, outputs channel selection parameters according to the time-division scheduling sequence to drive the data selection circuit, and connects the target refueling position signal channel to a unified acquisition link. Before entering the metering pulse acquisition, the processor first obtains the identity feature parameters from the identity code channel and performs a consistency judgment with the identity feature reference information of the refueling position to obtain the channel confirmation result. Only when the channel confirmation result is successful is the metering counting gating allowed to be activated and the pulse count written to the buffer; otherwise, counting is prohibited and an exception handling process is initiated. The key to this working principle lies in using "identity feature parameters" to verify the source of the time-division multiplexing acquisition channel, avoiding incorrect refueling assignment caused by channel switching transients, crosstalk, incorrect wiring, or incorrect channel mapping. At the same time, the gating mechanism blocks unconfirmed data from the metering link, ensuring the reliability of the metering data source.

[0042] The gun position task table serves as the parameterized configuration entry point, binding logical gun positions to physical channels and providing a verifiable identity reference. Each gun position entry includes at least: a gun position identifier Gi, used to distinguish different gun positions; a channel selection parameter SelGi, used to control the data selection circuit to select the target gun position; SelGi is specifically implemented as a multi-bit GPIO address, shift register control bits, or a serial control word; and identity feature reference information RefGi, preferably non-overlapping threshold range information. If a voltage range scheme is used, RefGi is defined as [VGi_low, VGi_high], with units of mV or ADC code values. If a time range scheme is used, RefGi is defined as [TGi_low, VGi_high]. [TGi_high], in microseconds (µs) or timer counts; Switching protection interval Tg, used to specify the time to wait for the signal to stabilize after each data selection circuit switch; Identity sampling count Ns, used to specify the number of times the identity code channel is sampled during a channel confirmation process, Ns not less than 2 supports consistency judgment; Consistency threshold K, used to specify that at least K matches RefGi in Ns samplings are required for successful confirmation; Metering sampling window W, used to specify the time window for statistical analysis of metering pulses after enabling metering counting gating; Retry limit Nr, used to specify the number of retries allowed after a channel confirmation failure, Nr is preferably 1 to 5 times. The above parameters can be written to non-volatile storage and loaded into running memory during power-on initialization or configuration issuance, so that different gun configurations and different hardware wiring conditions can be adapted through parameter adjustment.

[0043] Within a time-sharing scheduling cycle, the processor selects the target gun position Gi according to the time-sharing scheduling sequence and outputs SelGi to drive the data selection circuit to switch to the relevant channel of that gun position. After the switch is completed, it enters the switching protection interval Tg, during which the metering and counting gate is kept closed to avoid pulse miscounting caused by switching transients; at the same time, the identity feature parameters are acquired during the time period of Tg, that is, the data selection circuit is controlled to select the identity code channel of that gun position and perform Ns samplings. If the voltage interval scheme is adopted, the voltage sample value Vj is obtained in each sampling and Vj is matched with [VGi_low, VGi_high]; if the time interval scheme is adopted, the identity code channel is charged and discharged in each sampling, and then the time Tj required to reach the preset threshold is measured and matched with [TGi_low, TGi_high]. The processor counts the number of matching m in the Ns samplings. When m≥K, the output channel confirmation result is successful; otherwise, it is a failure. By arranging identity sampling within Tg, we can improve real-time efficiency by utilizing the waiting time and reduce the probability of misjudgment as the signal gradually stabilizes.

[0044] Once the channel is successfully confirmed, the processor enters the metering sampling phase: the control data selection circuit switches to the metering signal channel for that gun position, activates the metering counting gating, counts the metering pulse signal within the metering sampling window W, obtains the pulse increment ΔN, and writes ΔN, along with the gun position identifier Gi, sampling timestamp ts, and other information, into the data buffer corresponding to that gun position. The data buffer can adopt an independent ring buffer structure for each gun position, with parameters including buffer depth L, write pointer wp, and read pointer rp. This is used to decouple the processor from other devices when generating metering data or interacting with peripherals, ensuring that metering acquisition is not blocked by communication or display tasks. When generating metering data, the processor extracts ΔN from the cache and calculates the volume increment ΔV=ΔN / Ki based on the calibration coefficient Ki of the gun position. Then, it accumulates the data to obtain the cumulative volume V, and combines it with the unit price Pi to generate the amount M=V×Pi. At the same time, it updates the valve or motor control signal according to the transaction status, such as starting the pump, holding, or turning it off, and forms an interactive data frame for display or communication. The interactive data frame may contain at least the gun position identifier, cumulative volume, amount, status word, and time information, so that the keyboard or back-end system can display, print, and upload the data.

[0045] When channel confirmation fails, the processor keeps the metering and counting gating closed and performs exception handling. The parameterized behavior of exception handling is controlled by the retry limit Nr. The processor records the channel confirmation failure information, which includes at least the gun position identifier Gi, the channel selection parameter SelGi, the identity feature parameters (such as the most recent sampled value Vj or Tj or their statistical values), and the acquisition time information ts, to form a traceable chain of evidence. Then, the processor performs a channel confirmation retry, that is, it re-outputs SelGi to switch channels and waits for Tg again, and performs identity sampling and consistency judgment Ns times again. If the confirmation is successful within Nr times, it resumes entering the metering sampling window W and counts normally; if the confirmation still fails after Nr, it skips the current metering signal acquisition for that gun position, that is, it does not enter the metering sampling window and does not write to the metering buffer, thereby avoiding incorrect gun assignment or crosstalk pulses being counted in the transaction. This strategy allows the system to tolerate occasional failures caused by short-term interference, and can promptly block erroneous data and retain evidence when there are continuous anomalies, making it easier for maintenance personnel to locate causes such as incorrect wiring harness insertion, mapping errors, abnormal selection circuits, or abnormal identity code devices.

[0046] To ensure the single-valuedness and stability of identity determination for different gun positions, this invention requires that the identity feature reference information RefGi adopt non-overlapping threshold intervals, and set an interval margin δ between adjacent threshold intervals. Taking the voltage interval as an example, at least δV is reserved between the threshold intervals of adjacent gun positions, so that when the sampled value falls into the margin area or invalid area, it can be directly judged as confirmation failure, avoiding misjudgment caused by boundary drift. Taking the time interval as an example, at least δT is reserved between the threshold intervals of adjacent gun positions to avoid interval overlap caused by device tolerance and temperature drift. The above interval design, together with the consistency judgment parameters Ns and K, ensures that channel confirmation remains stable in the actual electromagnetic environment of the gas station, and achieves repeatable and interpretable channel self-verification without relying on complex algorithms. Through the above multi-segment parameterization mechanism, this invention can achieve reliable time-division metering acquisition, accurate metering data generation, and safe valve motor control and interactive data output under the condition of limited interface resources but multiple gun positions concurrently.

[0047] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0048] Although embodiments of the invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims and their equivalents.

Claims

1. A data processing method for a fuel dispenser computer controller, applied to a fuel dispenser computer controller with multiple nozzle positions, the fuel dispenser computer controller including a processor and a data selection circuit connected to the processor, the data selection circuit being used to select and switch among multiple nozzle position signal channels, characterized in that, The method includes: Step S1, establishing a gun position task table, which includes at least gun position identifiers, channel selection parameters corresponding to the data selection circuit, and identity feature reference information corresponding to each gun position; Step S2, generating a time-sharing scheduling sequence according to the gun position task table, and controlling the data selection circuit to switch to the target gun position channel according to the time-sharing scheduling sequence; Step S3, before collecting metering signals from the target gun position, acquiring the identity feature parameters associated with the target gun position, and performing a consistency judgment between the identity feature parameters and the identity feature reference information to obtain a channel confirmation result; Step S4, when the channel confirmation result indicates successful confirmation, opening the metering counting gating and collecting the metering pulse signal of the target gun position, and writing the collected data into the data buffer corresponding to the gun position; when the channel confirmation result indicates failed confirmation, prohibiting the opening of the metering counting gating and performing exception handling; Step S5, generating metering data based on the valid collected data in the data buffer of each gun position and outputting control data and interactive data, wherein the control data includes at least valve or motor control signals, and the interactive data includes at least refueling data for display or communication.

2. The data processing method for a fuel dispenser computer controller according to claim 1, characterized in that, The identity feature parameter is a passive identity code sampling value. The passive identity code is generated by a passive device network corresponding to the target gun position, and the passive identity code sampling value is any one of the following: a voltage range value obtained by voltage sampling of the identity code channel of the target gun position; or a time range value obtained by charging and discharging the identity code channel of the target gun position and measuring the time required to reach a preset threshold.

3. The data processing method for a fuel dispenser computer controller according to claim 1, characterized in that, When acquiring the identity feature parameters associated with the target gun position, the data selection circuit is controlled to switch and multiplex between the identity code channel corresponding to the target gun position and the metering signal channel corresponding to the target gun position, so as to complete the acquisition of identity feature parameters and metering signal without adding an additional identity code acquisition channel.

4. The data processing method for a fuel dispenser computer controller according to claim 1, characterized in that, The anomaly handling includes: when the channel confirmation result indicates a confirmation failure, recording the channel confirmation failure information and performing a channel confirmation retry for the target gun position, wherein if the number of channel confirmation retry attempts reaches a preset upper limit and still fails to confirm, skipping the current metering signal acquisition for the target gun position.

5. The data processing method for a fuel dispenser computer controller according to claim 4, characterized in that: The channel confirmation failure information includes at least the target gun position identifier, the channel selection parameters corresponding to the data selection circuit, the identity feature parameters, and the acquisition time information.

6. The data processing method for a fuel dispenser computer controller according to claim 4, characterized in that: The preset upper limit is 1 to 5 times, and each channel confirmation retry is performed after the data selection circuit is switched back to the target gun position channel and after a preset switching protection interval.

7. The data processing method for a fuel dispenser computer controller according to claim 1, characterized in that: After controlling the data selection circuit to switch to the target gun position channel, a switching protection interval is set, and the identity feature parameters are acquired within the switching protection interval.

8. The data processing method for a fuel dispenser computer controller according to claim 1, characterized in that: When acquiring the identity feature parameters associated with the target gun position, the identity code channel of the target gun position is sampled at least twice, and the channel confirmation result is obtained based on the consistency determination of the repeated sampling results. The consistency determination includes: when the identity feature parameters match the identity feature reference information at least a preset number of times, the confirmation is determined to be successful.

9. The data processing method for a fuel dispenser computer controller according to claim 1, characterized in that: The identity feature reference information is threshold range information. The threshold ranges corresponding to different gun positions do not overlap, and a preset range margin is set between adjacent threshold ranges to distinguish the identity feature parameters of different gun positions.

10. A data processing system for a fuel dispenser computer controller, applied to a fuel dispenser computer controller with multiple nozzle positions, characterized in that, The system includes a processor and a data selection circuit connected to the processor. The data selection circuit is used to select and switch between multiple gun position signal channels. The system also includes: a gun position task table establishment module, used to establish a gun position task table, which includes at least a gun position identifier, channel selection parameters corresponding to the data selection circuit, and identity feature reference information corresponding to each gun position; a time-sharing scheduling module, used to generate a time-sharing scheduling sequence according to the gun position task table, and control the data selection circuit to switch to the target gun position channel according to the time-sharing scheduling sequence; and a channel confirmation module, used to obtain the identity feature parameters associated with the target gun position before collecting metering signals from the target gun position, and... The identity feature parameters are compared with the identity feature reference information to obtain a channel confirmation result; the metering acquisition and gating module is used to activate the metering counting gating and acquire the metering pulse signal of the target gun position when the channel confirmation result indicates successful confirmation, and write the acquired data into the data buffer corresponding to the gun position; when the channel confirmation result indicates failed confirmation, the metering counting gating is prohibited and exception handling is performed; the metering data generation and output module is used to generate metering data based on the valid acquired data in the data buffer of each gun position and output control data and interactive data, wherein the control data includes at least valve or motor control signals, and the interactive data includes at least refueling data for display or communication.

Citation Information

Patent Citations

  • Control method of oiling machine, metering and control main board and oiling machine

    CN114604815A

  • Intelligent calibration method for oiling machine

    CN119929727A