Data acquisition gateway based on Energy Management Contract
Technical field
The utility model relates to a kind of equipment that energy unit energy consumption data remote auto is gathered and transmitted based on the data acquisition gateway of Energy Management Contract.
Background technology
Along with the attention of the Chinese government to energy-conserving and environment-protective and green economy, each enterprises and institutions are the work of the energy-saving and emission-reduction arrangement of bringing into schedule, in view of the Energy Management Contract pattern does not have input, advantage that risk is little for energy unit, increasing energy unit is given reducing energy consumption work the Energy Management Contract company of specialty.But traditional manual metering and statistical report form can't guarantee the real-time and the consistency of energy unit energy consumption data, are easy to generate economic dispute when contract execution.
Summary of the invention
The purpose of this utility model is to provide a kind of data acquisition gateway based on Energy Management Contract at above-mentioned weak point, the energy consumption data remote live of energy unit is sent to the data center of Energy Management Contract company, finish energy consumption data day, the clearing of Month And Year degree and the energy auditing form of energy unit, ensured the smooth execution of energy conservation contract.
Take following technical scheme to realize based on the data acquisition gateway of Energy Management Contract: the data acquisition gateway based on Energy Management Contract has data acquisition circuit, the communications protocol change-over circuit, the TCP/IP interface, 16 mouthfuls of RS-485 communication interfaces and RS-232 interface module, described 16 mouthfuls of RS-485 communication interfaces are 16 485 communication interfaces, can connect 16 energy consumption measurement equipment, the communication protocol difference of each energy consumption measurement equipment, this gateway sends different data acquisition instructions respectively according to the communication protocol of each energy consumption measurement equipment, and with storage to gateway.Being provided with of communication protocol can and be provided with the software input by TCP/IP interface or RS-232 interface.TCP/IP interface or RS-232 interface can connect a communication equipment with same-interface, with the order of corresponding host computer the data that collect are transmitted up.
Described RS-232 interface module adopts 232 interface chip U22, data acquisition circuit adopts the ARM2483 data acquisition circuit, gather 16 road RS485 energy consumption datas, data acquisition circuit has 485 interface chip U1 ~ U16, analog switch U17 ~ U20, single-chip microcomputer U21,232 interface chip U22,485 interface chip U23 and Ethernet interface chip U24.The RXD end of 485 interface chip U1 ~ U16, TXD end, RE end and DE end are connected with single-chip microcomputer U21 by analog switch U17 ~ U20 respectively, and 4 switches of analog switch U17 ~ U20 select control line to be connected with P0.4 ~ P0.7 end of single-chip microcomputer U21 respectively.Single-chip microcomputer U21 selects one by the value of P0.4 ~ P0.7 end output in 485 interface chip U1 ~ U16, when the value of P0.4 ~ P0.7 end output is 0 ~ 15, select 485 interface chip U1 ~ U16 respectively, make single-chip microcomputer U21 use the mode of scanning to gather 16 road serial datas thus.The RXD1 end of single-chip microcomputer U21 links to each other with the T end with the R end of 232 interface chip U22 respectively with the TXD1 end, make thus with the communication equipment with 232 interfaces to be connected, single-chip microcomputer U21 is connected with the communication equipment with 232 interfaces, 485 interfaces and Ethernet interface with Ethernet interface chip U24 by 232 interface chip U22,485 interface chip U23.
The ADM2483 chip that described interface chip U1 ~ U16 adopts band to isolate.
Described analog switch U17 ~ U20 adopts 16 to select 1 analog switch CD4067B.
Described single-chip microcomputer U21 adopts the LPC2368 single-chip microcomputer.
Described 232 interface chip U22 adopt the SP3232 interface chip.
Described communications protocol change-over circuit is to realize by the internal processes software of LPC2368 single-chip microcomputer.By to the LPC2368 single-chip microcomputer, read the data of analog switch CD4067B according to the communications protocol of detecting instrument, again export the RJ45 network interface of Ethernet interface chip U24 behind the resolution data according to upper machine communication agreement (for example TCP/IP) assembling data to, finish the communications protocol translation function.
The FLASH memory of described data acquisition circuit expansion is 256M to the maximum, support power down storage, one month historical data be can deposit,, SOCKET connection, authority classification and WEB query function supported with the data communication employing MODBUS RTU pattern of host computer or data center.
Simultaneously difference is carried out data acquisition with metering device that can kind based on the data acquisition gateway support of Energy Management Contract, comprise electric energy meter (containing single-phase electric energy meter, three-phase electric energy meter, multifunctional electric energy meter), water meter, gas meter, flow meter, heat (cold) scale etc.Data acquisition unit uses low-power-consumption embedded system, and power is less than 10W, operating voltage: AC85V ~ 260V, working temperature :-10 ℃ ~ 50 ℃.
The utility model is based on the advantage of the data acquisition gateway of Energy Management Contract: the mode that adopts analog switch dynamically to switch, saved the microcontroller serial port resource, and reduced cost.The agreement of energy consumption measurement equipment is provided with the mode that adopts software setting, has increased the adaptability of this gateway.
Description of drawings
The utility model is described in further detail below with reference to accompanying drawing:
Fig. 1 is the functional schematic block diagram of the utility model based on the data acquisition gateway of Energy Management Contract.
Fig. 2 is the application principle figure of the utility model based on the data acquisition gateway of Energy Management Contract.
Fig. 3 is the circuit theory diagrams of the utility model based on the data acquisition gateway of Energy Management Contract.
Embodiment
With reference to accompanying drawing 1 ~ 3, the utility model has data acquisition circuit, communications protocol change-over circuit, TCP/IP interface, 16 mouthfuls of RS-485 communication interfaces and RS-232 interface module based on the data acquisition gateway of Energy Management Contract, described 16 mouthfuls of RS-485 communication interfaces are 16 485 communication interfaces, can connect 16 energy consumption measurement equipment, the communication protocol difference of each energy consumption measurement equipment, this gateway sends different data acquisition instructions respectively according to the communication protocol of each energy consumption measurement equipment, and with storage to gateway.Being provided with of communication protocol can and be provided with the software input by TCP/IP interface or RS-232 interface.TCP/IP interface or RS-232 interface can connect a communication equipment with same-interface, with the order of corresponding host computer the data that collect are transmitted up.
Described RS-232 interface module adopts 232 interface chip U22, data acquisition circuit adopts the ARM2483 data acquisition circuit, gather 16 road RS485 energy consumption datas, data acquisition circuit has 485 interface chip U1 ~ U16, analog switch U17 ~ U20, single-chip microcomputer U21,232 interface chip U22,485 interface chip U23 and Ethernet interface chip U24.The RXD end of 485 interface chip U1 ~ U16, TXD end, RE end and DE end are connected with single-chip microcomputer U21 by analog switch U17 ~ U20 respectively, and 4 switches of analog switch U17 ~ U20 select control line to be connected with P0.4 ~ P0.7 end of single-chip microcomputer U21 respectively.Single-chip microcomputer U21 selects one by the value of P0.4 ~ P0.7 end output in 485 interface chip U1 ~ U16, when the value of P0.4 ~ P0.7 end output is 0 ~ 15, select 485 interface chip U1 ~ U16 respectively, make single-chip microcomputer U21 use the mode of scanning to gather 16 road serial datas thus.The RXD1 end of single-chip microcomputer U21 links to each other with the T end with the R end of 232 interface chip U22 respectively with the TXD1 end, make thus with the communication equipment with 232 interfaces to be connected, single-chip microcomputer U21 is connected with the communication equipment with 232 interfaces, 485 interfaces and Ethernet (RJ45 network) interface with Ethernet interface chip U24 by 232 interface chip U22,485 interface chip U23.
The ADM2483 chip that described interface chip U1 ~ U16 adopts band to isolate.
Described analog switch U17 ~ U20 adopts 16 to select 1 analog switch CD4067B.
Described single-chip microcomputer U21 adopts the LPC2368 single-chip microcomputer.
Described 232 interface chip U22 adopt the SP3232 interface chip.
Described communications protocol change-over circuit is to realize by the internal processes software of LPC2368 single-chip microcomputer.By to the LPC2368 single-chip microcomputer, read the data of analog switch CD4067B according to the communications protocol of detecting instrument, again export the RJ45 network interface of Ethernet interface chip U24 behind the resolution data according to upper machine communication agreement (for example TCP/IP) assembling data to, finish the communications protocol translation function.
The FLASH memory of described data acquisition circuit expansion is 256M to the maximum, support power down storage, one month historical data be can deposit,, SOCKET connection, authority classification and WEB query function supported with the data communication employing MODBUS RTU pattern of host computer or data center.
Simultaneously difference is carried out data acquisition with metering device that can kind based on the data acquisition gateway support of Energy Management Contract, comprise electric energy meter (containing single-phase electric energy meter, three-phase electric energy meter, multifunctional electric energy meter), water meter, gas meter, flow meter, heat (cold) scale etc.