A kind of MODBUS agreement alarm communication system module
Technical field
The utility model relates to a kind of MODBUS agreement alarm communication system module; Utilize single-chip microcomputer to be core; After the CK series alarm host machine communication data that U.S. Honeywell Inc. is produced carries out protocol conversion, the MODBUS industrial bus that meets international standard protocol interface is provided.Be mainly used in safety technological guard fields such as exploitation warning net centralized management platform, warning electronic chart, alarm linkage control device.
Background technology
At present; In the domestic security protection market; The CK238 of U.S.'s Honeywell production, CK316 series alarm host machine are owing to possessing good stable property, using simple and cheap and extremely client's favor, and occupation rate of market is high, and these alarm host machine are mainly used in the phone network alarm.But along with the continuous expansion of range of application, these alarm host machine are difficult to satisfy the new demand that the client constantly proposes.How expansion is connected with PC and realizes that electronic chart shows, the RS485 bus is reported to the police, the TCP/IP network remote is reported to the police and alarm linkage video recording etc. is netted warning functions more and paid close attention to by industry on the basis of CK series telephone call.In order to expand the range of application of a little row telephone call of CK main frame, designed the utility model MODBUS warning agreement communication module.Through MODBUS warning agreement communication module, can expand to be connected and realize that electronic chart shows, realizes the RS485 bus is reported to the police, the TCP/IP network remote is reported to the police and many nets such as alarm linkage video recording are reported to the police centralized management functions with the PC computer.
The utility model content
In order to overcome the deficiency that above technology exists, the utility model provides a kind of MODBUS agreement alarm communication system module.
The purpose of the utility model is to provide a kind of MODBUS agreement alarm communication system module that is used for the protocol conversion of Honeywell CK series telephone call.
The technical scheme of the utility model is: a kind of MODBUS agreement alarm communication system module; Comprise MODBUS agreement alarm communication system interface, it is characterized in that: also comprise alarm host machine communication interface, serial communication interface, Wei root 26 protocol interfaces, parallel data output interface, I2C communication interface, serial LCD interface, BCD keyboard interface.
Said MODBUS agreement alarm communication system inside modules circuit is made up of 20PIN interface row pin, MCU monolithic microcomputer kernel circuit, direct current 12V commentaries on classics direct current 5V circuit, alarm host machine communication interface circuit.
Said 20PIN interface row pin is connected to all functions pin of module on JP1, the JP2 row pin, for peripheral circuit uses.
Said MCU monolithic microcomputer kernel circuit is made up of C1, C2, R1, R2, R3, IC1 electronic component, and IC1 uses the two serial ports single-chip microcomputer STC12C5A60S2 of compatible 51 series of enhancement mode, and C1, R1 form the high level reset circuit, and R3, R4 form level sensitive circuit.
Said direct current 12V changes direct current 5V circuit and is made up of C3, C4, C5, C6, IC2 electronic component; IC2 selects LM7805 linear Integrated integrated regulator for use, can convert direct current 12V to the 5V source of stable pressure; The CK alarm host machine provides direct current 12V power supply, after voltage stabilizing, to single-chip microcomputer 5V is provided stabilized voltage power supply, through the 1 pin output confession peripheral circuit use of JP1.
Main and the CK alarm host machine keyboard interface realization asynchronous duplex communication of said alarm host machine communication interface circuit, said alarm host machine communication interface circuit is made up of data transmit circuit and data receiver circuit two parts.
Said data transmit circuit is made up of R5, R6, R7, R8, R9, R10, Q1, Q2, D1, D2 electronic component, and data are sent 42 pin of signal TX1 from single-chip microcomputer IC1, by the 3 pin output of Data through JP2.
Said data receiver circuit is made up of R11, R12, R13, R14, R15, Q3, IC3 electronic component; IC3 selects 74HCT1G14GV for use; It is 1 Schmidt's shaping pulse digital integrated circuit; The signal Data that sends from the CK alarm host machine gets into schmidt shaping circuit behind R10, R12, be connected to 43 pin of single-chip microcomputer IC1 after reverse by Q3, forms complete transmitting and receiving data interface.
The utility model beneficial effect:, can expand to be connected and realize that electronic chart shows, realizes the RS485 bus is reported to the police, the TCP/IP network remote is reported to the police and many nets such as alarm linkage video recording are reported to the police centralized management effects with the PC computer through MODBUS agreement alarm communication system module.
Description of drawings
For the technology contents, the structural feature that specify the utility model MODBUS agreement alarm communication system module, the utility model is further specified below in conjunction with accompanying drawing and embodiment.
Fig. 1 is the utility model MODBUS agreement alarm communication system functions of modules interface sketch map;
Fig. 2 is the utility model MODBUS agreement alarm communication system inside modules circuit theory diagrams;
Fig. 3 is the utility model MODBUS agreement alarm communication system module package pin sketch map;
Fig. 4 is a MODBUS agreement alarm communication system module package size front view in the utility model.
Fig. 5 is a MODBUS agreement alarm communication system module package size side view in the utility model.
Shown in the figure: 1,3:20PIN interface row pin, 2:MCU monolithic microcomputer kernel circuit, 4: data transmit circuit, 5: direct current 12V changes direct current 5V circuit; 6: data receiver circuit, 7: alarm host machine communication interface circuit, 8: alarm host machine communication interface, 9: serial communication interface; 10: Wei root 26 protocol interfaces, 11: parallel data output interface, 12:I2C communication interface; 13: serial LCD display interface, 14:BCD keyboard interface, 15. pins.
Embodiment
Shown in Figure 1, MODBUS agreement alarm communication system module comprises MODBUS agreement alarm communication system interface, and module also provides 7 interfaces.Be alarm host machine communication interface 8, serial communication interface (MODBUS agreement) 9; Wei root 26 protocol interfaces, parallel data output interface, I2C communication interface, serial LCD interface, BCD keyboard interface.These interfaces have solidified interface drive program by 8 single-chip microcomputer coordinated managements of a slice technical grade in single-chip microcomputer.These interfaces provide very big convenience for the expanded function circuit of developing based on CK series telephone call main frame.
As shown in Figure 2; MODBUS agreement alarm communication system inside modules hardware circuit is by 20PIN interface row pin 1,3, and MCU monolithic microcomputer kernel circuit 2, direct current 12V change direct current 5V circuit 5; Alarm host machine communication interface circuit 7 four parts are formed, and introduce the composition of each several part circuit below in detail:
One, two 20PIN interfaces of 1,3 expressions row pins among Fig. 2 are connected to all functions pin of module on JP1, the JP2 row pin, are that peripheral circuit uses.The pin numbering that two 20PIN are detailed is as shown in Figure 3, its title, function are seen table-1:
Show-1: two pin numberings that 20PIN is detailed, title, function
Two, MCU monolithic microcomputer kernel circuit 2 is cores of MODBUS agreement alarm communication system module hardware circuit, and this circuit is made up of C1, C2, R1, R2, R3, IC1 electronic component.IC1 uses the two serial ports single-chip microcomputer STC12C5A60S2 of compatible 51 series of enhancement mode; C1, R1 form the high level reset circuit; R3, R4 form level sensitive circuit; In order to reduce the package dimension of module, the crystal oscillator pin XTAL1 of single-chip microcomputer, 11,12 pin of XTAL2 process JP1 are drawn external crystal oscillator.Module management program and interface drive program have been solidified in the single-chip microcomputer, to realize MODBUS agreement alarm communication system; 26 data acquisitions of Wei root; Parallel data output; The I2C communication; Serial LCD communication; BCD keyboard communication function.
Three, direct current 12V commentaries on classics direct current 5V circuit 5 is made up of C3, C4, C5, C6, IC2 electronic component.IC2 selects LM7805 linear Integrated integrated regulator for use, can convert direct current 12V to the 5V source of stable pressure.The CK alarm host machine provides direct current 12V power supply, after voltage stabilizing, to single-chip microcomputer 5V is provided stabilized voltage power supply, and the 1 pin output through JP1 simultaneously supplies peripheral circuit to use.
Four, alarm host machine communication interface circuit 7 main and CK alarm host machine keyboard interface realization asynchronous duplex communications; This circuit comprises data transmit circuit 4 and data receiver circuit 5 two parts; Data transmit circuit 4 is made up of R5, R6, R7, R8, R9, R10, Q1, Q2, D1, D2 electronic component, and data are sent 42 pin of signal TX1 from single-chip microcomputer IC1.By the 3 pin output of Data through JP2; Data receiver circuit 5 is made up of R11, R12, R13, R14, R15, Q3, IC3 electronic component; IC3 selects 74HCT1G14GV for use; It is 1 Schmidt's shaping pulse digital integrated circuit; The signal Data that sends from the CK alarm host machine gets into schmidt shaping circuit behind R10, R12, be connected to 43 pin of single-chip microcomputer IC1 after reverse by Q3, forms complete transmitting and receiving data interface.
As shown in Figure 3: alarm host machine communication interface 8 connects CK alarm host machine keyboard communication port, and (GND), module is supplied power by alarm host machine DC12V for V+12, Data; Wei root 26 protocol interfaces 10 can connect compatible Wei root 26 protocol of I D card card reading module, realize the management of ID card, like the ID card function of withdrawing a garrison; Parallel data output interface 11 exportable 16 road alarm level signals are normal: high level, report to the police: low level, can realize following synchronously alarm signal output, be used for alarm linkage control; Serial communication interface 9 is RS232 interfaces of Transistor-Transistor Logic level, adopts the MODBUS industrial bus agreement that meets international standard to carry out communication, realizes network remote communication and centralized management.The I2C communication interface can connect the eeprom chip (AT24C256) and the clock chip (DS3231) of I2C agreement simultaneously, and the storage of clock and field data is provided; Serial LCD interface 13 can connect the serial LCD display (COG1602A) of I2C agreement; But 4X4 BCD encoded keyboard or remote control receiver module that BCD keyboard interface 14 connecting bands interrupt are realized keyboard management or telemanagement function.
The utility model MODBUS agreement alarm communication system module is a core with 8 51 single-chip microcomputers; The integrated peripheral circuit that is complementary with CK alarm host machine keyboard communication interface; All communication interfaces are connected to row's pin of two 20PIN; Be packaged into a 40PIN module; Like Fig. 4, shown in 5, its length of MODBUS agreement alarm communication system module package size is that 52 millimeters, width are that 25 millimeters, thickness are that 12 millimeters, two array of pins, 15 spacings are that 20 millimeters, pin one 5 diameters are that 0.6 millimeter, adjacent two pin one 5 spacings are 2.54 millimeters, and pin one 5 length are 6 millimeters.Software is developed with C51, and the integrated software driver and the MODBUS agreement of 7 interfaces is solidificated among the FLASH of single-chip microcomputer.
The above disclosed preferred embodiment that is merely the utility model can not limit the interest field of the utility model certainly with this, so according to the equivalent variations that the utility model claim is done, still belong to the scope that the utility model is contained.