CN106933168A - Relay control module, its control method and relay control system - Google Patents

Relay control module, its control method and relay control system Download PDF

Info

Publication number
CN106933168A
CN106933168A CN201710349990.3A CN201710349990A CN106933168A CN 106933168 A CN106933168 A CN 106933168A CN 201710349990 A CN201710349990 A CN 201710349990A CN 106933168 A CN106933168 A CN 106933168A
Authority
CN
China
Prior art keywords
relay
module
control
microprocessor
relay control
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.)
Pending
Application number
CN201710349990.3A
Other languages
Chinese (zh)
Inventor
徐坚
郭萍
徐帆
徐一帆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Individual filed Critical Individual
Priority to CN201710349990.3A priority Critical patent/CN106933168A/en
Publication of CN106933168A publication Critical patent/CN106933168A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • G05B19/0425Safety, monitoring
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24167Encryption, password, user access privileges
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/25Pc structure of the system
    • G05B2219/25242Relay
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/25Pc structure of the system
    • G05B2219/25252Microprocessor

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The invention provides a kind of relay control module, its control method and relay control system, it is related to electronic applications, relay control module includes:Microprocessor, relay, communication module, input module and output precision, the microprocessor are coupled with the relay, the communication module, the input module and the output precision respectively;The communication module is used to receive and/or send revisable control parameter, the input module is used to gather signal data, the microprocessor memory storage AES and the secret key matched with the AES, the microprocessor is additionally operable to be encrypted the control parameter based on the AES and is then forwarded to the communication module, or the control parameter received based on communication module described in the secret key pair is decrypted.The relay control module can alleviate that current relay control module control mode is single, application surface is narrower and insecure communication problem.

Description

Relay control module, its control method and relay control system
Technical field
The present invention relates to electronic applications, in particular to a kind of relay control module, its control method and relay Device control system.
Background technology
Relay (Relay), also referred to as relaying, are a kind of electronic control devices, and it has control system (also known as being input into back Road) and by control system (also known as output loop), be commonly used in automatic control circuit, be with less electric current go control compared with One kind " automatic switch " of high current.Traditional integrated relay control module is per secondary control just for one or one group of relay Device is controlled, and control mode single application face is narrower, and insecure communication.
The content of the invention
In view of this, the purpose of the embodiment of the present invention be provide a kind of relay control module, its control method and Relay control system, to alleviate, current relay control module control mode is single, application surface is narrower and communication is uneasy Full problem.
In a first aspect, a kind of relay control module is the embodiment of the invention provides, including:It is microprocessor, relay, logical News module, input module and output precision, the microprocessor respectively with the relay, communication module, described defeated Enter component and output precision coupling;The communication module is used to receive and/or send revisable control parameter, described Input module is used to gather signal data, the microprocessor memory storage AES and close with what the AES was matched Spoon, the microprocessor is additionally operable to be encrypted the control parameter based on the AES and is then forwarded to the communication mould Block, or the control parameter received based on communication module described in the secret key pair is decrypted.
Second aspect, the embodiment of the invention provides a kind of relay control system, and the system includes:Control Module and terminal device, each described relay control module are electrically connected with terminal device one or more described, multiple Communicated to connect by the communication module between the relay control module.
The third aspect, the embodiment of the invention provides a kind of control method of relay control module, methods described application In relay control module, the relay control module includes:Microprocessor, relay, communication module, input module and Output precision, the microprocessor respectively with the relay, the communication module, the input module and the output group Part is coupled;Methods described includes:The communication module receives control parameter;The input module gathers signal data;It is described micro- It is pre-conditioned that processor judges whether the signal data meets;Pre-conditioned when meeting, the microprocessor is based on the control Relay described in driving parameter processed and the terminal device being connected with the output precision work according to pre-set programs.
Compared with prior art, various embodiments of the present invention propose a kind of relay control module, its control method and The beneficial effect of relay control system is:Revisable control parameter is received or sent by communication module to control relay Device control module so that relay control module can realize multiple control modes based on control parameter, tackle different demands, Expand the application surface of relay control module, further, it is also possible to the AES for being based on being stored in microprocessor and with The secret key of the AES matching, the control parameter to being received by communication module is decrypted or communication module is sent Revisable control parameter be encrypted, solve the problems, such as insecure communication.
To enable the above objects, features and advantages of the present invention to become apparent, preferred embodiment cited below particularly, and coordinate Appended accompanying drawing, is described in detail below.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below will be attached to what is used needed for embodiment Figure is briefly described, it will be appreciated that the following drawings illustrate only certain embodiments of the present invention, thus be not construed as it is right The restriction of scope, for those of ordinary skill in the art, on the premise of not paying creative work, can also be according to this A little accompanying drawings obtain other related accompanying drawings.
A kind of structured flowchart of relay control module that Fig. 1 is provided for first embodiment of the invention;
The structured flowchart of the relay control module of the another embodiment that Fig. 2 is provided for first embodiment of the invention;
A kind of structured flowchart of relay control system that Fig. 3 is provided for second embodiment of the invention;
The structured flowchart of the relay control system of the another embodiment that Fig. 4 is provided for second embodiment of the invention;
The flow chart of the control method of the relay control module that Fig. 5 is provided for third embodiment of the invention.
Icon:100- relay control modules;110- microprocessors;120- relays;130- communication modules;140- is input into Component;150- optocouplers;160- output precisions;170- voice modules;200- relay control systems;210- terminal devices;220- Server.
Specific embodiment
Below in conjunction with accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Ground description, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.Generally exist The component of the embodiment of the present invention described and illustrated in accompanying drawing can be arranged and designed with a variety of configurations herein.Cause This, the detailed description of the embodiments of the invention to providing in the accompanying drawings is not intended to limit claimed invention below Scope, but it is merely representative of selected embodiment of the invention.Based on embodiments of the invention, those skilled in the art are not doing The every other embodiment obtained on the premise of going out creative work, belongs to the scope of protection of the invention.
It should be noted that:Similar label and letter represents similar terms in following accompanying drawing, therefore, once a certain Xiang Yi It is defined in individual accompanying drawing, then it need not be further defined and explained in subsequent accompanying drawing.Meanwhile, of the invention In description, term " first ", " second " etc. are only used for distinguishing description, and it is not intended that indicating or implying relative importance.
First embodiment
Fig. 1 is refer to, first embodiment of the invention provides a kind of relay control module 100, and it includes microprocessor 110th, relay 120, communication module 130, input module 140, optocoupler 150 and output precision 160.The microprocessor 110 Respectively with the relay 120, the communication module 130, the input module 140, optocoupler 150 and the output precision 160 couplings.
Wherein, relay 120 is also referred to as relaying, is a kind of electronic control device.It has control system (also known as being input into back Road) and by control system (also known as output loop), be commonly used in automatic control circuit, be with less electric current go control compared with One kind " automatic switch " of high current.As a kind of implementation method, same relay control module 100 can include it is multiple after Electrical equipment 120, each relay 120 is coupled with microprocessor 110 respectively.Function phase is same or different relays 120 can be simultaneously Row work, does not interfere with each other.Each relay 120 can be operated according to the parameter of oneself.For example, the first relay 120 prolongs When 30 seconds, 120 time delay of the second relay 20 seconds, 120 time delay of the 3rd relay 10 seconds.After server 220 is simultaneously emitted by instruction, three Individual relay 120 is opened simultaneously, but the time closed is different.
Input module 140 can be signal collecting device.If relay control module 100 is for example used for gate control system, Then input module 140 can be card reader (RF radio frequencies card reader);It is defeated if relay control module 100 is used for elevator Enter component 140 can be for gathering the switching signal of human infrared signal (1 or 0) receiving interface, the interface can with it is micro- The input pin coupling of processor 110.It is, of course, also possible to relay control module 100 is used for newspaper box, storage tank.Certainly, one Individual relay control module 100 can control multiple equipment, and correspondingly, input module 140 can also include card reader and signal Interface.
The data signal or analog signal that input module 140 will can be collected are uploaded to microprocessor 110 in real time, its In, the quantity of the signal that microprocessor 110 can receive simultaneously depends on the number of pin of microprocessor 110, each pin pair An address is answered, therefore, if the priority of input module 140 is coupled from the different pins of microprocessor 110, the input module 140 priority address is also different.During up-delivering signal, stabilization treatment can be carried out to signal, such as in microprocessor Increase a low pass filter before 110 pin, when signal changes, address and the signal of the signal of change are uploaded in time Value.
Optocoupler 150 (opticalcoupler, OC) is also known as photoisolator or photoelectrical coupler.It is with light as medium The device of transmitting telecommunication number, protective separation is played a part of to microprocessor 110.
Output precision 160 can be various data-interfaces, such as digital interface tube, pulse width modulation output interface etc.. Output precision 160 is used to be connected with output equipment.
Microprocessor 110 is probably a kind of IC chip, and the disposal ability with signal can be by a piece of or minority Several central processing units of large scale integrated circuit composition.These circuits can perform the work(of control unit and arithmetic and logical unit (ALU) Energy.Microprocessor 110 can be completed to read instruction, execute instruction, and the behaviour such as information is exchanged with extraneous memory and logical block Make, be the operation control part of microcomputer, it can be with memory and peripheral circuit chip composition microcomputer.
AES and the secret key matched with the AES can be stored in microprocessor 110.If communication module 130 When sending control parameter, microprocessor 110 can first be based on AES of the storage in microprocessor 110 by control parameter It is encrypted, if communication module 130 will receive control parameter, microprocessor 110 can be based on storage in microprocessor 110 The control parameter that receives of secret key pair be decrypted.Further, the array that control parameter can be made up of set of number, The every number in array is encrypted and then sent according to the AES for pre-defining, when receiving control parameter, can be with According to the original value in the secret key reduction array corresponding with the AES for pre-defining per number, so as to ensure that reception The security of data and transmission data, prevents that illegal instruction is sent in relay control module 100 by communication module 130 So that relay 120 is connected or disconnected, the signal that other equipment illegally obtains receiving relay control module 100 is also prevent State, it is ensured that the security that relay control module 100 is run under network.Due to being passed using communication data cipher mode Defeated, many one layer of protections of control instruction will not easily be trespassed by people, and the equipment that relay control module 100 is controlled is more Safe and reliable, with greater need for data encryption, synchronous signal status information will not be revealed easily for particularly door lock control.
Communication module 130 can be 485 buses, ethernet module, ZigBee module, bluetooth module or WiFi module, Relay control module 100 can receive revisable control parameter come control relay 120 based on the communication module 130, Additionally, the revisable control parameter that relay control module 100 is also based on the transmission of the communication module 130 controls it His relay control module 100.Because control parameter can be changed at any time, traditional relay control module parameter one is overcome Denier setting cannot just be changed, and control single problem.
After the communication module 130 receives control parameter, the collection signal data of input module 140, the signal data bag Include Signal Message Address and signal value;It is pre-conditioned that microprocessor 110 judges whether signal data meets, and bar is preset when judging to meet During part, microprocessor 110 is based on the control parameter and drives the relay 120 and be connected with the output precision 160 Equipment works according to pre-set programs.
Control parameter can make change according to actual conditions, will be applied to relay control module 100 below electronic Elaboration is made as a example by automatically-controlled door.
Wherein, input module 140 can include RF radio frequency card readers, and the IC-card of user identity is characterized for reading, and obtain The ID data at family are taken, and the address of the ID data of user and the RF radio frequency card readers of the ID data for obtaining user is sent to Microprocessor 110.In addition, mobile terminal (such as mobile phone) can also be sent by communication module 130 to relay control module 100 ID data.The address of input module 140 is determined by the pin of microprocessor 110.Additionally, input module 140 can also be wrapped Include be connected with electric automatic door electromagnetic lock signaling interface, current detecting analog signal interface, motor open in place signaling interface, Motor encoder signaling interface.
Output precision 160 can include pulse width modulation (PWM) output interface, and motor can be defeated with pulse width modulation Outgoing interface is connected.
Now, relay 120 can include electric relay, the electric relay of the controlled motor sense of current of control door lock.
ID data are sent to microprocessor 110 by RF radio frequencies card reader or communication module 130, so that microprocessor Device 110 judges whether the user corresponding to ID data has authority.
Further, microprocessor 110 can the user of typing in advance ID data messages, when microprocessor 110 is received After the ID data that RF radio frequencies card reader or communication module 130 send, the ID of the ID data that will be received and advance typing Data message is matched, if the match is successful, the user has authority.
After judging that user has authority, microprocessor 110 can be according to the sub- relay of control parameter drive control door lock Device, the electric relay of the controlled motor sense of current and with output precision 160 connect motor according to corresponding pre-set programs work Make.
In present embodiment, control parameter can include the electric relay control parameter of control door lock, controlled motor electricity The electric relay control parameter (controlled motor is rotated and reverse) in direction, motor is flowed to rotate forward parameter, motor and rotate backward ginseng Number.
Wherein, the electric relay control parameter of control door lock includes delay time;The sub- relay of the controlled motor sense of current Device control parameter includes:Motor opens signal in place or motor encoder signal-count value, delay time, the class of electronics lock signal three ginseng Number;Motor rotates forward parameter and opens signal, current detecting in place including electronics lock signal, motor encoder signal-count, motor Analog signal, motor operation speed etc.;Motor inverted running parameter includes the state of the electric relay of the controlled motor sense of current Signal, motor encoder signal-count, door lock signal etc..
For example, the electric relay control parameter of control door lock sets and is:Without condition judgment before action, time delay bar after action Part judgement, judges whether delay time reaches.
The electric relay control parameter of the controlled motor sense of current set be judge before action motor opening in place signal or Person's motor encoder signal-count value, delay time, action postcondition is door lock signal.
Motor rotates forward the sub- relay that parameter setting is door lock signal, motor encoder signal-count, the controlled motor sense of current The status signal of device, 3 stages (startup stage, operation phase, decelerating phase) of motor operation speed pulse width modulation it is defeated Outgoing interface (PWM) output valve, motor open signal in place.
The status signal of the electric relay of the motor reversal parameter setting controlled motor sense of current, current detecting simulation letter Number, motor encoder signal-count, door lock signal.
Due to before the electric relay action for controlling door lock without Rule of judgment, so controlled after being connected to instruction the son of door lock after Electrical equipment disconnects.At this moment electromagnetic lock power-off, does not have magnetic to be in open mode, and door lock signal is "On" state.Time delay (assuming that 6 seconds) The electric relay connection of control door lock afterwards.When the lock body of electromagnetic lock is not in contact with closing piece, electromagnetic lock is in open shape State, electromagnetic lock is locked after lock body is contacted with closing piece, and at this moment lock signal is "Off".
Motor rotates forward control:Start PWM outputs when detecting door lock signal for "ON", while receiving motor encoder signal simultaneously Count;Determine the distance of motor operation, determine that the dutycycle of power supply output reaches the purpose of control speed according to distance.Then connect The electric current of current detecting analog signal real-time monitoring motor is received, if electric current exceedes setting value, suspends motor operation;Wait some Restart after second, and detect size of current, motor operation is continued if normal until receiving open the door signal or electricity in place Machine encoded signal is counted and reaches setting value.At this moment PWM outputs, motor stalls are stopped.Terminate motor and rotate forward operation.
After the electric relay reception motor encoder signal-count value of the controlled motor sense of current reaches arranges value, then time delay 10 Second, the electric relay of the controlled motor sense of current is connected afterwards.This judgement is exactly multiple according to counting → time delay → signal sequence Close and judge.If signal is not provided with being defaulted as very.It is exactly within 10 seconds residence time after door is opened in place.Controlled motor electric current side To electric relay be always maintained at connected state to receive door lock signal be close, when door lock signal be "Off" when, control electricity The electric relay of the machine sense of current disconnects.
When the electric relay state for detecting the controlled motor sense of current is in connection, PWM output motors are rotated.With electricity Machine rotates forward the same, different overall travel speeds differences, while the size of real-time detection electric current.When door lock signal is received for "Off", Stop PWM outputs, motor stalls.
The above is exactly the process that relay control module 100 is once completely controlled electric automatic door, can define difference The multiple instruction of parameter controls same automatically-controlled door.Its implementation effect is also differed, and for example door opens residence time, switch gate Speed etc. in the light of actual conditions can be modified at any time.
Relay control module 100 is not only applicable to electric automatic door, can also be applied to water purification machine control.Wherein, it is defeated Entering component 140 can include RF radio frequencies card reader, flow sensor, switch interface.Output precision 160 can include and electromagnetism The power of electromagnetic valve interface of valve connection and the digital interface tube being connected with charactron.
ID data are sent on microprocessor 110 by RF radio frequency card readers, judge user right.Possesses authority Microprocessor 110 judges pure water remaining sum again afterwards, and be not zero then execute instruction.Without judging before action, according to signal meter after action Numerical value and switching signal judge.
After sending instruction, relay 120 is connected, and magnetic valve switches on power openings, and water flows out.Flow sensor has signal defeated Go out, input signal is received by input module 140 and is counted.Count value is shown on charactron in real time.When count value is super When crossing the value of setting or receiving switching signal, relay 120 disconnects, and turns off power of electromagnetic valve, and water stops outflow.At this moment use The remaining sum of family water subtracts count value and draws new remaining sum.Charactron resets, and control device is again at wait state.
Refer to Fig. 2, relay control module 100 can also include voice module 170, voice module 170 can with after The microprocessor 110 of electrical control module 100 is coupled.Voice module 170 can be the integrated circuit for storing sound, integrated circuit External loudspeaker or buzzer, can upon receipt of the signals start alarm or suggestion voice.
Access control will be applied to relay control module 100 below and make elaboration.Gate inhibition's electromagnetic lock unblock after swiping the card, Door can be opened, if electromagnetic lock is not unlocked, goalkeeper is opened by force and starts alarm.
Wherein, input module 140 can include RF radio frequency card readers, and the IC-card of user identity is characterized for reading, and obtain The ID data at family are taken, and the address of the ID data of user and the RF radio frequency card readers of the ID data for obtaining user is sent to Microprocessor 110.In addition, mobile terminal (such as mobile phone) can also be sent by communication module 130 to relay control module 100 ID data.Additionally, input module 140 can also include the door lock signal interface being connected with gate inhibition.
Output precision 160 can include electromagnetism lock interface, and electromagnetic lock is connected with electromagnetism lock interface.
Now, relay 120 can include electric relay, the electric relay of control voice module 170 of control door lock.
ID data are sent to microprocessor 110 by RF radio frequencies card reader or communication module 130, so that microprocessor Device 110 judges whether the user corresponding to ID data has authority.
After judging that user has authority, microprocessor 110 can be according to the sub- relay of control parameter drive control door lock Device, the electric relay of control voice module 170 and with output precision 160 connect electromagnetic lock according to corresponding pre-set programs work Make.
Wherein, pre-set programs include carrying out the virtual letter that computing is obtained according to default logical expression by logical variable Number, the virtual signal is used to control the relay 120.Wherein, the logical variable is gathered by the input module 140 At least one carries out logic judgment with the control parameter in input signal, the state of relay 120, delay time, metering numerical value After formed, the relay status include:Open and close.Such as on off state and input signal (door of the electric relay of control door lock Lock signal) value determine a value for virtual signal.
In present embodiment, controlling the control parameter of the electric relay of door lock to set can be:Without condition before action Judge, there is delay time to judge after action.The control parameter of the electric relay of control voice module 170 is set:Action Preceding judgement virtual signal, is worth for 1 relay 120 is connected;Delay judgement after action.
Virtual signal:When the electric relay status signal of door lock is controlled for connection and door lock signal is "ON", then virtual letter Number be 1;Other situation virtual signals are 0.
Instruction is connected under normal circumstances, controls the electric relay of door lock to disconnect, and door lock signal is "ON".At this moment door lock Open, sliding door enters or goes out.The electric relay time delay of door lock is controlled to recover connection afterwards for a period of time, electromagnetic lock is powered.When Electromagnetic lock is locked after being contacted with closing piece, and door lock signal is changed into "Off".When anon-normal hold-open door, the relay 120 of door lock is controlled State is connection, but door lock signal is "ON", and triggering virtual signal value is changed into 1.At this moment the electric relay of control voice module 170 After receiving virtual signal, the electric relay connection of control voice module 170 makes the energization of voice module 170 send alarm, prolongs When some time after, the electric relay of control voice module 170 disconnects stop alarm.If virtual signal is always 0, control The electric relay of voice module 170 is always to be off, and will not be alarmed.
Can be with stored voice message, such as " card is invalid, snap past the phase, need payment ", voice module in microprocessor 110 After 170 receive the instruction that the microprocessor 110 sends, can play and the corresponding voice messaging of the instruction.
Additionally, emergency flight control parameter can also be pre-saved in microprocessor 110, when microprocessor 110 detects communication When the communication failure of module 130 or communicating interrupt, the emergency flight control parameter for pre-saving can be based on to relay control module 100 send off line control so that relay control module 100 in communication failure or communicating interrupt can also off-line working, Relevant equipment is controlled using the control parameter for pre-setting.When communication line inspection is normal, reset relay control module 100 The instruction to be received such as original state.The emergency flight control parameter for pre-setting can be changed at any time, raw after remote activation is carried out Effect.
The beneficial effect of relay control module 100 that first embodiment of the invention is provided is:Connect by communication module 130 Receive or send revisable control parameter and carry out control relay control module 100 so that relay control module 100 being capable of base Multiple control modes are realized in control parameter, different demands are tackled, the application surface of relay control module 100 is expanded, this Outward, the AES being stored in microprocessor 110 and the secret key matched with the AES are also based on, to passing through The control parameter that communication module 130 is received is decrypted or the revisable control parameter that communication module 130 sends is carried out Encryption, solves the problems, such as insecure communication.
Second embodiment
Refer to Fig. 3, the present invention second applies example and provides a kind of relay control system 200, the system includes multiple the Relay control module 100 and multiple terminal devices 210 in one embodiment.Each described relay control module 100 with One or more terminal device 210 is electrically connected, can be by communication module between multiple relay control modules 100 130 realize communication connection.
Terminal device 210 can be with identical, it is also possible to different.It is defeated that different terminal devices 210 can provide different signals Enter.For example can be elevator signal, electromagnetism lock signal, direct current generator signal, newspaper box or locker signal, water purification machine signal, big Room illumination sign, door sensor signal, human infrared signal, light-sensing signal etc..Connect light-sensing signal and the time judges then to may be used on Automatic curtain or Street lamps control;Water receiving level sensor signal may be used on the automatic opening control of water pump;Connect human body infrared letter Number then may be used on intelligent lighting controls;Connect soil humidity sensor signal and just may apply to automatic irrigation control;Connect flow Sensor signal may apply to water dispenser control etc..
Wherein, output information for relay control module 100 can by communication module 130 be sent to another after Electrical control module 100, as the control parameter of another relay control module 100, realizes multiple modules of relay 120 Cooperate.For example, the first relay control module 100, the second relay control module 100, the 3rd relay control module 100 cooperate.After i.e. the first relay control module 100 has worked, finger is sent to the second relay control module 100 Order, the second relay control module 100 is started working;By that analogy, after the second relay control module 100 has worked, the Three relay control modules 100 are started working.Hall call buttons and control are controlled certainly with relay control system 200 below Elaboration is made as a example by dynamic illumination.Swipe the card or mobile phone transmission information after judge access right, if having authority, elevator is made according to authority Up-downgoing button recovers function or directly to light, while judging whether someone's activity controls the illumination in the region in outgoing call region.
Wherein, input module 140 can include RF radio frequency card readers, human infrared signal sensor, elevator up-down Button modulating signal.Output precision 160 can include being connected with the interface and elevator descending button of ascending for elevator button connects respectively Interface and illuminator connection interface.The control is related to 5 relays 120.
Up button connects electric relay:When the electric relay is connected, up button can use calling elevator.Otherwise Button can not call elevator.Needing the parameter for setting includes human infrared signal, delay time before action, after action during time delay Between, button modulating signal.
Descending button connects electric relay:It is the same with button connection electric relay.
Up button lights electric relay:When the electric relay is connected, up Push-button lamp is lighted, equivalent to pressing elevator Button, the delay parameter after only acting.
Descending button lights electric relay:It is the same electric relay to be lighted with up button.
Illumination electric relay:Electric relay connection rear lighting lamp is lighted and detected, it is necessary to set action front signal, after action Time delay, and the instruction is that circulation is performed.As long as then the electric relay is just connected always signal, illuminating lamp is bright always.
If user has directly lights descending button, other buttons have no right the authority of operation, and microprocessor 110 is only under Row button connects electric relay and descending button is lighted electric relay and operated.Descending button connection electric relay connects first It is logical so that button loop turns on, then detect human body infrared detectable signal.After signal is received, descending button point transom after Electrical equipment is connected, and equivalent to button is pressed, at this moment Push-button lamp is bright.Human infrared signal explanation elevator outer calling region is not received by not have Someone's activity, then descending button is lighted electric relay and will not be connected, but is off, and Push-button lamp will not be lighted, and be prevented Maloperation makes the frequently invalid operation of elevator.The descending button connection Push-button lamp such as electric relay is disconnected after time delay some seconds again after going out (signal → time delay → logical circuit of counter expression formula), descending button connection electric relay cut-off push button loop, makes button controlled afterwards, So as to the use of control button.
Additionally, refer to Fig. 4, used as a kind of implementation method, relay control system 200 can also include server 220, One or more described relay control module 100 can set up logical by communication module 130 and the server 220 Letter connection.The server 220 can be the webserver, database server etc..
Control parameter can send by server 220, be received by different relay control modules 100.Each after The control parameter of electrical control module 100 can be acted the Signal Message Address and value of forward and backward condition, be prolonged with difference, including relay 120 When the time, count value, state value (open and close), time out value, halt signal address and value etc. parameter.Microprocessor 110 can be with root Relay 120 is controlled according to these parameters.
Additionally, the judgement of the authority of user can also be sent to server 220 by communication module 130, sentenced by server 220 Microprocessor 110 is fed back to after disconnected authority.
The beneficial effect of relay control system 200 that second embodiment of the invention is provided is:Connect by communication module 130 Receive or send revisable control parameter and carry out control relay control module 100 so that relay control module 100 being capable of base Multiple control modes are realized in control parameter, different demands are tackled, the application surface of relay control module 100 is expanded, this Outward, the AES being stored in microprocessor 110 and the secret key matched with the AES are also based on, to passing through The control parameter that communication module 130 is received is decrypted or the revisable control parameter that communication module 130 sends is carried out Encryption, solves the problems, such as insecure communication.Each relay control module 100 can connect identical terminal device 210, Different terminal devices 210 can be connected, the application surface of relay control system 200 is expanded.
3rd embodiment
Fig. 5 is refer to, third embodiment of the invention provides a kind of control method of relay control module, the method application Relay control module in first embodiment.The flow shown in Fig. 5 will be illustrated below, methods described includes:
Step S110:The communication module receives control parameter.
Step S120:The input module gathers signal data.
Step S130:It is pre-conditioned that the microprocessor judges whether the signal data meets.
Step S140:It is pre-conditioned when meeting, the microprocessor be based on the control parameter drive the relay with And the terminal device being connected with the output precision works according to pre-set programs.
The pre-set programs include:The virtual letter that computing is obtained is carried out according to default logical expression by logical variable Number, the virtual signal is used to control the relay, wherein, the logical variable is believed by the input that the input module is gathered Number, relay status, delay time, at least one carry out being formed after logic judgment with the control parameter in metering numerical value, institute Stating relay status includes:Open and close.
The detailed description of above method step refer to first embodiment and second embodiment, and here is omitted.
In sum, the embodiment of the present invention is proposed relay control module, its control method and Control system System, is received by communication module or sends revisable control parameter come control relay control module so that relay control Molding block can realize multiple control modes based on control parameter, tackle different demands, expand relay control module Application surface, further, it is also possible to be based on the AES that is stored in microprocessor 110 and close with what the AES was matched Spoon, the control parameter to being received by communication module is decrypted or the revisable control parameter that communication module sends is entered Row encryption, solves the problems, such as insecure communication.
In several embodiments provided herein, it should be understood that disclosed module and method, it is also possible to pass through Other modes are realized.Device embodiment described above is only schematical, for example, flow chart and block diagram in accompanying drawing Show the device of multiple embodiments of the invention, the architectural framework in the cards of method and computer program product, Function and operation.At this point, each square frame in flow chart or block diagram can represent one the one of module, program segment or code Part a, part for the module, program segment or code is used to realize holding for the logic function for specifying comprising one or more Row instruction.It should also be noted that at some as in the implementation replaced, the function of being marked in square frame can also be being different from The order marked in accompanying drawing occurs.For example, two continuous square frames can essentially be performed substantially in parallel, they are sometimes Can perform in the opposite order, this is depending on involved function.It is also noted that every in block diagram and/or flow chart The combination of the square frame in individual square frame and block diagram and/or flow chart, can use the function or the special base of action for performing regulation Realized in the system of hardware, or can be realized with the combination of computer instruction with specialized hardware.
In addition, each functional module in each embodiment of the invention can integrate to form an independent portion Divide, or modules individualism, it is also possible to which two or more modules are integrated to form an independent part.
If the function is to realize in the form of software function module and as independent production marketing or when using, can be with Storage is in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words The part contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter Calculation machine software product is stored in a storage medium, including some instructions are used to so that a computer equipment (can be individual People's computer, server, or network equipment etc.) perform all or part of step of each embodiment methods described of the invention. And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited Reservoir (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.Need Illustrate, herein, such as first and second or the like relational terms be used merely to by an entity or operation with Another entity or operation make a distinction, and not necessarily require or imply these entities or there is any this reality between operating The relation or order on border.And, term " including ", "comprising" or its any other variant be intended to the bag of nonexcludability Contain, so that process, method, article or equipment including a series of key elements are not only including those key elements, but also including Other key elements being not expressly set out, or it is this process, method, article or the intrinsic key element of equipment also to include. In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including the key element Process, method, article or equipment in also there is other identical element.
The preferred embodiments of the present invention are the foregoing is only, is not intended to limit the invention, for the skill of this area For art personnel, the present invention can have various modifications and variations.It is all within the spirit and principles in the present invention, made any repair Change, equivalent, improvement etc., should be included within the scope of the present invention.It should be noted that:Similar label and letter exists Similar terms is represented in following accompanying drawing, therefore, once being defined in a certain Xiang Yi accompanying drawing, then it is not required in subsequent accompanying drawing It is further defined and is explained.
The above, specific embodiment only of the invention, but protection scope of the present invention is not limited thereto, and it is any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all contain Cover within protection scope of the present invention.Therefore, protection scope of the present invention described should be defined by scope of the claims.

Claims (10)

1. a kind of relay control module, it is characterised in that including:Microprocessor, relay, communication module, input module with And output precision, the microprocessor respectively with the relay, the communication module, the input module and the output Component is coupled;The communication module is used to receive and/or send revisable control parameter, and the input module is used to gather to be believed Number, the microprocessor memory storage AES and the secret key matched with the AES, the microprocessor are also used In the control parameter being encrypted based on the AES be then forwarded to the communication module, or based on the secret key The control parameter that the communication module is received is decrypted.
2. relay control module according to claim 1, it is characterised in that the input module includes that RF radio-frequency cards are read Card device, the output precision includes pulse width modulation output interface.
3. relay control module according to claim 1, it is characterised in that the relay control module also includes language Sound module, the voice module is coupled with the microprocessor, the microprocessor memory storage voice messaging, so that the voice After module receives the instruction that the microprocessor sends, play and the corresponding voice messaging of the instruction.
4. relay control module according to claim 1, it is characterised in that the relay control module includes multiple Relay, each described relay is coupled with the microprocessor respectively.
5. relay control module according to claim 1, it is characterised in that the microprocessor memory storage emergency flight control Parameter, for when communication module communication failure or communicating interrupt is detected, based on the emergency flight control parameter pair for pre-saving Relay control module sends off line control.
6. a kind of relay control system, it is characterised in that the system include in multiple claim 1-5 it is any it is described after Electrical control module and terminal device, each described relay control module are electrically connected with terminal device one or more described Connect, communicated to connect by the communication module between multiple relay control modules.
7. relay control system according to claim 6, it is characterised in that the system also includes server, wherein One or more described relay control module is set up with the server by the communication module and communicated to connect.
8. relay control system according to claim 6, it is characterised in that each relay control module connection Terminal device is different, and the control mode of each terminal device is different.
9. a kind of control method of relay control module, it is characterised in that methods described is applied to relay control module, institute Stating relay control module includes:Microprocessor, relay, communication module, input module and output precision, the microprocessor Device is coupled with the relay, the communication module, the input module and the output precision respectively;Methods described bag Include:
The communication module receives control parameter;
The input module gathers signal data;It is pre-conditioned that the microprocessor judges whether the signal data meets;
It is pre-conditioned when meeting, the microprocessor be based on the control parameter drive the relay and with the output group The terminal device of part connection works according to pre-set programs.
10. control method according to claim 9, it is characterised in that the pre-set programs include:By logical variable according to Default logical expression carries out the virtual signal that computing is obtained, and the virtual signal is used to control the relay, wherein, institute State at least one in input signal, relay status, delay time, metering numerical value that logical variable is gathered by the input module Formed after carrying out logic judgment with the control parameter, the relay status include:Open and close.
CN201710349990.3A 2017-05-16 2017-05-16 Relay control module, its control method and relay control system Pending CN106933168A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710349990.3A CN106933168A (en) 2017-05-16 2017-05-16 Relay control module, its control method and relay control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710349990.3A CN106933168A (en) 2017-05-16 2017-05-16 Relay control module, its control method and relay control system

Publications (1)

Publication Number Publication Date
CN106933168A true CN106933168A (en) 2017-07-07

Family

ID=59429734

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710349990.3A Pending CN106933168A (en) 2017-05-16 2017-05-16 Relay control module, its control method and relay control system

Country Status (1)

Country Link
CN (1) CN106933168A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109870961A (en) * 2019-03-25 2019-06-11 菲尼克斯亚太电气(南京)有限公司 Support the time relay and correspondence system of running parameter NFC transmission
CN109901413A (en) * 2019-01-10 2019-06-18 国网诺博特江苏自动化设备有限公司 A kind of framework that reentrying virtual relay and implementation method
CN112714107A (en) * 2020-12-18 2021-04-27 玉溪市电子政务内网信息技术中心 Terminal single-path intelligent port lock and system and control method thereof
CN113254378A (en) * 2021-04-07 2021-08-13 浙江工业大学 Circuit breaker communication protection method based on serial port communication

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1740070A (en) * 2004-08-24 2006-03-01 广州日立电梯有限公司 Intelligent lift control system and method
JP2009173434A (en) * 2008-01-28 2009-08-06 Toshiba Plant Systems & Services Corp Escalator monitoring system
CN101794480A (en) * 2010-02-01 2010-08-04 合肥工业大学 Pre-purchased power controller
CN103832913A (en) * 2014-02-27 2014-06-04 沈阳博林特电梯集团股份有限公司 Escalator self-diagnostic adjusting control safety protection device
CN104340780A (en) * 2014-09-22 2015-02-11 成都千帆科技开发有限公司 One-card control system and one-card control method of mobile phone Bluetooth swiping card
CN105731210A (en) * 2016-03-18 2016-07-06 南京市特种设备安全监督检验研究院 Multi-functional emergency alarm communication system of elevator

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1740070A (en) * 2004-08-24 2006-03-01 广州日立电梯有限公司 Intelligent lift control system and method
JP2009173434A (en) * 2008-01-28 2009-08-06 Toshiba Plant Systems & Services Corp Escalator monitoring system
CN101794480A (en) * 2010-02-01 2010-08-04 合肥工业大学 Pre-purchased power controller
CN103832913A (en) * 2014-02-27 2014-06-04 沈阳博林特电梯集团股份有限公司 Escalator self-diagnostic adjusting control safety protection device
CN104340780A (en) * 2014-09-22 2015-02-11 成都千帆科技开发有限公司 One-card control system and one-card control method of mobile phone Bluetooth swiping card
CN105731210A (en) * 2016-03-18 2016-07-06 南京市特种设备安全监督检验研究院 Multi-functional emergency alarm communication system of elevator

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
周秉功: "继电器选型手册", 机械工业出版社, pages: 348 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109901413A (en) * 2019-01-10 2019-06-18 国网诺博特江苏自动化设备有限公司 A kind of framework that reentrying virtual relay and implementation method
CN109870961A (en) * 2019-03-25 2019-06-11 菲尼克斯亚太电气(南京)有限公司 Support the time relay and correspondence system of running parameter NFC transmission
CN112714107A (en) * 2020-12-18 2021-04-27 玉溪市电子政务内网信息技术中心 Terminal single-path intelligent port lock and system and control method thereof
CN112714107B (en) * 2020-12-18 2023-03-10 玉溪市电子政务内网信息技术中心 Terminal single-path intelligent port lock and system and control method thereof
CN113254378A (en) * 2021-04-07 2021-08-13 浙江工业大学 Circuit breaker communication protection method based on serial port communication

Similar Documents

Publication Publication Date Title
CN106933168A (en) Relay control module, its control method and relay control system
CN101128857B (en) Systems and methods for notifying persistent states of monitored systems using distributed monitoring devices
CN103456057A (en) Access control system for automatic grading identification based on license plate, human face and fingerprints
CN105063958A (en) Washing machine and anti-pinch control method of electrically-operated door of washing machine
CN107833329A (en) It is a kind of to be used for Region control and the anti-gate control system for sneaking into management
CN205050222U (en) Cut current logical recognition device of formula gate machine
CN107038831A (en) A kind of burglary-resisting system based on Internet of Things
CN206649587U (en) A kind of fire disaster intelligently door-locking system
CN206667963U (en) A kind of intelligent door lock system
CN205563764U (en) Intelligent gate inhibition system
CN107180471A (en) Gate control device and system based on RS485 communication protocols
CN103791686A (en) Intelligent refrigerator with iris recognition function
CN202003179U (en) Entrance guard control system
CN101447115A (en) Alarming control system capable of arming and disarming automatically
CN108674230A (en) Self-service charging terminal, the system and method for electric bicycle
CN207366983U (en) Relay control module and relay control system
CN108629870A (en) A kind of Gate-ban Monitoring System
CN107219770A (en) A kind of house intelligent management system
CN203102399U (en) Access control system of multi-story building
CN201927094U (en) Access control system capable of alarming special for prisons
CN206339586U (en) A kind of electricity anti-theft system
CN100424672C (en) Network safety control equipment based on physical isolation and data exchange monitoring
CN201654869U (en) Anti-following intelligent controller
CN205809945U (en) A kind of coded lock with remote authorization function
CN204029080U (en) A kind of hotel guest room guard against theft and alarm system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170707