Summary of the invention
The problem that the present invention need solve provide a kind of image data accurately and timely, processing power is strong, possess the RTU that plurality of communication schemes is selected.
To achieve these goals, the present invention designs a kind of RTU, comprise primary processor and the coprocessor that is connected with primary processor, described primary processor is connected with Ethernet interface with FM wireless communication interface, GPRS communication interface, GSM communication interface, CDMA communication interface, and described coprocessor is connected with analog acquisition circuit, switching value input/output circuitry, pulsed quantity input/output circuitry respectively.
Described primary processor adopts the microprocessor of ARM9 kernel, and model is AT91RM9200.
Described coprocessor also adopts the microprocessor of ARM9 kernel, and model is AT91RM9200.
Described analog acquisition circuit comprises electronic switch chip and analog to digital converter, and described electronic switch chip is connected with coprocessor respectively with analog to digital converter.
The model of described electronic switch chip is that ADG711 and analog to digital converter model are ADS7816.
Described switching value input/output circuitry is made up of photoelectrical coupler U1, U2 and diode D1, and the negative electrode of diode D1 is connected with the input end of photoelectrical coupler U1, and the control end of photoelectrical coupler U1, U2 is connected with coprocessor respectively.
The model of described photoelectrical coupler U1 is ACPL214, and the model of photoelectrical coupler U2 is ASSRI228.
RTU of the present invention has following beneficial effect:
(1) can gather types of signals by analog acquisition circuit, switching value input/output circuitry, pulsed quantity input/output circuitry, configurable analog quantity input, analog quantity output, switching value input, switching value output, pulsed quantity are imported 5 types signalling channel;
(2) can pass through FM wireless communication interface, GPRS communication interface, GSM communication interface, CDMA communication interface and Ethernet interface etc. and realize that internet or wireless network realize data realization RS232, RS485, wireless station, remote dial communication, satellite communication, special line communication with control center, the user can select from multiple communication modes kind or makes up according to environment for use; Simultaneously, primary processor of the present invention can also be gathered required data with field device communicating with various standard fieldbus (as Profibus-DP, Interbus, DeviceNet, ControlNet, CANOpen, AS-I) and industry-standard protocol (as MODBUS);
(3) coprocessor data storage that analog acquisition circuit, switching value input/output circuitry, pulsed quantity input/output circuitry are collected, and carry out control corresponding according to corresponding triggering condition;
(4) reserve man-machine interface and Keypad interface, support to use development platform to carry out configuration and secondary development;
(5) can expand multiple different power supply mode is provided,, have battery saving mode, and possess battery charge and reserve function as power supplies such as AC power, direct supply, solar battery power, accumulators.
Embodiment
For the ease of those skilled in the art's understanding, structural principle of the present invention is described in further detail below in conjunction with specific embodiment and accompanying drawing:
As shown in Figure 1, a kind of RTU, it comprises primary processor and the coprocessor that is connected with primary processor, described primary processor is connected with Ethernet interface with FM wireless communication interface, GPRS communication interface, GSM communication interface, CDMA communication interface, and described coprocessor is connected with analog acquisition circuit, switching value input/output circuitry, pulsed quantity input/output circuitry respectively.
Primary processor adopts the microprocessor of ARM9 kernel among the present invention, and model is AT91RM9200.Described coprocessor also adopts the microprocessor of ARM9 kernel, and model is AT91RM9200.
As shown in Figure 2, the analog acquisition circuit comprises electronic switch chip and analog to digital converter, and described electronic switch chip is connected with coprocessor respectively with analog to digital converter.The model of described electronic switch chip is that ADG711 and analog to digital converter model are ADS7816.Concrete implementation procedure is as follows: at first the PIO mouth line by microprocessor AT91RM9200 starts the corresponding sampling channel of ADG711 gating, start ADS7816 by the NPCS0 pin SPI that walks Peripheral Interface again and carry out the A/D conversion, behind the EOC data are read in the SPI_RDR register, carry out corresponding stores processor then.Adopt ADS7816 can realize the measurement of multiple voltage scope by changing reference voltage, designed the selection of multiple measurement range, 1V~5V (can 250 precision resistances in parallel realizing the measurement of 4mA~20mA electric current) and 0mV~100mV, 0mV~200mV (output signal of the multiple thermopair of can sampling), 0mV~400mV measures the millivolt signal of other types.
According to the various demand in scene, the part of data acquisition of system mainly comprises: to the collection of various non electrical quantities such as pressure, flow, liquid level, temperature, mainly be converted to 4~20mA by non electrical quantity, the collection of the standard signal analog quantitys such as bold and unconstrained vor signal of 1V~5V and thermopair also has similar some integrated flow pulsed quantity signal.The collection of switching value signals such as equipment running status and have digital interface such as the collection of the digital signal of the instrument and meter of RS485 (agreements such as Profibus-DP, Modbus).Data acquisition of the present invention (comprising analog quantity, switching value, pulsed quantity, digital signal) circuit, analog quantity output, switching value output control circuit and tracking telecommunication circuit (comprising ethernet communication, various communication interface circuit etc.).The various analog quantitys of data acquisition circuit collection site (4mA~20mA, the various signals of 1V~5V), switching value, pulsed quantity and the digital signal by various communication interfaces.Regulating and controlling field apparatus analog quantity output (as aperture, frequency control).The switching value output circuit is used to control on-the-spot as the start and stop of equipment, the open closed of switch etc.
As shown in Figure 3, described switching value input/output circuitry is by photoelectrical coupler U1, the model of photoelectrical coupler U1 is that the model of ACPL214, photoelectrical coupler U2 is that ASSRI228 and diode D1 form, the negative electrode of diode D1 is connected with the input end of photoelectrical coupler U1, and the control end of photoelectrical coupler U1, U2 is connected with coprocessor respectively.Signals such as pass, manual control switching signal etc.The switching value input signal is isolated input by ACPL21421 spare, can isolated high voltage prevents the damage to circuit, and CPU judges the switching of switching value input by the high-low level of scanning PIO pin.The switching value output signal is the work of startup/stop and the warning device of opertaing device etc., and the high or low control signal of CPU output drives ASSR1228 photoelectric coupler isolation rear drive high voltage control circuit.Microprocessor parallel I/O (PIO) controller with as the multiplexing peripheral hardware I/O port of the I/O of conventional data line, to adapt to the configuration of device to greatest extent.Including an input on every Tiaokou line changes interruption, opens leakage ability and programmable pull-up resistance.
RTU of the present invention also includes RTU the hardware time circuit is set, adopt the special clock chip, accurate clock signal is provided, comprise year, month, day, can produce second or divide regularly and interrupt, guarantee accurately timing controlled, when realizing that Surveillance center carries out the GPS school to all long-range RTU.
Non-volatile data memory serves is deposited all working parameter, real-time measuring data, real-time status and the failure message of RTU, does not lose with safeguards system information under the situation of power down or communication disruption, and can continue operate as normal after power up is normal.
Keyboard-display circuit is reserved man-machine interface and Keypad interface, can realize the online modification and the inquiry of RTU running parameter, measurement data, status information etc., still can realize the field data monitoring by on-the-spot man-machine picture.
RTU (RTU) is based on the software design on the platform base of microprocessor and (SuSE) Linux OS.The RTU software systems realize finishing under built-in Linux operating system.Embedded system is application-centered, based on computer technology, but and software and hardware be cutting, be applicable to the dedicated computer system that function, reliability, cost, volume, power consumption etc. is had strict demand.Linux has many characteristics, and such as hardware supported widely, interior effect is stable, the exploitation source code, software is abundant, outstanding developing instrument, perfect network service and file management mechanism etc., it is very suitable that its these excellent characteristics make it use in embedded system.Embedded system is in the minimum reduced form system that satisfies on the practical application basis, the various tasks of moving in the embedded data acquisition system are various and the requirement of part real-time is high, the aboundresources that embedded microprocessor need be managed, these have all determined to introduce operating system on embedded platform.
The mentality of designing of software is the thought that is upwards designed by bottom, comprises the design of driver, the transplanting of operating system and the design of application program.Driver comprises: the driver of hardware interfaces such as Ethernet interface, USB, SPI, UART interface, 12C.Modular mentality of designing is adopted in the design of application program, as data acquisition module, communication module, various algoritic module.Unit's wound. the RTU design object is to be designed to a kind of configurable RTU, and engineering integrator can carry out secondary development on the basis of our development platform.So, specialized designs the configuration district, can realize the selection of various algorithms and the configuration of data acquisition modes, communication mode and agreement.
In a word, RTU RTU of the present invention be a kind of configurable, can gather polytype signal, multiple communication mode, flexible configuration, novel remote detection and control terminal that extensibility is strong, industrial or agricultural every profession and trade and Municipal Administration Public Utilities department can be widely used in, requirements of different users can be satisfied.
Foregoing is preferred embodiment of the present invention only, is not to be used to limit embodiment of the present invention, and those skilled in the art are according to design of the present invention, and appropriate adaptation of being made or modification all should be within protection scope of the present invention.