Summary of the invention
The purpose of this utility model is to provide a kind of simple in structure, bus preemptive type alarm linkage controller that cost is low.
The utility model is achieved through the following technical solutions:
A kind of bus preemptive type alarm linkage controller, it is characterized in that: single-chip microprocessor MCU connects the receipts of a RS485 bus transceiver (1)/send out by its I/O interface and enables interface, single-chip microprocessor MCU connects the TXD2 interface of another RS485 bus transceiver (2) by its UART-TXD interface, one electronic switch SW2 is installed on the control line between the TXD2 interface of the UART-TXD interface of single-chip microprocessor MCU and RS485 bus transceiver (2), single-chip microprocessor MCU connects front-end equipment ID and bus communication protocol selector switch by its I/O S interface, connect the multiple alarm interface by its I/O S interface, this single-chip microprocessor MCU also connects an interrupt request singal line that is connected with the multiple alarm interface by its INTX interface.
And the control line between the TXD2 interface of the UART-TXD interface of single-chip microprocessor MCU and RS485 bus transceiver (2) also is connected the RXD1 interface of RS485 bus transceiver (1), and an electronic switch SW1 is installed on this control line.
Described single-chip microprocessor MCU adopts the chip with sleep mode, and described electronic switch adopts integrated analog switch or tri-state gate circuit.
Advantage of the present utility model and good effect are:
The entire circuit of this controller is simple in structure, and is practical, ideally realized bus preemptive type alarm linkage function.By this bus preemptive type alarm linkage controller, can other be system combined with video monitoring system and safety precaution, constituted safety-protection system complete, that integrated level is very high.
Embodiment
Below in conjunction with accompanying drawing embodiment of the present utility model is further described, but is not limited to the concrete structure that present embodiment is narrated.
This bus preemptive type alarm linkage controller is by single-chip microprocessor MCU, the RS485 bus transceiver, electronic switch constitutes, the physical circuit of this controller is: single-chip microprocessor MCU connects the receipts of a RS485 bus transceiver (1)/send out by its I/O interface and enables interface, single-chip microprocessor MCU connects the TXD2 interface of another RS485 bus transceiver (2) by its UART-TXD interface, one electronic switch SW2 is installed on the control line between the TXD2 interface of the UART-TXD interface of single-chip microprocessor MCU and RS485 bus transceiver (2), this control line be connected with the RXD1 interface of RS485 bus transceiver (1) and control line betwixt on an electronic switch SW1 is installed, single-chip microprocessor MCU connects front-end equipment ID and bus communication protocol selector switch by its I/OS interface, connect the multiple alarm interface by its I/OS interface, this single-chip microprocessor MCU also connects an interrupt request singal line that is connected with the multiple alarm interface by its INTX interface.
Single-chip microprocessor MCU adopts the chip with sleep mode in the present embodiment, and described electronic switch adopts integrated analog switch or tri-state gate circuit.
Each functions of components of the present utility model is:
Single-chip microprocessor MCU: most of popular MCU can be competent at, and recommend to use the MCU with sleep mode.
The I/O interface of " front-end equipment ID and bus protocol selector switch " and MCU: it provides information such as the employed communications protocol of ID address, bus of the video monitoring front end equipment of being controlled and baud rate for controller, in other words, alarm linkage controller unit correspondence an equipment among the video monitoring front end equipment group.
" multiple alarm interface ": be used for receiving the multiple alarm contact signal from the alarm controller main frame, contact signal can be switching value signals such as passive contact, active contact, and the quantity of input contact is determined by actual needs." multiple alarm interface " can also support an interrupt request singal line (AlarmInterrupt) usually, and when the alert if of the individual input arbitrarily in the remote alarm interface was set up, interrupt request was effective.
" RS485 bus transceiver (1) ": this bus interface is as the bus input of this controller, and it is relatively near rear end equipment on being electrically connected.
" RS485 bus transceiver (2) ": this bus interface is as the bus output of this controller, and it is relatively near front-end equipment on being electrically connected.Generally, this transceiver is the normal enabled state that sends.
Principle of work of the present utility model is:
SW1 among Fig. 1 and SW2 are an electronic switch, and its steering logic is synchronous with the transmitting-receiving Enable Pin of " RS485 bus transceiver (1) ", and under the situation, SW1 can omit (the normal short-circuit condition of switch ends) usually.
If " multiple alarm interface " sets up (alarm free) without any trigger condition, then state of a control is just as Fig. 1.At this moment, MCU can be dormant state, and SW1 is ON and SW2 is OFF." RS485 bus transceiver (1) " receives and enables.As seen, the serial communication controlling signal of bus input is directly delivered to the TXD2 end of " RS485 bus transceiver (2) " by " RS485 bus transceiver (1) " RXD1 output, and serial control signal is intactly delivered to output end of main.
Trigger condition establishment arbitrarily in " in case multiple alarm interface ", then interrupt request singal line (AlarmInterrupt) wakes MCU up, enters the alarm linkage control program immediately.At first MCU with " RS485 bus transceiver (1) " be changed to receive forbid, SW1 is changed to OFF and SW2 is changed to ON, blocked from the serial signal of bus input and opened passage (seizing bus) simultaneously from the UART-TXD of MCU to TXD2 to the passage of " RS485 bus transceiver (2) " TXD2; Information such as the alert if numbering of MCU basis " multiple alarm interface " and the ID of Be Controlled front-end equipment, bus protocol are sent certain alarm linkage control signal and are outputed to bus through " RS485 bus transceiver (2) ".After event handling finished, alarm controller returned to the state of a control of Fig. 1.
In real system, may need a plurality of controller devices could form complete system, can realize that according to Fig. 2 actual system connects.Among Fig. 2, dotted line the right is for monitoring in the main control room of rear end, about the connection of bus preemptive type alarm linkage linkage controller by anti-.The dotted line left side is the video monitoring front end equipment group, and they can be made up of high speed ball-shaped cloud platform video camera, The Cloud Terrace, integrated camera etc., are the passing node equipments of Serial Control bus.Bus preemptive type alarm linkage linkage controller can and insert in the bus by figure three mode cascades.
Each bus preemptive type alarm linkage linkage controller has unique ID, and corresponding with a device id among the video monitoring front end equipment group.This connected mode has determined the priority of controller: near from front-end equipment, and the priority height, on the contrary then low.
The warning initial conditions of a plurality of bus preemptive type alarm linkage linkage controllers can be shared, to constitute steering logic more flexibly.