The content of the invention
The present invention the first technical scheme be metering system in non-metering data processing method, it is characterised in that toolThere are following steps,
Step 10, the 1st buffer and the 2nd buffer are reset, timer timing are set,
Step 20, non-consumption data are read, the 1st buffer is deposited with,
Step 30, compare the non-consumption data being deposited with the 1st buffer and the 2nd buffer, judge previous frame data andWhether the current data that receive are identical,
Step 40, if the non-consumption data being deposited with the 1st buffer and the 2nd buffer are identical, then it is assumed that data are justOften, into step 50, if it is different, then into step 60,
Step 50, directly the non-consumption data-pushing being deposited with the 1st buffer or the 2nd buffer is entered to display deviceRow display,
Step 60, the non-consumption data that will be deposited with the 1st buffer, copy in the 2nd buffer and deposit, and to countingDevice carries out accumulation operations,
Step 70, judge whether the count value of counter is more than or equal to setting A, if the count value of counter is more thanOr equal to setting A, into step 100, otherwise into step 80,
Step 80, judge whether the timing of timer has arrived, if do not arrived, into step 90, otherwise, into step110,
Step 90, by the non-consumption data-pushing being deposited with the 1st buffer or the 2nd buffer to oiling display device pairNon-consumption data are shown,
Step 100, the information of mistake is shown by display device,
Step 110, counter is reset, restarts and step 20 is returned to after timer.
The second technical scheme of the present invention is based on the first technical scheme, it is characterised in that the metering system is gas stationFuel-filling metering system in fuel charger, the non-metering data are non-consumption data.
Embodiment
Hereinafter, embodiments of the present invention are illustrated with reference to the accompanying drawings.In Fig. 1 gas stations fuel charger, non-consumption is monitoredThe structured flowchart of the monitoring system of data.
Monitoring system 3 is arranged between Fuel-filling metering system 1 and oiling display device 2.Fuel-filling metering system 1 passes through differenceOrder send consumption data and non-consumption data to monitoring system 3, consumption data be when putting the gun refueling continuous data (plusOily data), non-consumption data are the data under the non-fueling state of fuel charger, the real time information of display fuel charger state etc..DisappearExpense data are related to volume read-out continuous datas in refueling process, the characteristics of with consecutive variations, rather than consumption data then withVolume read-out is unrelated, the characteristics of without consecutive variations.The present invention using non-consumption data will not consecutive variations the characteristics of, disappear to non-Expense data are identified;If non-consumption data consecutive variations, then it is assumed that non-consumption data there may be problem, prevent non-consumptionThe display of data simultaneously carries out miscue.
Monitoring system 3 is as shown in figure 1, with non-consumption data processor 3a and consumption data processor 3b.Consumption dataProcessor 3b inputs consumption data according to the order of Fuel-filling metering system 1, after handling consumption data, is output to oiling aobviousShow that equipment 2 is shown.Consumption data processor 3b uses prior art, can be provided with various anti-cheating functions, concrete structurePertinent literature is referred to, be will not be repeated here.Non-consumption data processor 3a is used to monitor non-consumption data, with modular1st buffer, the 2nd buffer, timer, counter, comparator, display controller.Non-consumption data processor 3a can makeRealized with microprocessor by software.
Fig. 2 is process charts of the non-consumption data processor 3a to non-consumption data.Below according to Fig. 2, to non-consumptionThe processing procedure of data is illustrated.
Step 10, the 1st buffer and the 2nd buffer are reset, timer timing is set, timing can appoint as neededMeaning setting, is such as set in several milliseconds.
Step 20, the non-consumption data that Fuel-filling metering system 1 is inputted, are deposited with the 1st buffer.
Step 30, compare the non-consumption data being deposited with the 1st buffer and the 2nd buffer, judge previous frame data andWhether the data currently received are identical.
Step 40, if the non-consumption data being deposited with the 1st buffer and the 2nd buffer are identical, then it is assumed that data are justOften, into step 50, if it is different, then into step 60, determining whether.
Step 50, display controller directly arrives the non-consumption data-pushing being deposited with the 1st buffer or the 2nd bufferNon-consumption data are shown by oiling display device 2.Step 20 is returned to afterwards, the non-consumption data of next frame are read, and is repeatedEach step of the above.
Step 60, the non-consumption data that will be deposited with the 1st buffer, copy in the 2nd buffer and deposit, and to countingDevice carries out accumulation operations.
Step 70, judge whether the count value of counter is more than or equal to setting A.If the count value of counter is less thanSetting A, into step 100, otherwise into step 80.Setting A is set in 2 or more than 2, can so avoid it is first, becauseThere is no non-consumption data in 2nd buffer, and misjudgment occur.
Step 80, judge whether the timing of timer has arrived.If do not arrived, into step 90, otherwise into step110。
Step 90, display controller by the non-consumption data-pushing being deposited with the 1st buffer or the 2nd buffer to refuelNon-consumption data are shown by display device 2.Return to step 20 afterwards, read the non-consumption data of next frame, and repeat withUpper each step
Step 100, display controller sends the information for showing mistake to oiling display device 2, without by non-consumption dataIt is pushed to oiling display device 2.
Step 110, counter is reset, restarts and step 20 is returned to after timer, next frame non-consumption data are read, and repeatEach step of the above.
Above is in present embodiment, to the processing method of non-metering data, being to non-consumption data at the appointed timeThe no continuous change of appearance is judged, if there is continuous change, then it is assumed that non-consumption data are changed, now, are stoppedOnly non-consumption data to display device transmit while, show error message, so as to effectively prevent using non-consumption data,Pretend to be the approach that consumption data is practised fraud, with reference to the monitoring to consumption data, can comprehensively prevent the generation of cheating problem.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, as long as the present invention'sWithin spirit and principle, any modification, equivalent substitution and improvements made etc. should be included in the scope of the protection.