Summary of the invention
The objective of the invention is to overcome the defective and the deficiency of prior art, a kind of self-reacting device of realizing power equipment A/D translation-protocol is provided, principle of the present invention adopts the SOC Embedded System Structure based on ARM+DSP, comprise the hardware adaptations platform, systems soft ware platform and application software, adopt the TF card memory as data server, set up database, the bus of different agreement realizes mutual protocol conversion by protocol analysis module accesses database, communication between data sharing and the networks of different protocol, carry general-purpose interface collection site power equipment and have the data of standard communication protocol equipment, running status to on-the-spot power equipment is back with various buses such as RS 485 by the A/D conversion, CAN, the frame structure of the data of transmission such as industrial bus is resolved, producer in the recognition data frame, model code, automatically call in the database transfer of data translation-protocol of each corresponding in agreement pond producer, data are changed into the data of the ICP/IP protocol of standard, again data are sent to data cache module and carry out buffer memory, call in order to outer remote.The invention of this device solves problems such as existing power controller switching equipment procotol is many, complex interfaces, can realize the conversion between existing most of agreement, provide comprehensive data transaction scheme from physical layer, data link layer to application layer, make the final application layer of electric power enterprise have only a single procotol, make things convenient for the data interchange of electric power enterprise, reduce application cost.
For realizing this present invention's purpose, the technical scheme of employing is as follows:
A kind of self-reacting device of realizing power equipment A/D translation-protocol, employing is based on the SOC Embedded System Structure of ARM+DSP, comprise hardware adaptations platform, systems soft ware platform and application software, this device is made up of following three parts: the SOC microprocessor module, the protocol data library module, the protocol analysis module.This device adopts the TF card memory as the protocol data library module, the bus of different agreement carries general-purpose interface collection site power equipment and has the data of standard communication protocol equipment by the communication between the realization of protocol analysis module accesses database mutual protocol conversion, data sharing and the networks of different protocol.
Described SOC microprocessor module also comprises microprocessor, RAM memory, clock circuit, reset circuit;
Described protocol data library module comprises protocol data library unit and Date Conversion Unit;
Described protocol data library unit the is built-in transfer of data translation-protocol of each producer calls the data of transmission such as resolving RS485, CAN bus, industrial bus in order to data resolution module;
Data after described Date Conversion Unit is resolved the data parsing module are carried out the ICP/IP protocol conversion, call in order to external interface;
Described protocol analysis module comprises protocol analysis unit and data buffer storage unit;
Resolve with the frame structure of the data of transmission such as various buses such as RS 485, CAN, industrial bus by A/D conversion back the running status of on-the-spot power equipment described protocol analysis unit, producer in the recognition data frame, model code, the transfer of data translation-protocol of each corresponding producer in the agreement pond in the automatic invocation protocol database module, output to data buffer storage unit again, call in order to data conversion module; Multitask mechanism is in real time also introduced in the protocol analysis unit, and operating system is that every kind of agreement distributed a real-time task, bears the control scheduling of the parsing of different agreement data message.
Described Date Conversion Unit is as the metadata cache between the data conversion module in data resolution module and the protocol data library module.
The self-reacting device of described power equipment A/D translation-protocol, the hardware adaptations platform adopts modular to divide, primary module is the SOC module, other separation modules comprise RS485 interface module, CAN bus interface module, industrial bus interface module, protocol analysis module, TF card storage module and data outputting module, intermodule communication using system bus interface is wherein used separately or a plurality of use with a kind of separation module.
The self-reacting device that described power equipment A/D conversion is assisted, it is characterized in that: the systems soft ware platform adopts operating system WINDOWSCE, driver under the WINDOWSCE comprises that CAN drives, network interface drives, the TF card drives, industrial bus, drives and file system.
The self-reacting device that described power equipment A/D conversion is assisted, concrete implementation step is as follows:
1) SOC microprocesser initialization;
2) WINDOWS CE operating system initialization;
3) read in CAN driving, RS-485 interface, the driving of industrial bus interface, network interface driving, the driving of TF card and file system;
4) difference initialization RS485 interface module, CAN bus interface module, industrial bus interface module,
5) start protocol database;
6) scanning RS485 interface, CAN bus interface, industrial bus interface are every type data and set up a real-time task in case receive legal text;
7) in the protocol analysis module invokes protocol Data Unit in the agreement pond transfer of data translation-protocol of each corresponding producer carry out data parsing, and deposit data in data buffer storage unit;
8) by Date Conversion Unit the data in the data buffer unit are changed, the normal data that converts TCP/IP to calls in order to external interface.
The self-reacting device that described power equipment A/D conversion is assisted is compared with the available data conversion equipment, has following outstanding characteristics and marked improvement:
1) the present invention proposes a general transformation model that is fit to most power distribution room power equipment producer popular protocol, can solve problems such as existing industry control network agreement is many, complex interfaces.
2) the present invention introduces multiple task operating system, sets up data respectively for every kind of different agreement and resolves convert task, makes a plurality of tasks can parallel running in single SOC system, has improved the efficient of protocol conversion.
3) the present invention can realize the conversion between existing most of agreement, provide comprehensive data transaction scheme from physical layer, data link layer to application layer, make the final application layer of enterprise have only a single procotol, make things convenient for the data interchange of enterprise, reduce application cost.
4) device provided by the invention can be widely used in the industries such as electric power, telecommunications, mine, building automatic, and in order to realize the remote centralized automatic data acquisition, the device translates that reaches the different communications protocol of an internal system is a kind of unified communications protocol.
Embodiment
The present invention is described further below in conjunction with accompanying drawing
Structural representation of the present invention is as shown in Figure 1: a kind of self-reacting device of realizing power equipment A/D translation-protocol comprises the SOC microprocessor module, protocol data library module, protocol analysis module.
Application schematic diagram of the present invention as shown in Figure 2, the hardware foundation of this device comprises that the SOC microprocessor module (comprises microprocessor, the RAM memory, clock circuit, reset circuit), TF card memory (protocol data library module), RS-485 interface module circuit, CAN bus interface module circuit, the industrial bus interface module, protocol analysis module, Ethernet interface etc.
SOC microprocessor module acp chip of the present invention is selected the AT91SAM9261 of atmel corp for use, this working frequency of chip is 200Mbps, integrated sdram controller and FLASH controller, 32M RAM memory and TF card memory have been extended out by system bus, connect Ethernet interface chip DM9000A by system bus, add corresponding Network Interface Module and set up the 10/100M mixed-media network modules mixed-media, connect RS-485 module, CAN bus module, industrial bus module by system bus.This apparatus system software platform adopts operating system WINDOWSCE, and the driver under the WINDOWSCE comprises CAN driving, network interface driving, the driving of TF card, industrial bus, driving and file system.
The protocol data library module of this invention comprises protocol data library unit and Date Conversion Unit.The protocol data library unit the is built-in transfer of data translation-protocol of each producer calls the data of transmission such as resolving RS485, CAN bus, industrial bus in order to data resolution module; Data after Date Conversion Unit is resolved the data parsing module are carried out the ICP/IP protocol conversion, call in order to external interface;
The protocol analysis module stores is in the TF card memory, this module comprises protocol analysis unit and data buffer storage unit, the protocol analysis unit can be resolved with the frame structure of the data of transmission such as various buses such as RS 485, CAN, industrial bus by A/D conversion back the running status of on-the-spot power equipment, producer in the recognition data frame, model code, the transfer of data translation-protocol of each corresponding producer in the agreement pond in the automatic invocation protocol database module, output to data buffer storage unit again, call in order to Date Conversion Unit; Multitask mechanism is in real time also introduced in the protocol analysis unit, and operating system is that every kind of agreement distributed a real-time task, bears the control scheduling of the parsing of different agreement data message.Date Conversion Unit is as the metadata cache between the data conversion module in data resolution module and the protocol data library module.
Power equipment A, power equipment B, the running status of power equipment C is back with various buses such as RS 485 by the A/D conversion, CAN, industrial bus etc. are transferred to the RS-485 interface module of this device, CAN bus interface module and industrial bus interface module, data parsing element circuit by data resolution module is resolved the frame structure of input data, producer in the recognition data frame, model code, automatically call in the database transfer of data translation-protocol of each corresponding in agreement pond producer, data are changed into the data of the ICP/IP protocol of standard, again data are sent to data cache module and carry out buffer memory, carry out far call by the 10M/100M mixed-media network modules mixed-media in order to external equipment.
Implementing procedure figure of the present invention as shown in Figure 3, the concrete implementation step of this example is as follows:
1) SOC microprocesser initialization;
2) WINDOWS CE operating system initialization;
3) read in the driving of CAN bus interface, RS-485 interface, industrial bus driving, network interface driving, the driving of TF card and file system;
4) difference initialization RS485 interface module, CAN bus interface module, industrial bus interface module;
5) start protocol database;
6) scanning RS485 interface, CAN bus interface, industrial bus interface are every type data and set up a real-time task in case receive legal text;
7) in the protocol analysis module invokes protocol Data Unit in the agreement pond transfer of data translation-protocol of each corresponding producer carry out data parsing, and deposit data in data buffer storage unit;
8) by Date Conversion Unit the data in the data buffer unit are changed, the normal data that converts TCP/IP to calls in order to external interface.