Background
At present, a secondary oil gas recovery monitoring system (hereinafter referred to as a monitoring system) of a gas station has 2 methods for monitoring the completion of primary refueling:
1. the mode of monitoring the pulse signal is adopted. In the mode, the oil flow in the oiling process is converted into a pulse signal by using a flow sensor, the pulse signal output end of the flow sensor is connected with an oiling machine mainboard, the pulse signal is input into the oiling machine mainboard, and the oiling machine mainboard judges whether to finish primary oiling by detecting the generation and disappearance of the pulse signal; for the oiling machine adopting the pulse signal mode, when the oiling gun is in the gun lifting state, a level signal in a low level state is provided; the oiling machine mainboard receives a low level signal, starts oiling machine equipment and prepares for oiling; when the monitoring system acquires a low level signal, the monitoring system judges that the oil gun is in a gun lifting state, namely, one-time oil filling is started; when the fuel truck nozzle is in a gun hanging state, a level signal in a high level state is provided; the oiling machine mainboard receives a high level signal, shuts down oiling machine equipment and stops oiling; the monitoring system judges that the oil gun is in a gun hanging state when acquiring a high level signal, namely, one-time oiling is finished.
2. And a mode of monitoring electromagnetic valve signals is adopted. In the mode, the electromagnetic valve is positioned between the oil gun and the oil pump, a contact is arranged in the electromagnetic valve and used for controlling the start and stop of the oil pump, the contact is connected with an oiling machine mainboard, and the oiling machine mainboard judges whether to finish one-time oiling by detecting the closing or breaking of the contact of the electromagnetic valve. When a fuel gun is in a gun lifting state, the conventional fuel dispenser adopting a solenoid valve signal mode can provide a switch signal in a closed state; the oiling machine mainboard receives a closing switch signal, starts oiling machine equipment and prepares for oiling; the monitoring system judges that the oil gun is in a gun lifting state when acquiring a low level signal, namely, the primary oil filling is started; when the oil gun is in a gun hanging state, a switch signal in a disconnected state can be provided, and the oiling machine mainboard receives the switch signal to turn off oiling machine equipment and stop oiling.
3. The mode of level signal is adopted. In this way, normally, when the fuel nozzle is in the fuel nozzle state, a level signal of a low level state is provided; the oiling machine mainboard receives a low level signal, starts oiling machine equipment and prepares for oiling; when the monitoring system acquires a low level signal, the monitoring system judges that the oil gun is in a gun lifting state, namely, one-time oil filling is started; when the fuel truck nozzle is in a gun hanging state, a level signal in a high level state is provided; the oiling machine mainboard receives a high level signal, shuts down oiling machine equipment and stops oiling; the monitoring system judges that the oil gun is in a gun hanging state when acquiring a high level signal, namely, one-time oiling is finished.
According to the monitoring method, in the refueling process, due to human reasons or mechanical reasons, a plurality of problems exist:
1. in the process of refueling, when refueling is suspended, a pulse signal or an electromagnetic valve signal is interrupted (namely an error signal of pseudo refueling ending is generated), and at the moment, a monitoring system mistakenly considers that one-time refueling is ended and stores related refueling information; when the refueling is continued, the pulse signal or the electromagnetic valve signal is regenerated (namely an error signal for false refueling is generated), at the moment, the monitoring system mistakenly begins new refueling, and relevant refueling information is recorded again after zero clearing, so that the problem that the monitoring system mistakenly judges two times of refueling as one time of refueling is caused. Theoretically, the method of monitoring the pulse signal or the electromagnetic valve signal to judge whether the one-time refueling is finished cannot fundamentally avoid the problems.
2. The oil gun signal has the phenomenon of diversified signal types (including switching signals and level signals) and different signal strengths due to different types of oiling machines, and further faults are frequently caused by the fact that the oil gun signal cannot be normally acquired in the oiling process. For example, in the process of one-time refueling, the monitoring system fails to normally acquire a lance lifting signal due to a weak lance signal, the monitoring system mistakenly considers that refueling does not start, and fails to timely monitor related refueling information, so that the problems of delay and disorder of refueling information are caused. For another example, the monitoring system may fail to normally acquire a gun hanging signal due to a weak oil gun signal, mistakenly think that refueling is not finished, and continue to accumulate relevant refueling information after the second refueling is started, resulting in the problem that the monitoring system mistakenly judges two refuelings as one refueling.
Aiming at the problem that the oil gun signals cannot be normally acquired due to different diversity and strength of the existing oil gun signals, so that faults occur frequently, a stable and reliable oil gun signal acquisition device is urgently needed.
Disclosure of Invention
The invention aims to provide a fuel gun signal acquisition device which has strong compatibility, can stably and reliably acquire fuel gun lifting and hanging signals aiming at the defects of the prior art.
In order to achieve the purpose, the invention discloses a device for acquiring a fuel gun signal, which is characterized in that: the system comprises a power supply unit, a signal acquisition unit, a signal conversion unit, a pair of signal input ends and a pair of oil gun state signal output ends, wherein the signal input ends are used for being connected with an oil gun state signal output end; the signal acquisition unit is equipped with the nozzle status signal output end of input and nozzle and is connected and gather nozzle status signal in real time to divide into two tunnel with nozzle status signal: one path of signal is connected with the oiling machine mainboard to provide a refueling gun state signal with the same type as the collected signal in real time for the oiling machine mainboard, and the other path of signal is input to the signal conversion unit which converts the refueling gun state signal into a standard signal for output; the power supply unit provides a direct current working power supply Vcc for the signal acquisition unit and the signal conversion unit.
Compared with the prior art, the oil gun signal acquisition device is provided with a signal acquisition unit, a signal conversion unit, a main control unit and a communication unit; the signal acquisition unit is equipped with the input and is connected with nozzle status signal output and gather nozzle status signal in real time to divide into two the nozzle status signal: one path of signal is connected with the oiling machine mainboard to provide a signal which is acquired in real time and is of the same type as a refueling gun state signal sent by a refueling gun for the oiling machine mainboard, so that the existing oiling machine is not required to be changed, and the adaptability is strong; meanwhile, after the other path of signals are input into the signal conversion unit, the state signals of the oil filling gun are converted into level signals to be input into the main control unit, interference is eliminated, and reliability is improved.
As a further arrangement of the invention, the pair of signal input ends and the pair of oil gun state signal output ends are connected to form one path of oil gun state signal transmission of the same type; the signal acquisition unit comprises a second switch triode Q2, a base current-limiting resistor R3 and a second load resistor R4, a collector of the second switch triode Q2 is connected with the positive pole of a direct-current working power supply Vcc through the second load resistor R4, an emitter of the second switch triode Q2 is connected with the negative pole input end of a signal and the negative pole of the direct-current working power supply Vcc, the base is connected with the positive pole input end of the signal through the base current-limiting resistor R3, and the collector forms the other path of oil gun state signal transmission as the output end of the signal acquisition unit; the signal conversion unit is composed of a level conversion circuit.
As a further configuration of the present invention, the signal conversion unit includes an upper bias resistor R1, a first load resistor R2, and a first switching transistor Q1, a collector of the first switching transistor Q1 is connected to a positive electrode of the dc working power supply Vcc through the first load resistor R2, an emitter of the first switching transistor Q1 is connected to a negative electrode of the dc working power supply Vcc, a base of the first switching transistor Q1 is connected to a collector of the second switching transistor Q2 through the upper bias resistor R1, and is connected to a positive electrode of the dc working power supply Vcc through the second load resistor R4, and the collector of the first switching transistor Q1 constitutes an output terminal of the signal conversion unit.
As a further arrangement of the present invention, the signal acquisition unit comprises a relay K1; two ends of the normally open contact of the relay K1 are respectively connected with two end points of the pair of oil gun state signal output ends to form one path of oil gun state signal transmission of the same type, one signal input end of the pair of signal input ends is connected with the positive pole of a direct current working power supply Vcc, one end of the coil of the relay K1 is connected with the negative pole of the direct current working power supply Vcc, the other end of the coil of the relay K1 is connected with the other signal input end point of the pair of signal input ends, and the other signal input end point simultaneously serves as the output end of the signal acquisition unit to form the other path of oil gun state signal transmission; the signal conversion unit is composed of a conversion circuit for converting the switch contact signal into a level signal.
As a further configuration of the present invention, the signal conversion unit includes an upper bias resistor R1, a first load resistor R2, and a first switching transistor Q1, a collector of the first switching transistor Q1 is connected to a positive electrode of the dc working power supply Vcc through the first load resistor R2, an emitter of the first switching transistor Q1 is connected to a negative electrode of the dc working power supply Vcc, a base of the first switching transistor Q1 is connected to the other signal input end of the pair of signal input ends through the upper bias resistor R1, and a collector of the first switching transistor Q1 constitutes an output end of the signal conversion unit.
The oil gun signal acquisition device is further provided with a main control unit, and the output end of the signal conversion unit is connected with the main control unit, so that an oil gun state signal is converted into a standard signal and is input into the main control unit.
The main control unit processes the input converted oil gun state signal and inputs the processed oil gun state signal to the communication unit, and the oil filling machine information is transmitted to an external monitoring system through the communication unit.
The device is further provided with a shell, each unit circuit is arranged in the shell, and the shell is provided with three outlets for the pair of the oil gun state signal output ends connected with the oil gun state signal output end, the pair of the oil gun state signal output ends connected with an external oiling machine mainboard and the output end of the signal conversion unit to pass through respectively.
The device is further provided with a shell, each unit circuit is arranged in the shell, and the shell is provided with three outlets for the pair of the oil gun state signal output ends connected with the oil gun state signal output end, the pair of the oil gun state signal output ends connected with an external oiling machine mainboard and the output end of the communication unit to pass through respectively.
The invention is further described with reference to the following figures and specific embodiments.
Detailed Description
As shown in fig. 1, the device for acquiring a fueling gun signal of the invention comprises a power supply unit, a signal acquisition unit, a signal conversion unit, a pair of signal input ends connected with a fueling gun status signal output end and a pair of fueling gun status signal output ends connected with an external fueling machine mainboard. The signal acquisition unit is equipped with the nozzle status signal output end of input and nozzle and is connected and gather nozzle status signal in real time to divide into two tunnel with nozzle status signal: one path of signal is connected with the oiling machine mainboard to provide a oiling gun state signal (namely an unprocessed original level signal or a processed switch signal of the same type) of the same type as the acquired signal in real time for the oiling machine mainboard, and the other path of signal is input into the signal conversion unit which converts the oiling gun state signal into a standard signal (such as a digital level signal or a switch contact signal and a switching value signal); the fuel gun state signal output end can be a pulse signal, a level signal or a switch contact signal; as shown in fig. 5, the power supply unit adopts a three-terminal voltage stabilization chip T1 and a filter capacitor to form a voltage stabilization dc power supply circuit, and the power supply unit provides a dc working power supply Vcc for the signal acquisition unit and the signal conversion unit.
In order to make the technical solutions of the present application better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the preferred embodiments of the present application and the accompanying drawings. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Detailed description of the preferred embodiment 1
As shown in fig. 2, in this embodiment, the device for acquiring a fueling gun signal includes a power supply unit, a signal acquisition unit, and a signal conversion unit. The pair of signal input ends (respectively a signal positive input end and a signal negative input end) is connected with the pair of oil gun state signal output ends to form one path of oil gun state signal transmission of the same type; the signal conversion unit is composed of a level conversion circuit, that is, an input level within a certain range is converted into a uniform high level output, and an input low level below the certain range is converted into a uniform low level output, but the opposite is also possible. In this embodiment, the signal acquisition unit includes a second switching triode Q2, a base current-limiting resistor R3, and a second load resistor R4, the second switching triode Q2 is NPN type, a collector of the second switching triode Q2 is connected to the positive pole of the dc power supply Vcc through the second load resistor R4, an emitter of the second switching triode Q2 is connected to the negative input end of the signal and the negative pole of the dc power supply Vcc, the base is connected to the positive input end of the signal through the base current-limiting resistor R3, and the collector forms the other path of the transmission of the fuel gun status signal as the output end of the signal acquisition unit; the signal conversion unit comprises an upper bias resistor R1, a first load resistor R2, a filter capacitor C5 and a first switching triode Q1, the first switching triode Q1 is NPN type, the collector of the first switching triode Q1 is connected with the positive pole of a direct current working power supply Vcc through a first load resistor R2, the emitter is connected with the negative pole of the direct current working power supply Vcc, one path of the base is connected with the collector of the second switching triode Q2 through an upper bias resistor R1, and is connected with the positive electrode of the direct current working power supply Vcc through the second load resistor R4 to form a level switching circuit with a switching triode as a core (of course, the first switching triode Q1 may also be PNP type), the collector of the first switching triode Q1 forms the output end of the signal conversion unit, in order to improve the anti-interference capability, the base of the first switching transistor Q1 is preferably provided with another path of connection with the negative electrode of the direct-current working power supply Vcc through a filter capacitor C5.
The oil gun signal acquisition device is suitable for oiling machines in a pulse signal and level signal mode, and the oiling machine in the level signal mode can provide a level signal in a low level state when an oil gun is in a gun lifting state; the oiling machine mainboard receives a low level signal, starts oiling machine equipment and prepares for oiling; when the monitoring system acquires a low level signal, the monitoring system judges that the oil gun is in a gun lifting state, namely, one-time oil filling is started; when the fuel truck nozzle is in a gun hanging state, a level signal in a high level state is provided; the oiling machine mainboard receives a high level signal, shuts down oiling machine equipment and stops oiling; the monitoring system judges that the oil gun is in a gun hanging state when acquiring a high level signal, namely, one-time oiling is finished.
In order to more reliably transmit the information of the oiling machine to an external monitoring system, the oil gun signal acquisition device is preferably further provided with a main control unit and a communication unit, wherein an output end of the signal conversion unit is connected with the main control unit; the main control unit is composed of a data processing circuit composed of a microprocessor and peripheral elements thereof; the communication unit is composed of an asic chip and its peripheral components, as shown in fig. 4, in this embodiment, a 485 chip may be used to obtain more reliable transmission characteristics.
For convenience of use and installation and maintenance, the device for acquiring the signals of the fuel nozzle is preferably further provided with a shell 1, and each unit circuit is arranged in the shell 1, and as shown in fig. 6 and 7, the shell is provided with three outlets: the pair of the oil gun state signal output ends used for being connected with the oil gun state signal output end, the pair of the oil gun state signal output ends connected with the external oiling machine mainboard and the output end of the signal conversion unit or (a communication unit signal line) respectively pass through the oil gun connecting port 101, the oiling machine connecting port 102 and the communication connecting port 103.
The specific working principle of the oil gun signal acquisition device is as follows:
when the gun is lifted, the input of the pair of signal input ends (the joint J4) is a low level signal, one path of the input low level signal is directly transmitted to the pair of oil gun state signal output ends to be connected (the joint J6), namely, the oil gun state signals of the same type are directly added to the oil machine main board, namely, one low level signal is output, and the oil machine main board starts oil machine equipment to prepare for oil adding; meanwhile, the other path of the input low level signal is transmitted to the base of the second switching triode Q2 through the base current limiting resistor R3, and by utilizing the NPN triode characteristic, the second switching triode Q2 is cut off at this time, and the collector is at a high level. The high level of the collector of the second switch triode Q2 is transmitted to the base pin of the first switch triode Q1 through the upper bias resistor R1, at the moment, the first switch triode Q1 is conducted, the fuel gun state signal input end (input port S _ OG) of the main control unit is pulled down to be a low level signal from the original high level, the main control unit judges the start of refueling, related information is transmitted to the monitoring system through the communication unit and the data transmission interface J8, the monitoring system can stably obtain a gun lifting signal of the fuel gun, and the start of refueling is judged.
When the oil gun is hung back, a high level signal is input into the pair of signal input ends (the joint J4), one path of the input high level signal is directly transmitted to the pair of oil gun state signal output ends to be connected (the joint J6), namely, the oil gun state signals of the same type are directly added to the oil gun main board, namely, a high level signal is output, the oil gun main board closes the oil gun device, and the oil gun stops oiling; meanwhile, the other path of the input high level signal is transmitted to the base of the second switching triode Q2 through the base current limiting resistor R3, at this time, the second switching triode Q2 is turned on, and the collector is at a low level. The low level of the collector of the second switch triode Q2 is transmitted to the base pin of the first switch triode Q1 through the upper bias resistor R1, at the moment, the first switch triode Q1 is cut off, the input port S _ OG of the main control unit is pulled to a high level signal from the original low level, the main control unit judges that the oiling is finished, related information is transmitted to the monitoring system through the communication unit and the data transmission interface J8, the monitoring system can stably obtain a gun hanging signal of the oiling gun, and the finish of the oiling at one time is judged.
Specific example 2
As shown in fig. 3, in this embodiment, the device for acquiring a fueling gun signal includes a power supply unit, a signal acquisition unit, and a signal conversion unit. The signal acquisition unit circuit comprises a relay K1 and a freewheeling diode D1; two ends of the normally open contact of the relay K1 are respectively connected with two end points of the pair of oil gun state signal output ends to form one path of oil gun state signal transmission of the same type, one signal input end point of the pair of signal input ends is connected with the positive pole of a direct current working power supply Vcc, one end of a coil of the relay K1 is connected with the negative pole of the direct current working power supply Vcc, the other end of the coil of the relay K1 is connected with the other signal input end point of the pair of signal input ends, the other signal input end point simultaneously serves as the output end of the signal acquisition unit to form the other path of oil gun state signal transmission, and the freewheeling diode D1 is connected with two ends of the coil of; the signal conversion unit is composed of a conversion circuit for converting the switch contact signal into a level signal.
In this embodiment, the signal conversion unit includes an upper bias resistor R1, a first load resistor R2, a filter capacitor C5, and a first switch triode Q1, where the first switch triode Q1 is NPN type, a collector of the first switch triode Q1 is connected to a positive electrode of a dc working power supply Vcc through a first load resistor R2, an emitter of the first switch triode Q is connected to a negative electrode of the dc working power supply Vcc, one path of a base of the first switch triode Q1 is connected to another signal input end point of the pair of signal input ends through the upper bias resistor R1 to form a level conversion circuit using the switch triode as a core, and the collector of the first switch triode Q1 forms an output end of the signal conversion unit. In order to improve the anti-interference capability, the base of the first switching triode Q1 is preferably provided with another path of current through the filter capacitor C5 and the negative electrode of the direct-current working power supply Vcc.
The device for acquiring the signals of the oil gun is suitable for the oil dispenser adopting the electromagnetic valve signal mode, and under the normal condition, when the oil gun is in a gun lifting state, the electromagnetic valve can provide a switch signal in a closed state; the oiling machine mainboard receives a closing switch signal, starts oiling machine equipment and prepares for oiling; the monitoring system judges that the oil gun is in a gun lifting state when acquiring a low level signal, namely, the primary oil filling is started; when the fuel truck nozzle is in a gun hanging state, the electromagnetic valve can provide a switching signal in a disconnection state; the oiling machine mainboard receives a switch-off signal, turns off oiling machine equipment and stops oiling; when the monitoring system acquires a high-level signal, the gun is judged to be in a gun hanging state, namely, one-time refueling is finished.
In order to more reliably transmit the information of the refueling machine to an external monitoring system, the device for acquiring the refueling gun signal preferably further comprises a main control unit and a communication unit, wherein an output end of the signal conversion unit is connected with the main control unit, in this specific embodiment, an output end of the signal conversion unit formed by a collector of the first switching triode Q1 is connected with the main control unit, a refueling gun state signal is converted into a standard signal and is input to the main control unit, the main control unit processes the input converted refueling gun state signal and then inputs the signal to the communication unit, and the refueling machine information is transmitted to the external monitoring system through the communication unit.
The main control unit is composed of a data processing circuit composed of a microprocessor and peripheral elements thereof; the communication unit is composed of an asic chip and its peripheral components, as shown in fig. 4, in this embodiment, a 485 chip may be used to obtain more reliable transmission characteristics.
For convenience of use and installation and maintenance, the device for acquiring the signals of the fuel nozzle is preferably further provided with a shell 1, and each unit circuit is arranged in the shell 1, and as shown in fig. 6 and 7, the shell is provided with three outlets: the pair of the oil gun state signal output ends used for being connected with the oil gun state signal output end, the pair of the oil gun state signal output ends connected with the external oiling machine mainboard and the output end of the signal conversion unit or (a communication unit signal line) respectively pass through the oil gun connecting port 101, the oiling machine connecting port 102 and the communication connecting port 103.
The specific working principle of the oil gun signal acquisition device is as follows:
when the fuel gun is lifted, a switch signal in a closed state is received between the pair of signal input ends (No. 1 and No. 2 pins of the joint J2), namely the No. 1 pin of the J2 is a power VCC high level, a control coil between the No. 1 and No. 2 pins of the relay K1 is electrified, so that the switch between the No. 3 and No. 5 pins of the normally open contact of the relay K1 is changed from the normally open state to the normally closed state, the pair of fuel gun state signal output ends (the joint J3) are controlled by the states of the No. 3 and No. 5 pins of the normally open contact of the relay K1, the pair of fuel gun state signal output ends (the joint J3) output a switch signal in the closed state to output the same type signal of the fuel gun to a fuel dispenser mainboard, namely the processed same type of the closed switch signal, and the fuel dispenser mainboard starts fuel dispenser to prepare;
meanwhile, a high level signal on the No. 1 pin of the pair of signal input ends (No. 1 and No. 2 pins of the joint J2) is transmitted to a base pin of a first switch triode Q1 through an upper bias resistor R1, the first switch triode Q1 is conducted at the moment, a fuel gun state signal input end (input port S _ OG) of the main control unit is pulled down from the original high level to a low level signal, the main control unit judges the start of refueling and sends related information to the monitoring system through a communication unit and a data transmission interface J8, and therefore the monitoring system can stably obtain a gun lifting signal of a fuel gun and judge the start of refueling.
When the fuel gun is hung back, a switching signal in an off state is received between the pair of signal input ends (No. 1 and No. 2 pins of the joint J2), namely the No. 1 pin of the J2 is disconnected with a power supply VCC, a control coil between the No. 1 and No. 2 pins of the relay K1 loses power, so that the switch between the No. 3 and No. 5 normally-open contacts of the relay K1 is changed from a closed state to an off state, the connection (joint J3) of the pair of fuel gun state signal output ends is controlled by the states of the No. 3 and No. 5 normally-open contacts of the relay K1, the pair of fuel gun state signal output ends (joint J3) output a switching signal in an off state to output the same type signal of the fuel gun to a fuel dispenser mainboard, namely the same type of the processed signal is the off switch signal, the fuel dispenser mainboard closes fuel dispenser, and stops fuel; meanwhile, because the No. 1 pin of the pair of signal input ends (No. 1 and No. 2 pins of the joint J2) is a low level signal, the low level signal is transmitted to the base pin of the first switch triode Q1 through the upper biasing resistor R1, the first switch triode Q1 is cut off at the moment, the input port S _ OG of the main control unit is pulled up to a high level signal from the original low level, the main control unit judges that refueling is finished, relevant information is transmitted to the monitoring system through the communication unit and the data transmission interface J8, the monitoring system stably obtains a gun hanging signal of the refueling gun, and judges that refueling is finished once.
The above examples are merely illustrative for clarity and are not intended to limit the embodiments. Other variations and modifications will be apparent to persons skilled in the art in light of the above description. And are neither required nor exhaustive of all embodiments. And obvious variations or modifications therefrom are within the scope of the invention.