Industrial wireless network access industrial Ethernet, multi-protocol gateway of field bus and protocol conversion method
Technical Field The invention relates to a wireless network based on IEEE 802.15 .4a introduced into the industry and industrial Ethernet MODBUS/TCP PROFIBUS-DP multi-protocol gateway of field bus and protocol conversion method, relates to a plurality of communication protocol conversion, which belongs to the technical field of the field bus control. Technical background The field bus is used for producing the bottom communication network production site, which realizes microcomputerized spot measuring and controlling instrument or equipment of between two-way Serial multi-node digital communications, has real-time nature, the characteristics of high stability. Since 2000 published in International electrotechnical Commission (IEC) IEC61158 through the field bus standard, there is now more than ten kinds of on-the-spot bus standard. In the commercial field of the Ethernet is a common local area network, Internet TCP/IP a combination of the basis of the agreement, the network application in a standard in fact, this also enables the field bus control system through an Ethernet with the enterprise technonet integrated realize factory and monitoring integrated have become the trend of the times. The current field bus, industrial Ethernet technology is widely applied in industrial production, however, the complexity of the process industry, wired network is unable to meet the demand under severe environment, the wireless network technology for this provides a good solution. Therefore with the wired network of the wireless network of the mutual fusion of the heterogeneous network solutions to complex the control system is an inevitable trend in industrial monitoring and control of flow. Industrial wireless technology in by the United States Department of energy of the concept of 2002 year for the first time. Industrial wireless technology is an emerging device-oriented interaction information between the wireless communication technology, is suitable for the use in the environment of an industrial site with severe, with strong anti-interference capability, low energy consumption, and other technical features good real-time communication. The use of industrial automation field is concentrated in the WLAN/IEEE 802.11 wireless technology, BlueTooth/IEEE802 . 15.1 and ZigBee/IEEE 802.15 .4 three upper. In the research that in traditional IEEE 802.11 wireless communication network is designed office environment-oriented, its physical layer transmission mechanism, such as the WLAN DSSS (direct sequence spread spectrum) technology transfer rate is high, suitable for high-speed large data throughput of network application, the energy consumption is also high, the anti-interference is not good, is not suitable for many industrial control applications the use of nodes, must be in the physical layer, MAC layer protocol model improvements and, in order to provide a reliable real-time service. The Bluetooth FSSS mechanism (frequency-modulated spread spectrum) non-obvious improvement to the above-mentioned issues, and each cell is only the number of the node in the 7 a, can be suitable only for a certain special industrial application. IEEE 802.15.4 technology in the short distance, the small amount of data in the wireless sensor network application of the advantage of having very good prospects for and development, however, in harsh industrial environment in the procedure of application, network protocol need for certain improved, in order to reduce the space the reflection, the delay caused by frequency interference problems and packet dropping. At present a new generation of short distance wireless digital transmission technology is CSS (Chirp Spread Spectrum, broadband linear frequency-modulated spread spectrum, also referred to as chip spread spectrum), the FSK modulation method a, three kinds of ASK PSK and the advantages of the method, can be very effectively suppressed in the industrial environment noise and the multi-path interference. Each of its bit transmission IEEE 802.11 b power consumption is required of the 1/6, the Bluetooth 1/60. Its data transmission rate can reach 2Mbps, outdoor propagation loss distance of 900m, receiving sensitivity is -92dBm/Mbps. Therefore, already in the CSS-based IEEE 802.15 .4a 2006 years 10 month after the voting the IEEE is approved as the latest industry's wireless control-oriented one of the International communication standard (promulgated in 2007 years 7 months). Simply put, CSS technology combined with IEEE 802.15 .4 MAC protocol of rules, and networking to form improved IEEE 802.15 .4a, especially suitable for the industrial automation field device layer control network use, has the advantages of low cost, high speed, the advantages of low power consumption. Wang ping in 2006 Patent of utility model of years "based on EPA standard hand held wireless terminal" (application number 200620110844.2) with the wireless technology and EPA standards, a design based on EPA standard hand held wireless terminal, the 802.11b wireless network has introduced the industrial field. In LIU Jian 2008 the invention patents of years "multi-protocol industrial Ethernet adapter" (application number 200710171777.4) provides a multi-protocol industrial Ethernet adapter, as a kind of independent interface-product, is suitable for the communication node, in protocol converter and protocol gateway. However, in the published patents have not yet been in the literature involves on the introduced into the industrial wireless network 802.15.4a MODBUS/TCP industrial Ethernet, field bus PROFIBUS-DP method and device. Content of the invention The invention aims at the defects of the prior art, to provide a wireless network based on IEEE 802.15 .4a introduced into the industry and industrial Ethernet MODBUS/TCP FROFIBUS-DP multi-protocol gateway of field bus and protocol conversion method. The invention not only consider the current cable profibus/industrial Ethernet for the status quo, with the wireless network to the seamless connection of the cutting-edge technology. Aimed at achieving a consistent with demand for industrial real-time and open data communication cable/wireless isomerous control network gateway, to build a protocol conversion mechanism of the universality, so that the on-site with wired or wireless network interface of the sensor, transducer and actuator and other intelligent devices can be access unified within the framework of the system protocol, thus realize the real-time information including the bottom layer the basis of a comprehensive enterprise automation. The invention relates to a novel IEEE 802.15 .4a industrial wireless local area network standard, on the characteristic of the model can be described as-line network and ZigBee mixture of RFID, belongs to the ultra-wideband wireless technology ( Band Wide Ultra, UWB) a. Ultra-wideband wireless technology is a short distance, using 1GHz more bandwidth and the signal power spectral density is low the most advanced wireless communication technology. With PROFIBUS-DP EN50170 IEC1158-2 the European standard and in accordance with standard, designed for automation system and a device communication between the level to disperse designed I/O, distributed control system is mainly used for high-speed data transmission. In the OSI model is the physical layer, data link layer includes the basic function and the staying ROFIBUS-DP user interface. The extending MODBUS MODBUS/TCP is, protocol data link layer and the physical layer of the protocol based on Ethernet and standard TCP/IP, the definition of the application layer agreement MODBUS of the family of the other protocol universal. It defines a simple structure, and opening up and widely used transmission protocol, used for master-slave communication. Standard industrial wireless network IEEE 802.15 .4a, and field bus protocol PROFIBUS-DP MODBUS/TCP industrial Ethernet protocol in the physical layer adopts different norms, in the data link layer uses different medium access mode. In order to achieve in this intercommunication between three networks, multi-protocol gateway should not only meet three-protocol data link layer and the physical layer, but also can to different application layer definition of explanation, respectively. In order to realize the above-mentioned purpose, the idea of the invention is: Based on IEEE 802.15 .4a this invention to realize industrial wireless network access MODBUS/TCP industrial Ethernet, field bus PROFIBUS-DP multi-protocol gateway and protocol conversion method is that: it adopts AT91RM9200 microprocessor as a core control chip, this chip has integrated Ethernet controller, USB controller; through a flaring DM9161EP Ethernet physical layer interface chip, and prepared MODBUS/TCP main station program, thereby realizing a MODBUS/TCP main station module. The microprocessor through the internal bus with siemen SPC3 protocol chip is connected, from a station module PROFIBUS-DP. SPC3 protocol chip integrated PROFIBUS-DP all of the protocol, can be greatly reduced with the load of the microprocessor. The microprocessor through the SPI bus and NA1TR8 wireless chip is connected, and the preparation of the primary radio station, program, so as to realize a wireless master station module, the IEEE 802.15 .4a wireless network access. And through the entire system by the unified protocol conversion model, to achieve "two main from the station" protocol conversion between. In this protocol conversion model, IEEE 802.15 .4a wireless network and the industrial Ethernet MODBUS/TCP a main station, two existing at the same time, they can be independent finish the corresponding function, the peer-to-peer between the two. Each master station has its own polling cycle, system to each master station has established a data transcription area , the need for conversion of the data information from the node, are stored in the this data transcription area and one-to-one correspondence. The main station is in the polling of the site, or the acquired data is mapped to the data written in the corresponding transcription area. Through data transcription area and address conversion technology, enables the primary station can access the data at the slave each other, and between each two main station can be visited each other's data. The from the site PROFIBUS, two master station can access its data area. In order to make the system of the two master station (A network and B network) can be independently to visit all of the sub-node, the message is first necessary to carry out the address conversion, that is, in the network using gateway will B of the sub-node address into A network address. Open the gateway of the address conversion in a mapping area in the memory, is pre-stored each sub-node and the other network master station communication when the corresponding relationship of the address. When the received message of the need to change, in the region in the address conversion mapping comparison search, according to the mapping relationship to the target address corresponding to the network address B. From the station to the same operation (C network). Specific steps are as follows: (1) open in the microprocessor memory in a memory area used as the address conversion in a mapping area. (2) in accordance with network IEEE 802.15 .4a MODBUS/TCP network are respectively establish a structure array. (3) according to the network configuration parameters, the initialization structure array, the establishment of the relationship between the corresponding nodes of the network. (4) according to the present the address of the message, in the region in the address conversion mapping comparison search. (5) according to the mapping relationship, re-package the new target address. System for flow of program in which the: system of the microprocessor after the power up initialization, configuration parameter is read in, the wireless station module, main station module and PROFIBUS-DP MODBUS/TCP from the station module initialization, address conversion in a mapping area initialization, data initialization transcription area , to enter the data interaction with protocol conversion process. Thereafter, if the abnormal state does not occur, the system will always in a data interaction with protocol conversion state. Protocol conversion process is: First of all the main station to poll MODBUS/TCP network, if the message belongs to its own network, the message can be issued directly to operate. If the message belongs to the wireless protocol-site, address conversion is carried out. If the general message forwarding, the needed to carry out the analysis of the operation of the message. If the read operation, the protocol is directly read the data in the data output transcription area , return message response, sub-node polling cycle in the protocol when the data of the update output area; if it is a write operation, the data write data input transcription area , corresponding return message, the portion in the data will be written to the polling cycle of the agreement in correspondence node. If the emergency message forwarding, after the completion of address conversion, corresponding to the protocol of the sub-node returns to the direct operation, and updates data of the agreement transcription area. If the message belongs to the slave station PROFIBUS-DP, address conversion is carried out, directly from the station module RAM in double-port of the read-write operation, its data updating depends on the main station PROFBUS polling cycle of the same. The above-mentioned protocol conversion process at the main station MODBUS/TCP the assumption that the state of the polling other node, if it is the state of the polling wireless master station other nodes, but also to comply with the corresponding flow, the only the position of the two main station can be carried. PROFIBUS-DP from the station, as the above-mentioned two main station only from station stand , no polling. According to the above-mentioned inventive concept is, the invention adopts the following technical scheme: A kind of industrial wireless network based on IEEE 802.15 .4a access MODBUS/TCP industrial Ethernet, field bus PROFIBUS-DP multi-protocol gateway, includes a microprocessor, main station MODBUS/TCP, IEEE 802.15 .4a wireless master station, from the station PROFIBUS-DP, external SDRAM memory and FLASH memory, RJ45 port, 485 physical layer interface, USB interface; characterized in that the circuit is connected to the micro-processor as the center, is connected with through the MDIO interface of the main station of MODBUS/TCP DM9161 EP Ethernet physical layer interface chip, is connected by an internal bus from the station PROFIBUS-DP SPC3 the protocol chip, the SDRAM memory and stated FLASH memory, through the SPI bus is connected with the primary radio station, IEEE 802.15 .4a NA1TR8 protocol chip, external USB interface. Industrial wireless network based on IEEE 802.15 .4a access MODBUS/TCP industrial Ethernet, field bus PROFIBUS-DP multi-protocol conversion method, adopting the above industrial wireless network based on IEEE 802.15 .4a access MODBUS/TCP industrial Ethernet, field bus PROFIBUS-DP multi-protocol gateway to protocol conversion, is realized by the IEEE 802.15 .4a wireless protocol IEEE 802.15 .4a primary radio station, the primary station realize MODBUS/TCP MODBUS/TCP protocol, the slave station realize PROFIBUS-DP PROFIBUS-DP protocol, is composed of a microprocessor implementing the three kinds of network protocol conversion between, the specific steps are as follows: 1) microprocessor to initialize; 2) to program code from memory copy FLASH operation in the memory to SDRAM; 3) the microprocessor reads in the network configuration parameters through USB; 4) MODBUS/TCP main station module initialization; 5) IEEE 802.15 .4a primary radio station, module initialization; 6) PROFIBUS-DP from the station module initialization; 7) the address conversion open structure array, according to the instructions of the network parameters, initialization of the address conversion in a mapping area; 8) the master station and the primary radio station MODBUS/TCP transcription area initialization data; 9) polling and protocol conversion station MODBUS/TCP; 10) the primary radio station based on IEEE 802.15 .4a polling and protocol conversion; 11) PROFIBUS-DP polling and protocol conversion from the station; 12) return to step 9), circulation operation. The invention and the prior art, has the following salient features and remarkable progress: 1. The SPI interface of the microprocessor NA1TR8 protocol chip connection, the introduced into the industrial wireless network IEEE 802.15 .4a MODBUS/TCP industrial Ethernet, field bus PROFIBUS-DP in the structure of the system. 2. In the system there are two main station, which not only can be simultaneously used as a master station independent parallel work, but also may be configured from the relations on, system in the above-mentioned two kinds of cases can stable operation. 3. Industrial wireless network based on IEEE 802.15 .4a access MODBUS/TCP industrial Ethernet, field bus PROFIBUS-DP based on multi-protocol gateway of the address mapping relation conversion technology, between the two main points can be peer-to-peer access to each other's from the node. The Figure illustrates: Figure 1 is a schematic diagram of the hardware platform of the embodiment of the invention. Figure 2 is a multi-protocol gateway to the main program flow chart of the embodiment of the invention. Figure 3 is MODBUS/TCP Ethernet initialization configuration sub-routine flowchart of the embodiment of the invention. Figure 4 is the wireless network initialization configuration sub-routine flowchart of the embodiment of the invention. Figure 5 is PROFIBUS-DP initialization configuration sub-routine flowchart of the embodiment of the invention. Figure 6 is a structure diagram of the address conversion of an embodiment of the present invention. Figure 7 is a unified message model diagram of the embodiment of the invention Figure 8 is MODBUS/TCP main station polling flowchart of the embodiment of the invention. Figure 9 is IEEE802 . 15.4a wireless master station polling flowchart of the embodiment of the invention. Specific embodiment: In conjuction with the following of the present invention to a preferred embodiment of the description: See Figure 1, the industrial wireless network based on IEEE 802.15 .4a access MODBUS/TCP industrial Ethernet and PROFIBUS-DP multi-protocol gateway of field bus, comprises a microprocessor (1), main station MODBUS/TCP, IEEE 802.15 .4a wireless master station, from the station PROFIBUS-DP, extension FLASH memory SDRAM memory (7) and (8), RJ45 port (4), 485 physical layer interface (6), USB interface ; Its circuit to the microprocessor (1) is connected with the center, through the MDIO interface (10) to expand DM9161EP Ethernet physical layer interface chip (3), (9) is connected by the internal bus SPC35 PROFIBUS-DP protocol chip, through the SPI bus Connection NA1TR8 wireless protocol chip (2), expand the USB interface . Adopting AT91RM9200 the microprocessor (1) as the core of the system control chip. The microprocessor (1) through the SPI bus And NA1TR8 wireless protocol chip (2) is connected, to form a primary radio station, module, wireless network with wireless arrange special maintainers Luen. The wireless protocol chip of the wideband linear frequency-modulated spread spectrum ( Spectrum Spread Chirp) technology as industrial wireless network protocol of the reference IEEE 802.15 .4a physical layer standards. Furthermore, wireless protocol chip containing ISM band pass filter to the anti-jamming, the user can in 500kbps, and 1Mbps 2Mbps suitable data transmission rate is selected. AT91RM9200 microprocessor integrated Ethernet controller (1), external (10) through the MDIO interface DM9161EP Ethernet physical layer interface chip (3). Its functions include physical coding sub-layer, physical media annex, twisted pair physical media sub-layer, 10BASE-TX encoding/decoder and the twisted-pair media access unit and the like. RJ45 interface chip externally through MODBUS port (4) and the other of the sub-section For communication, form a MODBUS/TCP main station module. AT91RM9200 the microprocessor (1) and (9) through the internal bus line SPC3 the PROFIBUS protocol chip is [...] , plus 485 a physical layer interface (6) from the station module PROFIBUS-DP. SPC3 chip comprises all of the DP protocol, can be independently complete all communication protocol, can be used for the highest 12Mbps bus, the microprocessor operation SPC3 chip RAM as its internal operation. AT91RM9200 the microprocessor (1) expand the SDRAM memory FLASH memory (8) and (7), the code operation program storage of the former, and the latter stores the data of the gathered on-site. During the operation when the task, program code will be copied to the SDRAM from FLASH memory operation in the memory, the system speed. The microprocessor (1) is also connected with the USB interface Connection, used for PC-based software configuration of the machine. See Figure 2, the industrial wireless network based on IEEE 802.15 .4a access MODBUS/TCP industrial Ethernet, field bus PROFIBUS-DP multi-protocol conversion method, adopting the above industrial wireless network based on IEEE 802.15 .4a access MODBUS/TCP industrial Ethernet, field bus PROFIBUS-DP multi-protocol gateway to protocol conversion, IEEE 802.15 .4a primary radio station, the wireless protocol IEEE 802.15 .4a, agreement MODBUS/TCP MODBUS/TCP realized by the master station, a slave station realize agreement PROFIBUS-DP PROFIBUS-DP, realized by the microprocessor between the three kind of network protocol conversion, the specific steps are as follows: 1) the microprocessor (1) initialization; 2) to program code from FLASH memory copy (8) running in the SDRAM memory (7); 3) a microprocessor (1) is read through the USB interface of the network configuration parameter; 4) MODBUS/TCP main station module initialization; 5) IEEE 802.15 .4a primary radio station, module initialization; 6) PROFIBUS-DP from the station module initialization; 7) the address conversion open structure array, according to the instructions of the network parameters, initialization of the address conversion in a mapping area; 8) the master station and the primary radio station MODBUS/TCP transcription area initialization data; 9) polling and protocol conversion station MODBUS/TCP; 10) the primary radio station based on IEEE 802.15 .4a polling and protocol conversion; 11) PROFIBUS-DP polling and protocol conversion from the station; 12) return to step 9), circulation operation. See Figure 3, in normal operation of the station module Ethernet MODBUS/TCP the former, it needs to be initialized, including initialization AT91RM9200 EMAC interface of the microprocessor (1), then reset DM9161EP Ethernet physical interface chip (3). Through AT91RM9200 MDIO interface of the microprocessor (1) initialization DM9161EP Ethernet physical interface chip (3), configuration mode control register, the interrupt of receiving/transmitting EMAC. Finally entered into the protocol the main program, the normal operation of the station module MODBUS/TCP. Specific initialization of the steps are as follows: (1) initialization AT91RM9200 EMAC interface in (1) of the microprocessor; (2) by the microprocessor (1) reset DM9161EP Ethernet physical layer interface chip (3); (3) by the microprocessor (1) initialization DM9161EP MDIO interface of the Ethernet physical layer interface chip (3), configuring Ethernet physical layer interface chip Ethernet physical layer interface mode control register in the chip; (4) by the microprocessor (1) the interrupt of receiving/transmitting EMAC; (5) the entry procedure MODBUS/TCP agreement, the main station MODBUS/TCP into the normal operating state. See Figure 4, the normal operation of the wireless master station module front, NA1TR8 need to be initialized (2) protocol chip, including initialization AT91RM9200 SPI interface of the microprocessor (1), then reset NA1TR8 wireless protocol chip (2). Sending large synchronization word, the internal clock of the chip at the same time, configuration register access mode, setting data retransmission mechanism, the suspension can be received/transmitted. Lastly start the wireless chip, enables the primary station begin normal operation. Specific initialization of the steps are as follows: (1) initialization AT91RM9200 in SPI interface (1) of the microprocessor; (2) by the microprocessor (1) reset NAITR8 wireless protocol chip (2); (3) a microprocessor (1) sends synchronization word, the wireless protocol chip (2) and the microprocessor (1) sorting the data of the synchronization; (4) the (1) can be through the microprocessor internal clock wireless protocol chip, configured wireless protocol chip in the access mode of the register, the retransmission mechanism setting data, the discontinuity, and the like can be received/transmitted; (5) the primary radio station by the program configuration parameter; (6) starting NA1TR8 wireless protocol chip (2), primary radio station, into the normal operating state. See Figure 5, from the station interface PROFIBUS-DP after power up is in off-line state, can not receive any message, SPC3 for this it is necessary to carry on initialization protocol chip (5), the basic information from the station needs to be completed and the function of the configuration of the relevant register, SPC3 protocol chip internal data buffer pointer (5) and the calculation of external interrupt related various definitions. The electrified, SPC3 protocol chip (5) will obtain a reset pulse, so as to enter the reset mode. Followed by initialization, in order to set up to allow interruption, write slave station identification number and the address, in a mode register, diagnostic buffer, buffer parameters, configuration buffer, address buffer, the initial length, and is determined according to the above-mentioned initial value of each buffer of the auxiliary pointer and the pointer of the buffer, according to the transmission of the data length, confirm the input/output buffer and pointer, the interrupt is opened, and then the SPC3 protocol chip sends a start command (5). Specific initialization steps are as follows: (1) initialization AT91RM9200 the microprocessor (1) of the internal bus interface; (2) is set by a program SPC3 protocol chip allow the interruption of (5), and the address of the write from the station identification number; (3) is set by a program SPC3 protocol chip mode register of (5), set up diagnostic buffer, buffer parameters, configuration buffer, address length and other parameters of the buffer zone; (4) according to the above-mentioned initial value of the pointer of the buffer and auxiliary buffer pointer; (5) the main program from the station PROFIBUS-DP, from station entering the normal operation state. See Figure 6, the structure of the opened up for address conversion in the body of the array: first of all to a different network open up a structure array. Wherein the structure in the array data is structure 1st the slave current network address, the data is a pointer to a 2nd, according to the network of the configuration parameter of the, point to another network address of the corresponding structural body of the slave address, if the network is the corresponding slave station, directly points to the air. See Figure 7, the industrial wireless network based on IEEE 802.15 .4a access MODBUS/TCP industrial Ethernet, field bus PROFIBUS-DP multi-protocol gateway of the unified message model is: first of all the first two bytes of the message the address of the slave station; section 3 bytes for the the state of the message, 00 is a common message, 01 for the emergency message; the back is provided with a message, according to the different message, byte length different, an end for the message in the last two bytes, is FE, FD. See Figure 8, in AT91RM9200 microprocessor protocol conversion program in (1) to realize a protocol conversion between different networks. Polling cycle of the whole system is made up of three parts: the main station polling itself MODBUS/TCP of the sub-nodes in the network, then polls wireless master station, the final polling PROFIBUS-DP from the station. The main station polling and protocol conversion MODBUS/TCP the steps of: 1.MODB US/TCP master station received message, judges whether the target address of the message in the same network, if so, the message directly send operation; if not, the master station then the polling MODBUS/TCP MODBUS/TCP net net node, updating data transcription area ; 2. MODB US/TCP main station polling the wireless master station, if wireless station of the message has been received, the polling does not have the cotton thread node, updating data transcription area , to the steps (5) to continue to; if the wireless master station received message, obtaining network source address with the target address, waiting for address conversion; 3. Reading of the conversion mapping address in the microprocessor of the array structure in the region, corresponding to the conversion of the content of the array; 4. After the completion of the address conversion, main station judgment MODBUS/TCP the nature of the message: A. If the general message: to the wireless master station transcription area input/output data to be operated, in response to the return message. In the next polling period, the wireless master station input data is to be written into the sub-node, the data in the output region of the wireless station will be updated; B. If the emergency message: primary radio station performs the corresponding operation sub-node directly, in response to return message; 5.MODB US/TCP from the station main station polling PROFIBUS-DP, if the message has been received from the station PROFIBUS-DP, any operation is not carried out; if PROFIBUS-DP receipt of the message from the station, according to the message content to the dual-port RAM performs the corresponding operation. Dual-port RAM PROFIBUS the data in the master station to the slave stations according to the polling time to can be updated at any time; 6.MODB US/TCP main station polling end, entering the wireless master station polling each sub-node status. See Figure 9, by the wireless station polling and protocol conversion steps are: (1) wireless master station received message, judges whether the target address of the message in the same network, if so, the message directly send operation; if not, the wireless station then the polling radio network sub-node, updating data transcription area ; (2) polling primary radio station main station MODBUS/TCP, if primary station MODBUS/TCP message has been received, polling MODBUS/TCP sub-node, updating data transcription area , to the steps (5) to continue to; if MODBUS/TCP master station received message, obtaining network source address with the target address, waiting for address conversion; (3) reading of the conversion mapping address in the microprocessor of the array structure in the region, corresponding to the conversion of the content of the array; (4) after the completion of the address translation, the nature of wireless master station judge the message: A. If the general message: the master station MODBUS/TCP transcription area input/output data to be operated, in response to the return message. In the next polling period, the main station MODBUS/TCP the input data is to be written into the sub-node, the master station the output area MODBUS/TCP the data is to be updated; B. If the emergency message: MODBUS/TCP main station directly performs the corresponding operation sub-node, in response to return message; (5) from the station main station polling PROFIBUS-DP MODBUS/TCP, if the message has been received from the station PROFIBUS-DP, any operation is not carried out; if PROFIBUS-DP receipt of the message from the station, according to the message content to the dual-port RAM performs the corresponding operation. Dual-port RAM PROFIBUS the data in the master station to the slave stations according to the polling time to can be updated at any time; (6) the polling primary radio station, the primary station MODBUS/TCP polling each sub-node status. For example, the master station received the following message MODBUS/TCP: Main station MODBUS/TCP in address conversion in a mapping area query structure array, slave pointer pointing to the address of the wireless station, complete address conversion. Analysis message content, which 00 00 on behalf of the node number, 03 function of reading operation of the representative, 00 00 representative initial address, 01 representative byte length, message state 00 which belongs to the ordinary message. Wireless slave station directly read data transcription area. If message state is 01, for the emergency message, the message will be re-converted to a wireless message: 00 04 01 01, 00 on behalf of the node number, 04 function of reading operation of the representative, 01 representative byte length, 01 representative initial address. Directly through the wireless access to the wireless slave station data, and updates the corresponding data transcription area. The invention relates to a multi-protocol gateway and protocol conversion method accessing industrial radio network into MODBUS/TCP industrial Ethernet and PROFIBUS-DP field bus based on IEEE802.15.4a. The multi-protocol gateway comprises microprocessor, MODBUS/TCP main station, IEEE802.15.4a radio main station, PROFIBUS-DP slave station, extent SDRAM memory and FLASH memory, RJ45 network port, 486 physical layer interface, USB interface. The circuit connection style is that the microprocessor is positioned at center; the DM9161EP Ethernet physical layer interface chip extends via MDIO interface; the PROFIBUS-DP protocol chip SPC3 connects via internal bus, the NA1TR8 radio protocol chip connects the circuit via SPI bus; the USB interface extends from the circuit. The protocol conversion method of multi-protocol gateway is controlled by microprocessor for implementing protocol conversion among three networks. The invention implements wired/wireless Heterogenous control network gateway fitting the demand for industrial real-time and open data communication considering the status of wired spot bus/ industrial Ethernet for the present and combining the wireless network frontier technology. 1. A kind of industrial wireless network based on IEEE 802.15 .4a access MODBUS/TCP industrial Ethernet and PROFIBUS-DP multi-protocol gateway of field bus, comprises a microprocessor (1), main station MODBUS/TCP, IEEE 802.15 .4a wireless master station, from the station PROFIBUS-DP, extension FLASH memory SDRAM memory (7) and (8), RJ45 port (4), 485 physical layer interface (6), USB interface Characterized in that the circuit in the connection mode is that the microprocessor (1) as the center, is connected with the (10) through the MDIO interface of the main station of MODBUS/TCP DM9161EP Ethernet physical layer interface chip (3), (9) is connected by the internal bus from the station PROFIBUS-DP SPC3 the protocol chip, the SDRAM memory (7) and the FLASH memory (8), through the SPI bus The primary radio station is connected with the IEEE 802.15 .4a NA1TR8 protocol chip (2), expand the USB interface 2. Industrial wireless network based on IEEE 802.15 .4a access MODBUS/TCP industrial Ethernet, field bus PROFIBUS-DP multi-protocol gateway according to Claim 1, is characterized in that the microprocessor (1) adopts AT91RM9200 as the core chip, external SDRAM memory (8) and (7) memory FLASH, FLASH stored in the program code and the data, during the operation when the task, program code will be replicated to the SDRAM running in, in order to improve system speed. 3. A kind of industrial wireless network based on IEEE 802.15 .4a access MODBUS/TCP industrial Ethernet, field bus PROFIBUS-DP multi-protocol conversion method, the industrial wireless network based on IEEE 802.15 .4a access MODBUS/TCP industrial Ethernet, field bus PROFIBUS-DP multi-protocol gateway to protocol conversion according to Claim 1, characterized in that the wireless IEEE 802.15 .4a realize wireless protocol IEEE 802.15 .4a station, the primary station realize MODBUS/TCP MODBUS/TCP protocol, the slave station realize agreement PROFIBUS-DP PROFIBUS-DP, controlled by a microprocessor implementing the three kinds of network protocol conversion between, the specific steps are as follows: 1) the microprocessor (1) initialization; 2) to program code from FLASH memory copy (8) running in the SDRAM memory (7); 3) a microprocessor (1) is read through the USB interface of the network configuration parameter; 4) MODBUS/TCP main station module initialization; 5) IEEE 802.15 .4a primary radio station, module initialization; 6) PROFIBUS-DP from the station module initialization; 7) the address conversion open structure array, according to the network parameter, initialization of the address conversion in a mapping area 8) the main station main station and MODBUS/TCP data in wireless IEEE 802.15 .4a transcription area initialization; 9) polling and protocol conversion station MODBUS/TCP; 10) the primary radio station based on IEEE 802.15 .4a polling and protocol conversion; 11) PROFIBUS-DP polling and protocol conversion from the station; 12) return to step 9), circulation operation. 4. Industrial wireless network based on IEEE 802.15 .4a access MODBUS/TCP industrial Ethernet, field bus PROFIBUS-DP multi-protocol conversion method according to Claim 3, characterized in that the step 4) of the module initialization master station MODBUS/TCP the steps of: (1) initialization AT91RM9200 EMAC in (1) of the microprocessor; (2) by the microprocessor (1) reset DM9161EP Ethernet physical layer interface chip (3); (3) by the microprocessor (1) initialization DM9161EP MDIO interface of the Ethernet physical layer interface chip (3), configuring Ethernet physical layer interface mode control register in the chip; (4) the interrupt of receiving/transmitting EMAC; (5) the entry procedure MODBUS/TCP agreement, the main station MODBUS/TCP into the normal operating state. 5. Industrial wireless network based on IEEE 802.15 .4a access MODBUS/TCP industrial Ethernet, field bus PROFIBUS-DP multi-protocol conversion method according to Claim 3, characterized in that the said step 5) of the wireless IEEE 802.15 .4a the main station module initialization steps of: (1) initialization AT91RM9200 in SPI interface (1) of the microprocessor; (2) by the microprocessor (1) reset NA1TR8 protocol chip (2); (3) a microprocessor (1) sends synchronization word, the NA1TR8 protocol chip (2) and the microprocessor (1) sorting the data of the synchronization; (4) by the microprocessor (1) enable NA1TR8 protocol chip internal clock (2), configuring NA1TR8 protocol chip in register access mode (2), setting data retransmission mechanism of, the can receive/send the interrupt; (5) the program configuration IEEE 802.15 .4a primary radio station, each parameter; (6) starting NA1TR8 protocol chip (2), IEEE 802.15 .4a wireless station enters the normal operation state. 6. Industrial wireless network based on IEEE 802.15 .4a access MODBUS/TCP industrial Ethernet, field bus PROFIBUS-DP multi-protocol conversion method according to Claim 3, characterized in that the said step 6) of the module initialization from the station PROFIBUS-DP the steps of: (1) initialization AT91RM9200 the microprocessor (1) (9) the internal bus interface; (2) is set by a program SPC3 protocol chip allow the interruption of (5), and the address of the write from the station identification number; (3) is set by a program SPC3 protocol chip mode register of (5), set up diagnostic buffer, buffer parameters, configuration and the length of the address buffer; (4) according to the above-mentioned initial value of the pointer of the buffer and auxiliary buffer pointer; (5) the main program from the station PROFIBUS-DP, PROFIBUS-DP from station entering the normal operation state. 7. Industrial wireless network based on IEEE 802.15 .4a access MODBUS/TCP industrial Ethernet, field bus PROFIBUS-DP multi-protocol conversion method according to Claim 3, characterized in that the stated step 7) is initialized to the address conversion in a mapping area of the steps are as follows: (1) open up in the memory in the microprocessor memory in the address conversion in a mapping area as; (2) the wireless network is IEEE 802.15 .4a, network and MODBUS/TCP PROFIBUS-DP network are respectively the establishment of a structure body array; (3) a microprocessor (1) according to the configuration parameter of the network, are respectively initialized structure array. 8. Industrial wireless network based on IEEE 802.15 .4a access MODBUS/TCP industrial Ethernet, field bus PROFIBUS-DP multi-protocol conversion method according to Claim 3, characterized in that the stated step 9) of the main station MODBUS/TCP polling and protocol conversion for the step of: (1) primary station MODBUS/TCP receipt of the message, determining whether the target address of the message in the same network, if so, the message directly send operation; if not, the master station then the polling MODBUS/TCP MODBUS/TCP net net node, updating data transcription area ; (2) polling the wireless IEEE 802.15 .4a MODBUS/TCP main station main station, IEEE 802.15 .4a primary radio station if the message has been received, the polling does not have the cotton thread node, updating data transcription area , to the steps (5) to continue to; if the IEEE 802.15 .4a wireless master station received message, obtaining network source address with the target address, waiting for address conversion; (3) reading of the conversion mapping address in the microprocessor of the array structure in the region, corresponding to the conversion of the content of the array; (4) after the completion of the address conversion, main station judgment MODBUS/TCP the nature of the message: A. If the general message: of the main station of the wireless IEEE 802.15 .4a input/output data to operate transcription area , return message response; in the next polling period, IEEE 802.15 .4a the wireless master station input data is to be written into the sub-node, IEEE 802.15 .4a primary radio station, the output area will be updated the data; B. If the emergency message: IEEE 802.15 .4a primary radio station performs the corresponding operation sub-node directly, in response to return message; (5) from the station main station polling PROFIBUS-DP MODBUS/TCP, if the message has been received from the station PROFIBUS-DP, any operation is not carried out; if PROFIBUS-DP receipt of the message from the station, according to the message content to the double-port performs the corresponding operation RAM; dual-port RAM PROFIBUS the data in the master station to the slave stations according to the polling time to can be updated at any time; (6) the polling end station MODBUS/TCP, entering the wireless master station polling each sub-node status. 9. Industrial wireless network based on IEEE 802.15 .4a access MODBUS/TCP industrial Ethernet, field bus PROFIBUS-DP multi-protocol conversion method according to Claim 3, which is characterized in the steps 10) the primary radio station based on IEEE 802.15 .4a polling and protocol conversion for the step of: (1) wireless master station received IEEE 802.15 .4a message, judges whether the target address of the message in the same network, if so, the message directly send operation; if not, the primary radio station, IEEE 802.15 .4a polling wireless network sub-node, updating data transcription area ; (2) polling MODBUS/TCP IEEE 802.15 .4a primary radio station main station, the primary station MODBUS/TCP message has been received, polling MODBUS/TCP sub-node, updating data transcription area , to the steps (5) to continue to; if MODBUS/TCP master station received message, obtaining network source address with the target address, waiting for address conversion; (3) reading of the conversion mapping address in the microprocessor of the array structure in the region, corresponding to the conversion of the content of the array; (4) after the completion of the address translation, the nature of the wireless IEEE 802.15 .4a message a main station judgment: A. If the general message: the main station MODBUS/TCP transcription area the input/output data for operation, return message response; in the next polling period, the main station MODBUS/TCP the input data is to be written into the sub-node, the master station the output area MODBUS/TCP the data is to be updated; B. If the emergency message: MODBUS/TCP main station directly performs the corresponding operation sub-node, in response to return message; (5) from the station main station polling PROFIBUS-DP MODBUS/TCP, if the message has been received from the station PROFIBUS-DP, any operation is not carried out; if PROFIBUS-DP receipt of the message from the station, according to the message content to the double-port performs the corresponding operation RAM; dual-port RAM PROFIBUS the data in the master station to the slave stations according to the polling time to can be updated at any time; (6) the polling IEEE 802.15 .4a primary radio station, the primary station MODBUS/TCP polling each sub-node status. 10. Industrial wireless network based on IEEE 802.15 .4a access MODBUS/TCP industrial Ethernet, field bus PROFIBUS-DP multi-protocol conversion method according to Claim 3, characterized in that the stated step 11) from the station PROFIBUS-DP of polling and protocol conversion for the step of: (1) if the message has been received from the station PROFIBUS-DP, not to carry out any operation, go to step (4); (2) if PROFIBUS-DP receipt of the message from the station, according to the message content to the dual-port RAM for the corresponding operation; (3) dual-port RAM PROFIBUS the data in the master station to the slave stations according to the polling time to can be updated at any time; (4) procedure return. 192.168.10 . 1 00 00 00 00 06 00 03 00 00 00 01 FD FE