Fuel quantity monitoring system and monitoring method for gas station
Technical Field
The invention relates to the technical field of data monitoring, in particular to a system and a method for monitoring fuel quantity of a gas station.
Background
Gas stations are indispensable services in the field of transportation, and are important businesses in relation to traffic safety and environmental safety. Besides safety monitoring, the management of the gas station also needs to monitor the fuel filling amount data of the gas station. The daily oil sale amount of a medium-sized gas station can reach about ten thousand liters, and the daily sale amount is about 8 ten thousand yuan calculated according to 8 yuan per liter. Such large sales result in increased profit for some contractors through illegal actions such as tax evasion by lowering the oil or misreading the oil.
It is difficult to solve these illegal actions and violations only from the oil sources at the gas stations, and therefore, it should be managed from the number of sales of the oil. The fuel dispenser is internally provided with a meter which records and stores the fuel filling amount and displays the fuel filling amount on the fuel dispenser so as to be seen by customers. In this way, meter data within the fuel dispenser can be collected. However, the data displayed at the fuel dispenser need not be recorded in its entirety to the meter. Therefore, data collected by the meter is incomplete, the actual oil filling amount is inconsistent with the data collected by the meter, and the problems of tax evasion and adulteration cannot be avoided. If the data of the actual fuel filling amount can be accurately collected, the occurrence of the matters can be reduced.
Disclosure of Invention
The invention aims to provide a fuel quantity monitoring system of a gas station, which solves the problems that the data inconsistency between the recorded data of the existing meter and the actual fuel quantity is difficult to find and the meter of a fuel dispenser is inaccurate. Another object of the present invention is to provide a monitoring method of a fuel level monitoring system of a gasoline station.
In order to achieve the purpose, the invention provides a gas station oil mass monitoring system which comprises a liquid level meter, an oil tank monitor, an oiling machine data collector and a data management platform, wherein the liquid level meter is used for detecting the liquid level in an oil tank, liquid level data are transmitted to the oil tank monitor, the oil tank monitor is used for monitoring the change of the oil mass in the oil tank and transmitting the oil mass change data to the data management platform, and the data management platform is used for comparing the data sent by the oil tank monitor with the data collected by the oiling machine data collector.
Preferably, the oil tank monitor comprises a first data acquisition module, a first parameter configuration module, a first data processing module and a first communication module, wherein the first parameter configuration module is used for inputting parameter data of the oil tank, the first data acquisition module is used for acquiring liquid level change data of the liquid level meter, the first data processing module is used for calculating the data input by the first parameter configuration module and the acquired data of the liquid level meter, the first communication module is used for sending the data calculated by the first data processing module to the data management platform, and the first communication module is communicated with the fixed IP.
Preferably, the oiling machine data acquisition unit comprises a second data acquisition module, a second data processing module and a second communication module, and the second data acquisition module is used for acquiring the oil filling amount of the oiling machine; the data processing module II is used for processing the dynamic change data acquired by the data acquisition module II and calculating the oil filling amount; and the communication module II is used for sending the calculated fuel filling amount to the data management platform.
The fuel quantity monitoring method based on the fuel quantity monitoring system of the gas station comprises the following steps:
s1, configuring and updating oil tank parameters through a parameter configuration module of an oil tank monitor, wherein the parameter configuration module of the oil tank monitor adopts dynamic password management when configuring or updating the parameters;
s2, a first data acquisition module of the oil tank monitor acquires oil level data of the liquid level meter, calculates the oil level data and oil tank parameters through a data processing module to obtain oil volume change data in the oil tank, encrypts the oil volume change data in the oil tank, sends the encrypted data to a data management platform through a first communication module, and stores the received data in a database by the data management platform;
s3, a second data acquisition module of the oiling machine data acquisition device acquires the oil filling amount of the oiling machine and sends the oil filling amount to a second data processing module, the second data processing module processes the received dynamic change data of the oil filling amount, calculates the data of the oil filling amount after the data change is stopped, encrypts the data of the oil filling amount, and sends the encrypted data to the data management platform through the second communication module;
and S4, the data management platform compares the received related data of the ciphertext y of the first communication module with the related data of the fuel filling amount ciphertext cdata of the second communication module.
Preferably, in S1, the oil tank monitor and the data management platform share a preset key k1, and configure a cryptographic algorithm E together; the dynamic password management comprises the following steps:
s11, activating the oil tank monitor through a display screen of the touch parameter configuration module to generate a dynamic code, and displaying the dynamic code on the display screen;
s12, the oil tank monitor calculates key = E (k 1, code) by using the key k1 and an encryption algorithm E, and waits for data input;
s13, sending the dynamic code to a data management platform through the mobile phone, calculating key '= E (k 1, code) by the data management platform according to the code, and sending key' to the mobile phone;
s14, inputting the obtained key ' to a display screen of the oil tank monitor, comparing the key ' with the key by the oil tank monitor, and if the key ' is consistent with the key, allowing to enter or update configuration parameters; otherwise, an error is reported, the next input is carried out, the error is continuously input, and the oil tank monitor enters the dormancy.
Preferably, in S2, the tank monitor and the data processing platform share a secret key k2 and an encryption algorithm E; the data processing module encrypts the oil quantity change data in the oil tank, and the specific steps are as follows:
s21, encrypting oil volume change data x in the oil tank by the first data processing module to obtain y = E (k 2, x), and then sending an encrypted ciphertext y to a data management platform;
s22, the data management platform stores the relevant data of the ciphertext y into a database.
Preferably, the data related to the ciphertext y in S22 is the ciphertext y or data x obtained by decrypting the received ciphertext y by the data management platform.
Preferably, in S3, the second data processing module shares a secret key k2 with the data management platform; the second data processing module encrypts the oil adding amount data to obtain a ciphertext cdata = E (k 2, data), and then sends the data cdata to the data management platform through the second communication module; and the data management platform stores the ciphertext cdata related data into a database.
Preferably, the ciphertext cdata related data is the ciphertext cdata or data obtained by decrypting the received ciphertext cdata by the data management platform.
The fuel quantity detection system of the gas station has the advantages and positive effects that:
1. the invention compares the oil filling amount data of the oiling machine with the change data of the oil tank, and observes whether the data of the oiling machine and the change data of the oil tank are consistent, thereby easily finding out the problem that the metering device of the oiling machine is inaccurate.
2. The configuration and the updating of the parameters of the oil tank monitor need key management, so that the condition that the parameters of the configuration of the oil tank monitor are randomly and illegally tampered by workers is avoided.
Drawings
FIG. 1 is a schematic diagram illustrating a fuel level monitoring system and a monitoring method for a gas station according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a tank monitor according to an embodiment of the system and method for monitoring fuel quantity of a gas station of the present invention;
FIG. 3 is a flow chart of dynamic password management of a parameter configuration module according to an embodiment of the fuel level monitoring system and method for a gas station of the present invention;
fig. 4 is a schematic view of a fuel dispenser data collector according to an embodiment of the fuel amount monitoring system and the monitoring method for the gas station of the present invention.
Detailed Description
The technical scheme of the invention is further explained by the attached drawings and the embodiment.
Examples
Fig. 1 is a schematic structural diagram of an embodiment of a fuel level monitoring system and a monitoring method for a gas station according to the present invention. As shown in the figure, a filling station's oil mass monitoring system, including the liquid level appearance, the oil tank monitor, tanker aircraft data collection ware and data management platform, the liquid level appearance is used for detecting the liquid level in the oil tank, liquid level data transmits the oil tank detector for, the oil tank monitor is used for monitoring the change of the oil tank oil mass and changes data transmission with the oil mass for the data management platform, the data management platform is used for contrasting the data that the oil tank monitor sent and the data that tanker aircraft data collection ware gathered, contrast two data whether unanimous, thereby confirm that the tanker aircraft data is accurate.
Fig. 2 is a schematic view of a tank monitor according to an embodiment of the system and method for monitoring fuel quantity of a gas station. As shown in the figure, the oil tank monitor comprises a first data acquisition module, a first parameter configuration module, a first data processing module and a first communication module, wherein the first parameter configuration module is used for inputting parameter data of an oil tank, the first data acquisition module is used for acquiring liquid level change data of a liquid level instrument, the first data processing module is used for calculating the data input by the first parameter configuration module and the acquired data of the liquid level instrument, the first communication module is used for sending the data calculated by the first data processing module to a data management platform, and the first communication module is communicated with a fixed IP.
Fig. 4 is a schematic diagram of a fuel dispenser data collector according to an embodiment of the fuel amount monitoring system and method for a gas station of the present invention. As shown in the figure, the oiling machine data acquisition device comprises a second data acquisition module, a second data processing module and a second communication module, wherein the second data acquisition module is used for acquiring the oiling amount of the oiling machine; the data processing module II is used for processing the dynamic change data acquired by the data acquisition module II and calculating the oil filling amount; and the communication module II is used for sending the calculated fuel filling amount to the data management platform.
The fuel quantity monitoring method of the fuel quantity monitoring system of the gas station comprises the following steps:
s1, oil tank parameter configuration and updating are carried out through a parameter configuration module of the oil tank monitor, and the parameter configuration module of the oil tank monitor adopts dynamic password management when the parameters are configured or updated.
Before the oil tank monitor is used, relevant parameters of the oil tank need to be input according to the national tank capacity table standard, and the tank capacity table can be automatically generated or manually recorded according to the parameters of the oil tank. In order to avoid illegal tampering of the configured parameters of the tank monitor by personnel in the gas station, the tank monitor needs key management when configuring and updating the parameters, otherwise, the function of setting the tank parameters of the tank monitor cannot be started.
Fig. 3 is a flow chart of dynamic password management of a parameter configuration module in an embodiment of a fuel level monitoring system and a monitoring method for a gas station according to the present invention. As shown in the figure, the oil tank monitor and the data management platform share a preset secret key k1 and are jointly configured with a cryptographic algorithm E; the dynamic password management comprises the following steps:
and S11, activating the oil tank monitor through a display screen of the touch parameter configuration module to generate a dynamic code, and displaying the dynamic code on the display screen.
And S12, the oil tank monitor calculates key = E (k 1, code) by using the key k1 and the encryption algorithm E, waits for data input, and automatically exits if the data input is overtime.
S13, the staff sends the dynamic code to the data management platform through a special software system (such as a WeChat applet) of the mobile phone, and the data management platform calculates key '= E (k 1, code) according to the code and sends the key' to the mobile phone.
S14, the obtained key ' is input into a display screen of the oil tank monitor by a worker, the oil tank monitor compares the key ' with the key, if the key ' is consistent with the key, the configuration parameters are allowed to be input or updated, and a parameter input and modification state is entered. Otherwise, an error is reported, the next input is carried out, errors are input continuously for three times, and the oil tank monitor enters a period of dormancy. After the modification is completed, if the modification needs to be continued, the dynamic code and the new key need to be obtained again.
And (4) after the staff finishes the parameter input or update, the staff quits the system.
S2, oil level data of the liquid level meter are collected through a first data collection module of the oil tank monitor, the first data collection module calculates the oil level data and oil tank parameters through a data processing module to obtain oil quantity change data in the oil tank, the first data processing module encrypts the oil quantity change data in the oil tank, the encrypted data are sent to a data management platform through a first communication module, and the data management platform stores the received data in a database.
Assuming that the internal diameter of the oil tank is 150cm, the amount of oil changes to V = π × 150 for every 0.1cm change 2 ×0.1=70686(cm 3 ) =7.01 (liter). Assuming that the parameters between the tank monitor and the data management platform have been configured, the tank monitor needs to configure these parameters of the tank so that when the tank monitor reads 0.6cm of data from the level gauge (which may be the difference between the two level gauge data), it knows that the tank outputs (or inputs) 0.6 × 7.01=4.26 liters of oil.
The liquid level meter can monitor the change of 0.1cm, so that the oil tank monitor can monitor the data change as long as the oil tank has the output oil quantity, and the change condition is uploaded to the data management platform. The data uploading strategy of the oil tank monitor can be set to be uploading at regular time, namely, uploading every fixed time (such as 1 minute); it is also possible to arrange for real-time uploading, i.e. uploading each time a change in the data is collected, but there is also a certain time interval between two data uploads, e.g. 1 second, since the tank monitor has a certain frequency of reading the data of the level gauge.
The oil tank monitor and the data processing platform share a secret key k2 and an encryption algorithm E; the specific steps of the data processing module for encrypting the oil quantity change data in the oil tank are as follows:
s21, encrypting oil volume change data x in the oil tank by the first data processing module to obtain y = E (k 2, x), and then sending an encrypted ciphertext y to a data management platform;
s22, the data management platform stores the relevant data of the ciphertext y into the database. And the related data of the ciphertext y is the ciphertext y or the data x obtained by decrypting the received ciphertext y by the data management platform.
And S3, a second data acquisition module of the oiling machine data acquisition unit acquires the oil filling amount of the oiling machine and sends the oil filling amount to a second data processing module, the second data processing module processes the received dynamic change data of the oil filling amount, calculates the data of the oil filling amount after the data change is stopped, encrypts the data of the oil filling amount, and sends the encrypted data to the data management platform through the second communication module.
The second data processing module and the data management platform share a secret key k2; the second data processing module encrypts the oil adding amount data to obtain a ciphertext cdata = E (k 2, data), and then sends the data cdata to the data management platform through the second communication module; the data management platform stores the cdata related data into a database. The ciphertext cdata related data is the ciphertext cdata or data obtained by decrypting the received ciphertext cdata by the data management platform.
And S4, the data management platform compares the received related data of the ciphertext y of the first communication module with the related data of the fueling quantity ciphertext cdata of the second communication module, judges whether the two groups of data are matched, and if the two groups of data are not matched, the configuration parameters of the oil tank monitor are not accurate or the data of the oiling machine are not accurate. And if the difference rate of the two groups of data is basically kept fixed, the configuration parameters of the oil tank monitor are inaccurate, otherwise, the data of the oiling machine are judged to be inaccurate.
Therefore, the system and the method for monitoring the fuel quantity of the gas station can solve the problems that the data inconsistency between the recorded data and the actual fuel quantity of the conventional meter is difficult to find and the fuel dispenser is inaccurate.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting the same, and although the present invention is described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that: modifications and equivalents may be made to the invention without departing from the spirit and scope of the invention.