CN103645973B - A kind of Snapshot Method of gas station's data acquisition and application - Google Patents
A kind of Snapshot Method of gas station's data acquisition and application Download PDFInfo
- Publication number
- CN103645973B CN103645973B CN201310721690.5A CN201310721690A CN103645973B CN 103645973 B CN103645973 B CN 103645973B CN 201310721690 A CN201310721690 A CN 201310721690A CN 103645973 B CN103645973 B CN 103645973B
- Authority
- CN
- China
- Prior art keywords
- oil
- information
- tank
- storehouse
- transaction
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Landscapes
- Loading And Unloading Of Fuel Tanks Or Ships (AREA)
Abstract
The present invention relates to information technology and automatic field, the Snapshot Method of a kind of gas station's data acquisition and application is disclosed.Comprise the following steps:Second level sampling is carried out to tank information and tank information storehouse and real time information storehouse is saved in;To oil gun, fuel-displaced information carries out second level sampling and is saved in oil gun information bank and real time information storehouse in real time;Collection oil gun Transaction Information is simultaneously saved in Transaction Information storehouse and transaction SNAPSHOT INFO storehouse and real time information storehouse;Timing acquiring oil gun, tank information are simultaneously saved in historical snapshot information bank;Judge whether to meet alarm conditions;Judge whether oil tank stock reaches and unload oil standard;Whether the variable quantity for calculating tank capacity meets condition;Data, which are extracted, from tank information storehouse and Transaction Information storehouse and transaction SNAPSHOT INFO storehouse carries out loss calculation.The present invention can simplify business operation, improve operating efficiency;Monitoring, eliminates safe hidden trouble in real time;Efficient emptying mechanism is provided, automatic application dispenses and counts emptying;The data volume of transmission and storage is greatly reduced.
Description
Technical field
The present invention relates to information technology and automatic field, it is fast that more particularly to a kind of lifting gas station data are effectively applied
According to acquisition method.
Background technology
It is successfully joined after WTO, China's refined oil market is gradually opened to foreign petroleum company.How by informationization pipe
Reason system, comprehensively, accurately and timely grasps gas station's product oil and enters, sells, deposits information, realizes information gathering automation, reduces hand
Work works, cuts operating costs, improve the efficiency of management be increasingly becoming domestic petroleum company tackle external competition institute must face
To the problem of.Loss of Oil Products at Gas Station retail trade is the most important thing of oil company's information system management, to gas station's oil storage tank oil product
The collection of information and oil gun real time information be grasp product oil enter, sell, stored important means.
Monitoring device used in conventional gasoline station or information management system poor real, precision are low, cost is high and participates in by hand
Degree is higher, it is impossible to be well adapted for the demand of market competition.After entry to WTO, the entrance of oil market foreign corporation adds to the country
Oil market brings immense pressure.Meanwhile, the rhythm of life of modern is increasingly accelerated, and the operating efficiency to gas station is proposed more
High requirement.This moment, it is badly in need of proposing a kind of system side that can provide complete ongoing basis data set for gas station's business automatically
Method.
Classical snapshot is mainly used in field of storage, and it is to carry out online data backup with recovering that it, which is acted on,.In the present invention
Gas station's snapping technique is mainly used in fuel station information collection field, refers to some time point to gas station's oil tank and oil gun
One completely available copy of data, main function is to realize that Loss of Oil Products at Gas Station " enters, sold, depositing " statistics automation, and lifting is accurate
Degree, the information that snapshot is included has:Water accumulating volume, all oil guns are real-time in liquid level, oil tank in all oil tank oil stocks, oil tank
Pump code, oil gun are per transaction transaction value, snapshot gathers time point etc..The triggering mode of snapshot collection is divided into two kinds:Event trigger and
Clocked flip.Event, which is triggered, is alternatively referred to as " transaction triggering ", at the time of referring to any one completion transaction oil gun in gas station
Gather gas station's snapshot;Clocked flip refers to the time interval cycle or disposable collection gas station's snapshot according to setting, time
Interval can flexibly change on demand.
From the perspective of gas station's statistics, the data sample for statistics is more abundant more is conducive to statistics.One kind has very much
The mode of effect is to carry out second pole sampling, i.e. collection each second once, but has the disadvantage that data volume is excessively huge, to data center
Data storage and inquiry bring sizable pressure.The event triggering that the present invention is used and the strategy that clocked flip is combined exist
While meeting gas station's statistical demand, data volume is greatly reduced.
The content of the invention
It is an object of the invention to for manual degree of participation in the operation flow of conventional gasoline station is high, efficiency is low, cost is high,
There is provided the snapshot acquisition method that a kind of lifting gas station data are effectively applied for the drawbacks of accuracy cannot be guaranteed.
Method of the present invention can in real time, automatic data collection gas station oil machine and oil tank transaction level SNAPSHOT INFO, to add
The business such as petrol station loss statistics, service alarm, emptying detection, oil products delivery provide complete data collection.Comprise the following steps:
Second level sampling is carried out to tank information and tank information storehouse and real time information storehouse is saved in.
To oil gun, fuel-displaced information carries out second level sampling and is saved in oil gun information bank and real time information storehouse in real time.
Collection oil gun Transaction Information is simultaneously saved in Transaction Information storehouse and transaction SNAPSHOT INFO storehouse and real time information storehouse.
Timing acquiring oil gun, oil tank up-to-date information are simultaneously saved in historical snapshot information bank.
According to the alarm threshold parameter set in configuration information storehouse, with reference to oil gun, oil tank up-to-date information, judge whether to meet
Alarm conditions.If meeting, accordingly alarmed.
According to the oil tank threshold parameter set in configuration information storehouse, with reference to oil tank up-to-date information, whether oil tank stock is judged
Reach and unload oil standard.If reaching, oil products delivery request is sent to logistics distribution system.
According to the emptying testing conditions set in configuration information storehouse, with reference to oil tank historical snapshot information bank, oil tank storage is calculated
Whether the variable quantity of oil mass meets condition, sends corresponding prompting if meeting, and emptying information is saved in into emptying information bank
In.Information in emptying information bank includes:Emptying initial time, emptying start time tank capacity, the emptying end time, unload
Oily finish time tank capacity etc..
According to the time parameter set in configuration information storehouse, from tank information storehouse and Transaction Information storehouse and transaction SNAPSHOT INFO
Data are extracted in storehouse and carry out loss calculation.
Described tank information storehouse is:Tank information library storage gas station's tank information of second level sampling, including refuels
Stand numbering, oil tank numbering, oil product, profit cumulative volume, liquid level, acquisition time stamp etc..
Described real time information storehouse is:The newest of all oil tanks and oil gun in gas station is store in real time information storehouse respectively
Data, oil tank data include oil tank numbering, oil product, profit cumulative volume, liquid level, water height etc.;Oil gun data are compiled including oil gun
Number, pump code value, present refueling volume, the oiling amount of money etc..
Described historical snapshot information bank is:All oil in the gas station of timing acquiring are store in historical snapshot information bank
The SNAPSHOT INFO of rifle and oil tank:Pump code, oil gun including oil gun are per transaction volume read-out, the oil reserve of oil tank, the ponding of oil tank
Amount, transactional cards card number etc..
Described oil gun information bank is:Oil gun fuel-displaced information when oil gun information bank stores the oiling of real time second level sampling,
Including:Gas station's numbering, oil gun number, oil price, pump code value, timestamp etc..
Described Transaction Information storehouse is:Transaction Information library storage really when gas station's oil gun transaction record for gathering, including:
Terminal transaction sequence number, timestamp that gas station's numbering, oil gun number, present refueling volume, PSAM cards are produced etc..
Described transaction SNAPSHOT INFO storehouse is:Transaction SNAPSHOT INFO library storage certain rifle in gas station and completes fueling transaction
At the time of the station in all oil tanks, the SNAPSHOT INFO of oil gun, including:The terminal that gas station's numbering, oil gun number, PSAM cards are produced is handed over
Easy sequence number, the stock of all oil tanks, pump code, the timestamp of all oil guns.
Described configuration information storehouse is:The parameter letter set by each related service in gas station is deposited in configuration information storehouse
Breath:The threshold parameter of time parameter, alert service including computed losses and minimum quantity of stores of application oil products delivery etc..
The threshold parameter of alert service includes:Oil tank highest level value, oil tank lowest water level value etc..
Described alarm threshold parameter refers to:Alarm threshold parameter mainly includes high level threshold value, low liquid level threshold value, Gao Shui
Position threshold value etc..High level threshold value refers to the maximum of oil product quantity in stock in oil tank;Low liquid level threshold value refers to oil product stock in oil tank
The minimum value of amount;High water level threshold value refers to the maximum of water accumulating volume in oil tank.
The described alarm conditions that meet refer to:During the information of timing acquiring oil tank, the oil tank level or water currently gathered
Place value is more than or less than the threshold value that relevant parameter is set in alert service configuration information storehouse.
Described oil tank threshold parameter refers to:When oil product quantity in stock is less than some storage in oil tank, oil can not be just sold again, must
Must application oil products delivery, oil tank stock when oil tank threshold parameter just refers to need to apply for oil products delivery.
Described reaches that unloading oil standard refers to:The oil reserve of timing acquiring oil tank, the tank capacity currently gathered is less than
Or minimum oil product memory margin in oil tank when equal to the oil tank set in configuration information storehouse needing emptying.
The time parameter set in described configuration information storehouse refers to:Can flexibly it be set according to gas station's business demand
Count the time interval of gas station " enter, sell, depositing ".
Described collection oil gun Transaction Information is simultaneously saved in transaction SNAPSHOT INFO warehouse and mainly comprised the following steps:
Oil gun data are gathered by collecting device;
According to oil machine and host computer communication protocol, cutting data, i.e., the boundary point of searching data bag from data flow;
Judge type of data packet, if real time data, be then saved in oil gun information warehouse;If transaction data, then from reality
When information bank in extract the up-to-date information of all oil guns in the gas station and all oil tanks, and be saved in transaction SNAPSHOT INFO storehouse
Storehouse.
Described timing acquiring oil gun, oil tank up-to-date information are simultaneously saved in historical snapshot information warehouse and mainly include following step
Suddenly:
The time interval of timing is set, and is saved in configuration information storehouse;
Administrative center reads information in repository, is issued to corresponding gas station;
Gas station sets local timer according to configuration information;
When timer is triggered, the corresponding information that all oil tanks and oil gun in gas station are extracted from real time information storehouse is concurrent
It is sent to administrative center;
Administrative center carries out corresponding operating according to information data type:If oil tank data, then judge whether to meet alarm
Condition, satisfaction then alerts and produces alarm record, while information is saved in into historical snapshot information bank;It is unsatisfactory for, by what is received
Information is saved directly to historical snapshot information bank.If oil gun data, then by the every transaction exchange hand of oil gun and accumulative pump code
Value is saved in historical snapshot information bank;
Tank capacity information is saved in before historical snapshot information bank, judges whether oil tank oil storage variable quantity meets emptying
Testing conditions, if meeting, record emptying information;If being unsatisfactory for only current oil reserve need to being saved in into historical snapshot information bank
.
Described loss calculation mainly comprises the following steps:
Obtain the time parameter set in configuration information storehouse;
Oil tank oil pump capacity in period in timing statistics tank information storehouse;
In timing statistics emptying information bank oil mass is unloaded in the correspondence oil tank period;
Pump code walks number of words in the oil gun period in timing statistics transaction SNAPSHOT INFO storehouse;
Transaction oil mass total value in the oil gun period in timing statistics transaction SNAPSHOT INFO storehouse;
Damage in number of words and oil gun transaction oil mass total value calculation interval is walked according to gained tank unloading amount, oil gun pump code is calculated
Consumption.
The present invention has the advantage that compared with prior art:
1. simplifying business operation, operating efficiency is improved
At present, gas station's tank information and oil gun pump code acquisition of information are manually read and recorded by employee, Ran Houzai
The mode of typing managing and control system or zero guard system realizes, intricate operation and error rate is high.Usually cause stone because of human factor
Oily companies losses are serious, many " bleed " phenomenons occur.
And this method can greatly reduce the workload of employee, operating efficiency is improved.Employee only needs to simple operations, with regard to energy
Easily, it is accurately finished acquisition of information.
2. monitoring, eliminates safe hidden trouble in real time
Conventional gasoline station detection " run, drip, leak " phenomenon nearly all has been manually done, complex disposal process, and information
It is delayed serious, cause above-mentioned phenomenon to happen occasionally, not only pollute environment, and return gas station and bury potential safety hazard.The opposing party
Face, gas station adds the phenomenon of wrong oil also to happen occasionally, and influences more severe.
And this method can calculate in real time, compared using all oil tanks in gas station and the SNAPSHOT INFO of oil gun, in time
Pinpoint the problems and alert, eliminate safe hidden trouble.
3. providing efficient emptying mechanism, automatic application, which is dispensed and counted, unloads oil mass
Described gas station does not stop oiling class knot computational methods, and to be that the graduation business of class of gas station is provided a set of efficient, accurately
Computing mechanism, can in real time, automatic detection oil tank stock, and send emptying application to second logistic system in time, it is to avoid empty
The generation of tank phenomenon.In addition, RTC unloading can be accurately detected, and programming count unloads oil mass, optimizes operation flow, improves
Efficiency.
4. event-driven significantly reduces the data volume of transmission and storage with regularly driving the snap shot being combined
In the case where meeting gas station's business demand, network transmission and the data volume of data center to be reduced as far as possible, is adopted
With the strategy of second level sampling, systematic function can also receive in the environment for managing a small amount of gas station, but in face of large-scale application
During scene, systematic function can be caused to have a strong impact on.Based on this, this method proposes time driving with regularly driving the side being combined
Formula, event-driven mainly do oil gun transaction level sampling, timing driving can root army business demand be adjusted flexibly, with the second level sampling phase
Than the data volume transmitted and stored can be reduced with tens even hundred times.
Brief description of the drawings
Fig. 1 is that gas station's data effectively apply Snapshot Method hardware platform logic module figure;
Fig. 2 is data snapshot application system structure composition schematic diagram;
Fig. 3 is gas station's data snapshot method schematic flow sheet;
Fig. 4 is that data snapshot method adds wrong oily early warning explanation;
Fig. 5 is that data snapshot method emptying manages schematic flow sheet;
Fig. 6 is historical snapshot acquisition schematic diagram in data snapshot method.
Embodiment
With reference to embodiment and accompanying drawing, technical scheme is described in further detail.
As shown in figure 1, a kind of hardware development plate for the collecting device that gas station's data are effectively designed using Snapshot Method is patrolled
Collect module map as follows:
1) real-time clock RTC:In the event of a power failure, internal clock circuit being capable of normal work, it is ensured that be for guarantee system
Real-time, the accuracy of system time;
3) Ethernet interface RJ45:Remote management and configuration are carried out to Acquisition Instrument by network, and pass through network and center
Management system is interacted;
4) Multi-serial port RS232:Fuel charger, tank gage data channel are gathered, 8 circuit-switched data collections can be at most carried out simultaneously;
5)USB:By serial acquisition data preparation, analysis after, progress backup is locally stored, in order to inquire about at any time with it is extensive
It is multiple;
6) LED light:Including data transmit-receive indicator lamp, power supply indicator and malfunction indicator lamp;
7) SD CARD interfaces:After serial acquisition data preparation, analysis, backup is locally stored in progress, in order at any time
Inquiry is with recovering;
8) CONSOLE mouthfuls:Debugging, test are used.
Fig. 2 is data snapshot application system structure composition schematic diagram, and it includes oil tank, tank gage, oil gun, oil machine, data
Acquisition module, central management system, data warehouse, configuration information storehouse, loss statistics, service alarm, oil products delivery, emptying inspection
Survey, statistical form, alarm record sheet and dispatching application form is lost.Wherein, data acquisition module includes:Tank information collection, oil
Rifle information gathering, Transaction Information collection and SNAPSHOT INFO collection;Data warehouse includes:Tank information storehouse, oil gun information bank,
Real time information storehouse, Transaction Information storehouse, transaction SNAPSHOT INFO storehouse, historical snapshot information bank and emptying information bank.
Correlation in schematic diagram between each module can be summarized as follows:
The system parameters that user sets are saved in configuration information storehouse by central management system, and by with gas station
Between communication interface configuration information is issued to gas station.
Tank information acquisition module sends querying command to tank gage and obtains tank information in real time, is gathered via tank information
Storage simultaneously preserves history note into tank information storehouse and in real time information storehouse, in tank information storehouse after resume module parsing
State-of-the-art record is only preserved in record, real time information storehouse;
Fuel-displaced information uploads to oil gun information acquisition module to oil gun through oil machine in real time, is handled via oil gun information acquisition module
Storage is arrived after parsing preserves in historical record, real time information storehouse only in oil gun information bank and real time information storehouse, oil gun information bank
Preserve state-of-the-art record;
Oil gun uploads to Transaction Information acquisition module per transaction information by oil machine, is handled via Transaction Information acquisition module
Transaction Information storehouse and transaction SNAPSHOT INFO storehouse are arrived in storage after parsing;
The information snap of all oil tanks in gas station and oil gun is extracted in the timing of SNAPSHOT INFO acquisition module from real time information storehouse,
And on be sent in the historical snapshot information bank of center;
Statistical module is lost according to the timing statisticses granularity set in configuration information storehouse, regularly from tank information storehouse, emptying
Information, statistics gas station's oil tank, the fuel-displaced loss of oil gun are extracted in information bank and transaction SNAPSHOT INFO storehouse, and automatically generates loss system
Count table.
Service alarm module, oil products delivery module and emptying detection module are obtained most from SNAPSHOT INFO acquisition module
New oil tank, oil gun SNAPSHOT INFO.Service alarm module is by calculating whether comparison information data meet alert if, if meeting
Condition, then produce and accordingly alert and record corresponding warning information;Oil products delivery module directly obtains oil product quantity in stock in oil tank, if
Less than oil mass threshold value is unloaded, then Auto-writing dispenses application form and sends dispatching request to oil products delivery system;Emptying detection module
By comparing the relation of the newest amount of storage of oil product and history oil reserve in oil tank, the emptying beginning and end moment is judged, and and
Shi Gengxin emptying information banks.
As shown in figure 3, a kind of gas station's data effectively using Snapshot Method flow for (in figure dotted line be asynchronous controlling or
Flow):
(1) systematic parameter configuration, the user of administrative center sets dependent thresholds parameter, and be saved according to business demand
In configuration information storehouse;
(2) relevant configuration information in configuration information storehouse is issued to gas station by central management system;
(3) the dependent thresholds parameter in repository carries out basic data acquisition, and the basic data of collection includes refueling
Stand tank information, oil gun in real time fuel-displaced information, oil gun Transaction Information and user's card information;
(4) correctness for the basic data that checking is collected;
(5) judge the type of packet, if packet is transaction record, jump to step (6);Otherwise step (9) is jumped to;
(6) judge whether to meet plus wrong oily Rule of judgment according to user's card information, satisfaction then sends early warning;
(7) extract in the gas station SNAPSHOT INFO of all oil tanks and oil gun and be saved in transaction SNAPSHOT INFO storehouse;
(8) data in timing extraction transaction SNAPSHOT INFO storehouse, tank information storehouse and Transaction Information storehouse, carry out gas station
Sell oil loss statistics, generation loss statistical form;
(9) timer is set according to the system time parameter threshold value of configuration;
(10) during timers trigger, gas station's SNAPSHOT INFO is extracted from real time information storehouse;
(11) gas station's SNAPSHOT INFO is sent to central management system and be saved in historical snapshot information bank;
(12) extract SNAPSHOT INFO accordingly calculate, compare, if meeting alarm conditions, send corresponding warning information;
(13) if oil tank oil stock sends oil products delivery request less than oil standard is unloaded to logistics system;
(14) oil tank stock up-to-date information and historical snapshot information are compared, is started or termination condition if meeting emptying, more
New emptying information bank, jumps to step (9).
Fig. 4 is that gas station's data snapshot method adds wrong oily warning module workflow, and oil gun information is transferred to by oil machine
Card insertion information acquisition module and oil gun carry rifle information acquisition module.When gas filling card inserts fuel charger, card insertion information gathering
Module is extracted gas filling card application number from oil machine upload information and is saved in card oiling information bank.Oil supplier lifts oil gun and prepares to add
Oil gun, which carries rifle information acquisition module and oil gun is extracted from the information sent in oil machine puies forward rifle information and be saved in oil gun, when oily carries rifle
In information bank.Oil gun proposes the triggering of rifle information and adds wrong oily detection module, plus wrong oily detection module to extract and add from card log-on message storehouse
Oil card information, extracts gas station's essential information from petrol station essential information storehouse, judges whether current refuel has plus wrong alopecia areata danger, if
It is risky, then it can send warning information to gas station.
Fig. 5 is that data snapshot method emptying manages schematic flow sheet, only describes one-time detection process in figure, can be divided into as
Under several steps:
(1) gas station's oil tank latest snapshot information is obtained from real time information storehouse;
(2) that the oil tank is extracted from configuration information storehouse unloads oil mass threshold value;
(3) whether relatively more current oil tank oil quantity in stock meets emptying condition, and step (8) is jumped to if meeting, otherwise, jumps
To step (4);
(4) relatively more current oil tank oil quantity in stock and the oil tank history in the nearest certain time in historical snapshot information bank
The average value of SNAPSHOT INFO, if meeting emptying starts condition, jumps to step (5), otherwise jumps to step (8);
(5) the beginning emptying record of a current oil tank is generated in emptying information table;
(6) relatively more current oil tank oil quantity in stock and the oil tank history in the nearest certain time in historical snapshot information bank
The average value of SNAPSHOT INFO, if meeting emptying termination condition, jumps to step (7), otherwise jumps to step (8);
(7) the corresponding emptying start recording of current oil tank in emptying information table, the complete emptying note of generation one are updated
Record;
(8) this oil product stock detection terminates.
Fig. 6 is historical snapshot acquisition schematic diagram in data snapshot method, and the module is broadly divided into agentd and server two
Part.Wherein, agentd is mainly responsible for extracting the latest snapshot information of gas station's oil tank and oil gun from real time information storehouse,
Server is mainly responsible for configuration information and issues and SNAPSHOT INFO is saved in into historical snapshot information bank.As shown in fig. 6, whole fortune
Row process can be divided into following two subprocess:
(1) snapshot detection information parameter list is obtained
Each parameter correspond to a kind of metrical information value of gas station's oil tank or oil gun, such as oil tank oil stock, oil tank
Water accumulating volume, oil gun pump code value etc..Timing is obtained detection parameter list by Agentd from Server, it is therefore an objective to guaranteed in time more
New parameter list.The acquisition of parameter list comprises the following steps:
Agentd obtains timing cycle from configuration information storehouse, the time LT of list while the setting cycle gets parms;
Agentd actively initiates connection request to Server, sets up connection;
Server is received after Agentd request, is that it distributes resource, and return to request-reply;
Agentd sends the list request that gets parms to Server;
Server query configuration information banks, return to corresponding detection parameter list;
The parameter list that Agentd parsings are received, if asking for the first time, then preserves list information;Otherwise, update first
Preceding list information;
After operating successfully, Agentd actively closes connection, and Server also does corresponding rehabilitation, discharges resource;
Agentd waiting timers LT time-out triggerings, jump to step 1).
(2) fuel station information snapshot is sent on
On send the processes of data to be periodic, each detection parameter comprises at least key and two parameters of delay,
Wherein key is the keyword for the parameter for needing detection, and delay is the cycle detection time.General steps are as follows:
Agentd is according to the delay values of detection parameter, setting periodic snapshot infomation detection timer MT;
Agentd waiting timers MT time-out triggerings;
Agentd gathers the corresponding SNAPSHOT INFO in gas station according to the key of detection parameter and cached;
Agentd actively initiates connection request to Server, sets up connection;
Server is received after Agentd request, is that it distributes resource, and return to request-reply;
Agentd is to the SNAPSHOT INFO that caching is sent on Server;
The information sent on Agentd is saved in historical snapshot information bank, and result is returned by Server.Meanwhile,
Server calls correlation module to make calculation process, including service alarm, emptying detection etc.;
Agentd actively closes connection, and Server also does corresponding rehabilitation, discharges resource, jumps to step 1).
This method can greatly reduce the workload of employee, improve operating efficiency.Employee only needs to simple operations, just can be light
Pine, be accurately finished acquisition of information;Using all oil tanks in gas station and the SNAPSHOT INFO of oil gun, calculate in real time, compare, and
When pinpoint the problems and alert, eliminate safe hidden trouble.A set of efficient, accurate computer is provided for the graduation business of class of gas station
System, can in real time, automatic detection oil tank stock, and in time to second logistic system transmission emptying application, it is to avoid slack tank phenomenon
Occur.In addition, RTC unloading can be accurately detected, and programming count unloads oil mass, optimizes operation flow, improves efficiency.
The time driving that this method is proposed is with regularly driving the mode being combined, and event-driven mainly does oil gun transaction level sampling, timing
Driving can root army business demand be adjusted flexibly, with the second level sampling compared with, can with tens even hundred times reduce transmit and store
Data volume.
The Snapshot Method of a kind of gas station's data acquisition provided by the present invention and application is described in detail above,
For those of ordinary skill in the art, according to the thought of the embodiment of the present invention, in specific embodiments and applications
It will change, this specification content should not be construed as limiting the invention.
Claims (8)
1. the Snapshot Method of a kind of gas station's data acquisition and application, it is characterised in that comprise the following steps:
Second level sampling is carried out to tank information and tank information storehouse and real time information storehouse is saved in;
To oil gun, fuel-displaced information carries out second level sampling and is saved in oil gun information bank and real time information storehouse in real time;
Collection oil gun Transaction Information is simultaneously saved in Transaction Information storehouse and transaction SNAPSHOT INFO storehouse and real time information storehouse;
Timing acquiring oil gun, oil tank up-to-date information are simultaneously saved in historical snapshot information bank;
According to the alarm threshold parameter set in configuration information storehouse, with reference to oil gun, oil tank up-to-date information, judge whether to meet alarm
Condition, if meeting, is accordingly alarmed;
According to the oil tank threshold parameter set in configuration information storehouse, with reference to oil tank up-to-date information, judge whether oil tank stock reaches
Oil standard is unloaded, if reaching, oil products delivery request is sent to logistics distribution system;
According to the emptying testing conditions set in configuration information storehouse, with reference to oil tank historical snapshot information bank, tank capacity is calculated
Variable quantity whether meet condition, send corresponding prompting if meeting, and emptying information be saved in emptying information bank;
According to the time parameter set in configuration information storehouse, from tank information storehouse and Transaction Information storehouse and transaction SNAPSHOT INFO storehouse
Extract data and carry out loss calculation;
Described loss calculation mainly comprises the following steps:
Obtain the time parameter set in configuration information storehouse;
Oil tank oil pump capacity in period in timing statistics tank information storehouse;
In timing statistics emptying information bank oil mass is unloaded in the correspondence oil tank period;
Pump code walks number of words in the oil gun period in timing statistics transaction SNAPSHOT INFO storehouse;
Transaction oil mass total value in the oil gun period in timing statistics transaction SNAPSHOT INFO storehouse;
Number of words and oil gun transaction oil mass total value calculation interval internal loss are walked according to gained tank unloading amount, oil gun pump code is calculated;
Described timing acquiring oil gun, oil tank up-to-date information are simultaneously saved in historical snapshot information warehouse and mainly comprised the following steps:
The time interval of timing is set, and is saved in configuration information storehouse;
Administrative center reads information in configuration information storehouse, is issued to corresponding gas station;
Information setting local timer of the gas station in configuration information storehouse;
When timer is triggered, from real time information storehouse extract gas station in all oil tanks and oil gun corresponding information and be sent to
Administrative center.
2. the Snapshot Method of gas station's data acquisition according to claim 1 and application, it is characterised in that described collection
Oil gun Transaction Information is simultaneously saved in transaction SNAPSHOT INFO warehouse and mainly comprised the following steps:
Oil gun data are gathered by collecting device;
According to oil machine and host computer communication protocol, cutting data, i.e., the boundary point of searching data bag from data flow;
Judge type of data packet, if real time data, be then saved in oil gun information warehouse;If transaction data, then from real-time letter
Breath extracts the up-to-date information of all oil guns in the gas station and all oil tanks in storehouse, and is saved in transaction SNAPSHOT INFO warehouse.
3. the Snapshot Method of gas station's data acquisition according to claim 1 and application, it is characterised in that administrative center's root
Corresponding operating is carried out according to information data type:If oil tank data, then judge whether to meet alarm conditions, satisfaction is then alerted and produced
Raw alarm record, while information is saved in into historical snapshot information bank;It is unsatisfactory for, the information received is saved directly to history
SNAPSHOT INFO storehouse, if oil gun data, is then saved in historical snapshot letter by the every transaction exchange hand of oil gun and accumulative pump code value
Cease storehouse.
4. the Snapshot Method of gas station's data acquisition according to claim 1 and application, it is characterised in that tank capacity
Information is saved in before historical snapshot information bank, judges whether oil tank oil storage variable quantity meets emptying testing conditions, if meeting,
Record emptying information;If being unsatisfactory for only current oil reserve need to being saved in into historical snapshot information bank.
5. the Snapshot Method of the gas station's data acquisition and application according to Claims 1-4 any one, its feature exists
In described tank information storehouse is:Tank information library storage gas station's tank information of second level sampling, including gas station is compiled
Number, oil tank numbering, oil product, profit cumulative volume, liquid level, acquisition time stamp;
Described real time information storehouse is:The newest number of all oil tanks and oil gun in gas station is store in real time information storehouse respectively
According to it is high that oil tank data include oil tank numbering, oil product, profit cumulative volume, liquid level, water;Oil gun data include oil gun numbering, pump
Code value, present refueling volume, the oiling amount of money;
Described historical snapshot information bank is:Store in historical snapshot information bank in the gas station of timing acquiring all oil guns and
The SNAPSHOT INFO of oil tank, including the pump code of oil gun, oil gun are per transaction volume read-out, the oil reserve of oil tank, the water accumulating volume of oil tank, hand over
Easy card card number;
Described oil gun information bank is:Oil gun fuel-displaced information when oil gun information bank stores the oiling of real time second level sampling, including:
Gas station's numbering, oil gun number, oil price, pump code value, timestamp;
Described Transaction Information storehouse is:Transaction Information library storage really when gas station's oil gun transaction record for gathering, including:Refuel
Stand numbering, oil gun number, present refueling volume, PSAM cards produce terminal transaction sequence number, timestamp;
Described transaction SNAPSHOT INFO storehouse is:Transaction SNAPSHOT INFO library storage in gas station certain rifle complete fueling transaction when
The SNAPSHOT INFO of all oil tanks, oil gun in the station is carved, including:The terminal transaction sequence that gas station's numbering, oil gun number, PSAM cards are produced
Number, the stock of all oil tanks, all oil guns pump code, timestamp;
Described configuration information storehouse is:The parameter information set by each related service in gas station is deposited in configuration information storehouse, is wrapped
Include the time parameter of computed losses, the threshold parameter of alert service and the minimum quantity of stores for applying for oil products delivery.
6. the Snapshot Method of the gas station's data acquisition and application according to Claims 1-4 any one, its feature exists
In described alarm threshold parameter refers to:Alarm threshold parameter mainly includes high level threshold value, low liquid level threshold value, high water level threshold
Value, high level threshold value refers to the maximum of oil product quantity in stock in oil tank;Low liquid level threshold value refers to that oil product quantity in stock is most in oil tank
Small value;High water level threshold value refers to the maximum of water accumulating volume in oil tank;
The described alarm conditions that meet refer to:During the information of timing acquiring oil tank, the oil tank level or water level value currently gathered
The threshold value set more than or less than relevant parameter in alert service configuration information storehouse.
7. the Snapshot Method of the gas station's data acquisition and application according to Claims 1-4 any one, its feature exists
In described oil tank threshold parameter refers to:When oil product quantity in stock is less than some storage in oil tank, oil can not be just sold again, it is necessary to Shen
Please oil products delivery, oil tank stock when oil tank threshold parameter just refers to need to apply for oil products delivery;
Described reaches that unloading oil standard refers to:The oil reserve of timing acquiring oil tank, the tank capacity currently gathered is less than or waited
Minimum oil product memory margin in oil tank when the oil tank set in configuration information storehouse needs emptying.
8. the Snapshot Method of the gas station's data acquisition and application according to Claims 1-4 any one, its feature exists
In the time parameter set in described configuration information storehouse can flexibly set statistics gas station according to gas station's business demand
The time interval of " enter, sell, depositing ".
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310721690.5A CN103645973B (en) | 2013-12-18 | 2013-12-18 | A kind of Snapshot Method of gas station's data acquisition and application |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310721690.5A CN103645973B (en) | 2013-12-18 | 2013-12-18 | A kind of Snapshot Method of gas station's data acquisition and application |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103645973A CN103645973A (en) | 2014-03-19 |
CN103645973B true CN103645973B (en) | 2017-08-11 |
Family
ID=50251194
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310721690.5A Expired - Fee Related CN103645973B (en) | 2013-12-18 | 2013-12-18 | A kind of Snapshot Method of gas station's data acquisition and application |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103645973B (en) |
Families Citing this family (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105160145B (en) * | 2015-07-02 | 2018-03-09 | 浙江工商大学 | A kind of method and system of gas station's automatic oil discharge detection |
CN105588615A (en) * | 2015-12-14 | 2016-05-18 | 浙江工商大学 | Tank capacity table construction method and device based on real-time data acquisition |
CN106021787B (en) * | 2016-05-31 | 2019-04-02 | 浙江工商大学 | A kind of oil tank volume modeling method |
US10577237B2 (en) * | 2016-06-14 | 2020-03-03 | Wayne Fueling Systems Llc | Methods and devices for fuel dispenser electronic communication |
CN107462299B (en) * | 2017-08-16 | 2019-12-31 | 浙江工商大学 | Data processing method for calibrating oil tank volume meter by using integral |
CN109993920A (en) * | 2017-12-29 | 2019-07-09 | 韶关市易通车联电子商务有限公司 | A kind of shared fuel loading system based on cloud |
CN109801020A (en) * | 2019-02-01 | 2019-05-24 | 中国石化销售有限公司浙江衢州石油分公司 | A kind of oil depot data summarization is analysis shows that method |
CN110203875B (en) * | 2019-06-10 | 2022-05-24 | 郑州永邦测控技术有限公司 | Integrated control system of gas station |
CN110991328B (en) * | 2019-11-29 | 2023-07-14 | 重庆宏道拓土科技有限公司 | System and method for managing loading of excavator and engineering transport vehicle in construction process |
CN111045971A (en) * | 2019-12-18 | 2020-04-21 | 大唐半导体科技有限公司 | Control circuit and method for cutting single serial port into multiple 232 serial ports of refueling tax control machine |
CN112284486A (en) * | 2020-10-28 | 2021-01-29 | 中国石化销售股份有限公司贵州石油分公司 | Abnormal data monitoring method and device for liquid level meter, computer equipment and storage medium |
CN113307215B (en) * | 2021-05-13 | 2022-11-18 | 青岛海尔空调器有限总公司 | Liquid filling method, device, apparatus, system, medium, and program product |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101452599A (en) * | 2007-12-04 | 2009-06-10 | 天津开发区贰加壹米兰环保科技有限公司 | Filling station management system |
CN201724706U (en) * | 2010-07-23 | 2011-01-26 | 北京博瑞特自动计量系统股份有限公司 | Oil discharge safety monitor |
CN201917382U (en) * | 2011-01-20 | 2011-08-03 | 福建榕泰达信息技术服务有限公司 | Real-time oil consumption management system |
-
2013
- 2013-12-18 CN CN201310721690.5A patent/CN103645973B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101452599A (en) * | 2007-12-04 | 2009-06-10 | 天津开发区贰加壹米兰环保科技有限公司 | Filling station management system |
CN201724706U (en) * | 2010-07-23 | 2011-01-26 | 北京博瑞特自动计量系统股份有限公司 | Oil discharge safety monitor |
CN201917382U (en) * | 2011-01-20 | 2011-08-03 | 福建榕泰达信息技术服务有限公司 | Real-time oil consumption management system |
Non-Patent Citations (2)
Title |
---|
中石化深圳石油分公司加油站管理信息系统建设方案;焦海明;《中国优秀硕士学位论文全文数据库,经济与管理科学辑》;20110228;16-34 * |
加油站综合信息管理系统;王淼;《中国优秀硕士学位论文全文数据库,信息科技辑》;20061031;36-58 * |
Also Published As
Publication number | Publication date |
---|---|
CN103645973A (en) | 2014-03-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103645973B (en) | A kind of Snapshot Method of gas station's data acquisition and application | |
CN102081622B (en) | Method and device for evaluating system health degree | |
CN104965861B (en) | A kind of data access monitoring device | |
CN101420340B (en) | Service monitoring and failure fast positioning method adopting self-detection mechanism | |
CN102096965B (en) | Automatic teller machine (ATM) management system and automatic currency delivery method | |
CN107945053A (en) | A kind of multiple source power distribution network data convergence analysis platform and its control method | |
CN101808007B (en) | Method for acquiring real-time performance data by network manager | |
CN106408192A (en) | Mineral processing equipment operating state monitoring system and method | |
CN104516786B (en) | Information processing unit, fault-avoidance methods and procedures storage medium | |
CN106374993A (en) | Full-automatic unattended satellite telemetering monitoring platform and data processing method | |
CN103118051A (en) | Method and device for monitoring information issuing process | |
CN105373118A (en) | Intelligent equipment data acquisition method | |
CN110282591A (en) | A kind of metering system for the real-time income determination in gas station | |
CN102929224A (en) | Condition acquisition controller (CAC) for power transformer equipment and system control method | |
CN116362769A (en) | Method and system for tracing quality problem of finished oil, electronic equipment and storage medium | |
CN103678522A (en) | Method for acquiring and converting data of metering system of intelligent transformer substation | |
CN101355443B (en) | Method for acquiring ARM terminal equipment status | |
CN104504504B (en) | A kind of electric network data transition detection and analysis system based on holographic time scale measurement | |
CN104516953B (en) | A kind of black box subsystem for power dispatching automation magnanimity message | |
CN116090789B (en) | Lean manufacturing production management system and method based on data analysis | |
CN109377143B (en) | Operation trace acquisition system, acquisition method, management system and management method | |
CN103218745A (en) | Gas station shift completion calculation method | |
CN203117685U (en) | Remote monitoring system for offshore piling | |
CN113793213B (en) | Method and device for implementing decision mode of asynchronous credit wind control breakpoint continuous operation | |
CN109873858A (en) | A kind of business datum distributed monitoring method and distributed monitoring cluster |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20170811 Termination date: 20171218 |
|
CF01 | Termination of patent right due to non-payment of annual fee |