A kind of system and method for safety management swill oil drum
Technical field
The present invention relates to a kind of monitoring systems, and in particular to be a kind of system of safety management swill oil drum, and be related to
The method for managing security of the swill oil drum.
Background technique
Hogwash fat is to be collected in catering trade sewer by grease trap, then through artificial water-oil separation, filtering, the journeys such as de-tastes
Oil product back and the general name of oil product that is rancid and cannot eating again are refined after sequence processing, contain many poisonous and harmful substances.
Hogwash fat can be used to be processed into commercial grease or organic-fuel, but never can be used as edible oil.Although hogwash fat generally seems
It is limpider, but since hogwash fat is the grease made of the kitchen garbages working process such as leftovers, contain a large amount of bacterium
And toxin, once very big harm will be generated to human body by being eaten by people.
As the improvement of people's living standards, increasingly paying close attention to dietetic hygiene, the topic of hogwash fat is even more to emerge one after another,
The health of broad masses of the people is endangered, while being also the problem of government regulator is had a headache, supervises difficult problem especially
It is prominent.And criminal often pretends to be legal producer illegally to receive hogwash fat to hotel, and the supervision for further resulting in hogwash fat is tired
It is difficult.
Summary of the invention
It is an object of the invention to solve not can effectively prevent criminal in the prior art that legal producer is pretended to be illegally to receive
Hogwash fat is taken, the problem for causing the supervision of hogwash fat very difficult;A kind of safety management hogwash fat to solve the above problems is provided
The system and method for bucket.
In order to achieve the above objectives, the specific technical solution of the present invention is as follows:
A kind of method of safety management swill oil drum, comprising:
Step 1: oil drum being set on swill oil drum and monitors terminal, producer's operating terminal is set on oil-collecting device;
Step 2: service terminal automatically generates unlock code and decoding program, and issues unlock code to producer's operating terminal, to
Oil drum monitors terminal and issues decoding program;
Step 3: producer's operating terminal and hogwash fat when the oil-collecting device of producer is connected to swill oil drum, on oil-collecting device
Oil drum monitoring terminal connection on bucket;
Step 4: oil drum monitors demanding terminal and verifies unlock code, and producer's operating terminal sends unlock code;
Step 5: whether verifying unlock code matches with decoding program, when unlock code is matched with decoding program, oil drum monitoring
Terminal with producer's operating terminal connection, controls oil drum monitoring terminal by producer's operating terminal and makes a response automatically.Such as utilize factory
The control switch starting of family's operating terminal control oil drum monitoring terminal, and then realize Oil drain operation.
Unlock code and decoding program in the present invention are maintained in memory, system file or database, are preferably deposited
In memory, at this point, calculating speed faster, backup in system files, when power-off restarting, is read in memory from file.
The present invention passes through the setting of decoding program and unlock code, effectively avoids criminal that legal producer is pretended to be illegally to collect
The case where hogwash fat, and then generation the case where preferably hogwash fat is prevented to flow to food products market from source.
In order to which the safety management of swill oil drum is better achieved, the present invention uses dynamic unlock code and decoding program,
And then it can preferably reach the case where preventing criminal from legal producer being pretended to be illegally to collect hogwash fat generation.That is, the service
Terminal timing issues unlock code to producer's operating terminal, and monitors terminal simultaneously for oil drum and issue decoding program.
It verifies there are two types of unlock code and the whether matched modes of decoding program, the first can be used producer's operating terminal and will solve
Code-locked is sent to oil drum monitoring terminal, and the unlock code and the decoding program of itself received by oil drum monitoring end-on is matched
It is right, it is confirmed whether to match, if it does, then oil drum monitoring terminal is operated eventually automatically with producer's operating terminal connection by producer
End control oil drum monitoring terminal is made a response;
Second is to send service terminal for the unlock code of the decoding program of oil drum monitoring terminal and producer's operating terminal,
Verifying unlock code is matched with decoding program by service terminal, is confirmed whether to match, if it does, then oil drum monitoring is eventually
End with producer's operating terminal connection, controls oil drum monitoring terminal by producer's operating terminal and makes a response automatically.
Further, after the completion of draining the oil, oil drum monitoring terminal and producer's operating terminal are also monitored swill oil drum information,
And it sends the information monitored in service terminal.The oil mass of hogwash fat in swill oil drum can be effectively understood by the setting
The information such as storage condition, weight of draining the oil, Fuel Oil Remaining, present position, and then make to supervise more efficient.
Meanwhile in order to make security performance have bigger raising, present invention preferably employs second of unlock code and decoding
The verification mode of program, at this point, can also be while sending unlock code and decoding program, which monitors terminal and producer's operation
Swill oil drum information is sent respectively to service terminal by terminal, can be further confirmed that by the setting except unlock code and decoding program
Outside, whether oil drum monitoring terminal and producer's operating terminal other information can also match, and then preferably improve security performance, effectively
Avoid unlock code and decoding program be decrypted after caused security risk, security performance is higher.
Preferably, the swill oil drum information includes drain the oil weight, oil drum monitoring terminal identifier, producer's operating terminal mark
Know one of symbol, location information and oil drum Fuel Oil Remaining information or a variety of.
A kind of system of safety management swill oil drum based on the first above-mentioned verification mode, comprising:
Service terminal: issuing new unlock code for automatically generating unlock code and decoding program, and for producer's operating terminal,
Terminal, which is monitored, for oil drum issues new decoding program;
Producer's operating terminal: for receiving unlock code and sending it to oil drum monitoring terminal;
Oil drum monitors terminal: the unlock that decoding program and producer's operating terminal for receiving service terminal transmission are sent
Code, and whether the unlock code for verifying the transmission of producer's operating terminal meets decoding program requirement, if met, oil drum monitors terminal
Automatically with producer's operating terminal connection, oil drum monitoring terminal is controlled by producer's operating terminal and is made a response;
Preferably, in order to preferably receive the unlock code of service terminal sending, and effectively the unlock code can be sent to
Oil drum monitors terminal, and then promotes the unlock code to monitor the decoding program in terminal with oil drum and verified.Producer's operation
Terminal includes processor I, the signal receiving module I and signal transmitting module I connecting with processor I, the signal receiving module I
With service terminal connection, the signal transmitting module I and oil drum monitor terminal connection;The oil drum monitoring terminal includes processor
II, the signal receiving module II and control switch being connect with processor II, the signal receiving module II and service terminal connection.
In order to information such as the oil mass storage conditions that is best understood from hogwash fat in swill oil drum, keep verification the verifying results more quasi-
Really, it is also connected with signal transmitting module II and the sensor for incuding swill oil drum information on the processor II, the signal
Sending module II and service terminal connection.
As one of set-up mode, the signal transmitting module I is short-range communication module, on the processor II
Also it is connected with another short-range communication module with I connection of signal transmitting module.Preferably, the signal transmitting module I is
Bluetooth module is also connected with another bluetooth module on processor II.
As another set-up mode, the signal transmitting module I is long-range communications module, the signal transmitting module
I with II connection of signal receiving module.
A kind of system of safety management swill oil drum based on above-mentioned second of verification mode, comprising:
Service terminal: being that producer's operation is whole for automatically generating unlock code and decoding program, and by the network transmission protocol
New unlock code is issued at end, is monitored terminal for oil drum and is issued new decoding program;Simultaneously before connecing oil operation, producer's operation is received
The swill oil drum information that terminal and oil drum monitoring terminal are sent respectively, and two swill oil drum information are matched, it will match
As a result it is sent to oil drum monitoring terminal;The network transmission protocol is preferably tcp/ip agreement;
Producer's operating terminal: it will be collected into for receiving the unlock code of service terminal transmission, and before carrying out connecing oil operation
Swill oil drum information be sent to service terminal;
Oil drum monitors terminal: for receiving the decoding program of service terminal transmission, will be collected into before carrying out connecing oil operation
Swill oil drum information be sent to service terminal;And the pairing of service terminal is received as a result, realizing oil drum prison according to pairing result
Terminal is surveyed automatically with producer's operating terminal connection, and oil drum monitoring terminal is controlled by producer's operating terminal and is made a response;
The oil drum monitoring terminal includes processor II, and signal receiving module II, the signal connecting with processor II are sent
Module II and control switch, the signal receiving module II and signal transmitting module II with service terminal connection.
Producer's operating terminal includes processor I, and the signal receiving module I and signal connecting with processor I send mould
Block I, the signal receiving module I and service terminal connection, the signal transmitting module I receive mould with service terminal and signal respectively
II connection of block.
In order to information such as the oil mass storage conditions that is best understood from hogwash fat in swill oil drum, keep verification the verifying results more quasi-
Really, the sensor for incuding swill oil drum information is also connected on the processor II.The swill oil drum information preferably includes
In weight, oil drum monitoring terminal identifier, producer's operating terminal identifier, location information and the oil drum Fuel Oil Remaining information of draining the oil
It is one or more.
At this point, signal transmitting module I is long-range communications module, which is also long haul communication mould
Block can monitor terminal by oil drum and producer's operating terminal sends service for swill oil drum information respectively by the setting
Terminal compares judgement by the information that service terminal monitors terminal and producer's operating terminal to oil drum, and such as the two is drained the oil
Unanimously whether weight, oil drum monitors terminal identifier and whether producer's operating terminal identifier matches with preset, position letter
Whether whether consistent and unlock code meets decoding program requirement etc. to breath;By the judgement of the combination, as long as one does not meet and wants
Control switch cannot be opened by, which asking, drains the oil, and greatly ensure that security performance.
Preferably, the sensor is one of liquid level sensor, weight sensor and position sensor or a variety of.
Compared with prior art, the present invention have the following advantages that and the utility model has the advantages that
1, setting through the invention both prevents unauthorized person so that the safety management of swill oil drum be effectively ensured
It is oily steathily, while the safety of management is provided significantly by regularly updating program and unlock code, it is preferably prevented from source
Hogwash fat flows to the generation of the case where food products market;
2, the present invention is by the setting of sensor, can the information in real time to swill oil drum supervise, and then make swill
The supervision of oil is more convenient, effective.
Detailed description of the invention
Fig. 1 is system block diagram one of the invention.
Fig. 2 is system block diagram two of the invention.
Fig. 3 is system block diagram three of the invention.
Specific embodiment
Below with reference to embodiment and attached drawing, the present invention is described in further detail, but embodiments of the present invention are not
It is limited to this.
Embodiment 1
A kind of method of safety management swill oil drum, as shown in Figure 1, comprising:
Step 1: oil drum being set on swill oil drum and monitors terminal, producer's operating terminal is set on oil-collecting device;
Step 2: service terminal automatically generates unlock code and decoding program, and to producer by way of wireless network transmissions
Operating terminal issues unlock code, issues decoding program to oil drum monitoring terminal;
Step 3: producer's operating terminal and hogwash fat when the oil-collecting device of producer is connected to swill oil drum, on oil-collecting device
Oil drum monitoring terminal connection on bucket;
Step 4: oil drum monitors demanding terminal and verifies unlock code, and producer's operating terminal sends unlock code;
Step 5: whether verifying unlock code matches with decoding program, when unlock code is matched with decoding program, oil drum monitoring
Terminal with producer's operating terminal connection, controls oil drum monitoring terminal by producer's operating terminal and makes a response automatically;Such as utilize factory
The control switch starting of family's operating terminal control oil drum monitoring terminal, and then realize Oil drain operation.
The verification mode of the first unlock code and decoding program is preferably used in the present embodiment, that is, producer in step 4
Unlock code is sent to oil drum monitoring terminal by operating terminal, and oil drum monitors the unlock code that terminal receives producer's operating terminal;Step 5
In matched by the decoding program that oil drum monitors the unlock code that receives of end-on and itself, be confirmed whether to match, if
Control switch is then opened in matching.
Decoding program in the present embodiment includes: 1.md5 secret key pair;2. by information+decoding program version information of producer
The character string that+random number is constituted;3. the character string in 2 carries out md5 encryption.
Unlock code are as follows: the md5 result that corresponding decoding program generates.
Unlock rule are as follows: when unlock code is consistent with the md5 result that decoding program generates, it is believed that otherwise matching mismatches.
It only could effectively realize that producer's operating terminal and oil drum monitor terminal after unlock code and decoding program successful match
Connection.The set-up mode of decoding program and unlock code in the present embodiment compares relative to simple password, and more safety can
It leans on.
The function of service terminal, producer's operating terminal and oil drum monitoring terminal is as follows in above-mentioned steps:
Service terminal: issuing new unlock code for automatically generating unlock code and decoding program, and for producer's operating terminal,
Terminal, which is monitored, for oil drum issues new decoding program;
Producer's operating terminal: for receiving unlock code and sending it to oil drum monitoring terminal;
Oil drum monitors terminal: the unlock that decoding program and producer's operating terminal for receiving service terminal transmission are sent
Code, and whether the unlock code for verifying the transmission of producer's operating terminal meets decoding program requirement, if met, then drives opening control
Switch.
In step 2, it in order to can be further improved security performance, is specifically provided that
The life cycle of unlock code and decoding lock is issued to producer's operating terminal by service terminal, and eventually for oil drum monitoring
The life cycle of end publication decoding program and decoding program.After life cycle reaches or after the completion of draining the oil, then in time to transmission
Unlock code and decoding program are updated.
The present embodiment also disclose realize the above method system structure, i.e., a kind of system of safety management swill oil drum,
Terminal is monitored including service terminal, producer's operating terminal and oil drum, in which:
Producer's operating terminal includes processor I, and the signal receiving module I and signal connecting with processor I send mould
Block I, the signal receiving module I and service terminal connection, the signal transmitting module I and oil drum monitor terminal connection;The oil
Bucket monitoring terminal includes processor II, and the signal receiving module II and control switch connecting with processor II, the signal receive
Module II and service terminal connection.The mode of connection is all made of the mode of wireless long range or wireless short-distance connection.
Signal transmitting module I described in the present embodiment is preferably wireless long-range communications module, the signal transmitting module I
With II connection of signal receiving module.I.e. in the present embodiment, system is using the mode of wireless long distance transmission, effectively realization factory
Signal communication between family's operating terminal and oil drum monitoring terminal, the present embodiment preferably use the wireless network based on 3G/4G
Connection type.
Embodiment 2
The present embodiment the difference from embodiment 1 is that: the signal transmitting module I of this in the present embodiment be short haul connection
Module is also connected with another short-range communication module with I connection of signal transmitting module on the processor II.It is i.e. of the invention
The mode transmitted using wireless short-distance of system.Pass through wireless short-range between producer's operating terminal and oil drum monitoring terminal
Mode from transmission realizes signal communication.
In the present embodiment, which is preferably arranged to bluetooth module I, connects on processor II another
A short-range communication module is then preferably arranged to the bluetooth module II with I connection of bluetooth module.
Embodiment 3
The present embodiment and the difference of embodiment 1 or 2 are: signal hair is also connected on processor II described in the present embodiment
Module II and the sensor for incuding swill oil drum information are sent, the signal transmitting module II and service terminal connection.
Wherein, system of the invention can also can preferably adopt preferably all by the way of wireless long distance transmission
The mode combined is transmitted with wireless long distance transmission and wireless short-distance.
It is preferably that wireless long distance transmission and wireless short-distance transmit the mode combined in the present embodiment, that is, producer
Realize signal communication in such a way that wireless short-distance transmits between operating terminal and oil drum monitoring terminal, oil drum monitor terminal with
Signal communication then is realized by way of wireless long distance transmission between service terminal, as shown in Figure 2.
By the setting, swill oil drum information effectively can be sent to service terminal, more convenient supervision.The hogwash fat
Bucket information includes drain the oil weight, oil drum monitoring terminal identifier, producer's operating terminal identifier, location information and oil drum remaining oil
Measure one of information or a variety of.
Embodiment 4
The present embodiment the difference from embodiment 1 is that, preferably using second unlock code and decoding journey in the present embodiment
The verification mode of sequence.That is, sending clothes for the unlock code of the decoding program of oil drum monitoring terminal and producer's operating terminal when connecing oil
Business terminal matches verifying unlock code with decoding program by service terminal, is confirmed whether to match, open if matching
Control switch.
The concrete function of the service terminal, producer's operating terminal and oil drum monitoring terminal is as follows in the present embodiment:
Service terminal: issuing new unlock code for automatically generating unlock code and decoding program, and for producer's operating terminal,
Terminal, which is monitored, for oil drum issues new decoding program;Simultaneously before connecing oil operation, producer's operating terminal and oil drum monitoring are received eventually
The swill oil drum information sent respectively is held, and two swill oil drum information are matched, pairing result is sent to oil drum prison
Survey terminal;
Producer's operating terminal: it will be collected into for receiving the unlock code of service terminal transmission, and before carrying out connecing oil operation
Swill oil drum information be sent to service terminal;
Oil drum monitors terminal: for receiving the decoding program of service terminal transmission, will be collected into before carrying out connecing oil operation
Swill oil drum information be sent to service terminal;And the pairing of service terminal is received as a result, realizing according to pairing result to control
The control of switch.
Unlock code and decoding program in the present embodiment is in the same manner as in Example 1, and pair verification process is identical.
The present embodiment also disclose realize the above method system structure, i.e., a kind of system of safety management swill oil drum,
Terminal is monitored including service terminal, producer's operating terminal and oil drum, as shown in Figure 3, in which:
The oil drum monitoring terminal includes processor II, and signal receiving module II, the signal connecting with processor II are sent
Module II and control switch, the signal receiving module II and signal transmitting module II with service terminal connection.
Producer's operating terminal includes processor I, and the signal receiving module I and signal connecting with processor I send mould
Block I, the signal receiving module I and service terminal connection, the signal transmitting module I receive mould with service terminal and signal respectively
II connection of block.
Embodiment 5
The present embodiment and the difference of embodiment 4 are, monitor in terminal and producer's operating terminal in the present embodiment in oil drum
It is provided with the sensor of induction swill oil drum information.It is monitored that is, connecing oil mass, weight of draining the oil, oil drum by the sensor sensing
The swills oil drum information such as terminal identifier, producer's operating terminal identifier, location information, and by the information and it is sent to service eventually
End.
Specific verification process are as follows:
A unique identifier is arranged in the first step, each producer's operating terminal, and each oil drum detection terminal is arranged one only
One identifier.
Second step saves preset secure access rule, secure access rule setting type multiplicity, example in service terminal
Such as:
It can permit the oil drum detection terminal that Access Identifier is B for describing producer's operating terminal that identifier is A;Or
The oil drum detection terminal that person's identifier is C can be identified producer's operating terminal that symbol is D;Or the oil drum that identifier is F is examined
Producer's operating terminal access etc. that symbol is E can be identified by surveying terminal.
Third step, when producer operating terminal E detects terminal F close to oil drum, producer operating terminal E reads oil drum operating terminal
The unique identifier of F, and send it to service terminal;Oil drum operating terminal F reads the mark of producer's operating terminal E simultaneously
Symbol, also sends it to service terminal.
4th step, service terminal determine whether producer's operating terminal E allows to access oil according to the secure access rule of preservation
Bucket operating terminal F determines result to agree to or refusing.
5th step, judgement result is sent to producer operating terminal E to service terminal simultaneously and oil drum detects terminal F.
6th step, if it is decided that result is to agree to, then accessible oil drum detects terminal F to producer operating terminal E, at this time
The control switch for controlling oil drum detection terminal F is opened, and realizes Oil drain operation.
In third step, when mark is sent to service terminal by producer operating terminal E, while producer operating terminal E is sent
The swill oil drum information that upper sensor detects, such as: connecing oil mass, oil drum monitoring terminal identifier F, producer's operating terminal identifier
E, location information etc..When mark is sent to service terminal by oil drum operating terminal F, while sending and being sensed on oil drum operating terminal F
The swill oil drum information that device detects, such as: the amount of draining the oil, oil drum monitor terminal identifier F, producer operating terminal identifier E, position
Total oil mass of information, oil drum etc..
In four steps, service terminal is according to the secure access rule of preservation and the swill of oil drum operating terminal F transmission
Oil drum information and the swill oil drum information of producer's operating terminal E transmission compare rear comprehensive descision, can make swill oil drum
It manages more safe and effective.
Above-described embodiment is merely a preferred embodiment of the present invention, and it is not intended to limit the protection scope of the present invention, as long as using
Design principle of the invention, and the non-creative variation worked and made is carried out on this basis, it should belong to of the invention
Within protection scope.