| With the continuous development of information technology, Wireless Sensor Network(WSN) has got much attention of community. It was widely used in smart home, power equipment management, intelligent monitoring and other fields.However, a lot of nodes were contained in WSN, how to control the topology of the nodes to make the data transmission more effectively? How to connect WSN with the existing communication network to realize remote transmission of data according to the actual working environment? How remote servers receive and process the real-time data? These all have become the focus of the study in WSN.Due to the lack of open source protocol stack, Most WSN routing studies have focused on the improvement of the algorithm either analytically or by simulation,few hardware realization and practice tests have been implemented, but theory and practice should be combined to verify the rationality and validity of the algorithm. On the basis of analyzing the existing WSN routing algorithm, hardware implementation of routing algorithm based on Msstate PAN protocol stack was studied in this paper,and the hardware implementation of routing algorithm has been tested and optimized in practical application. Msstate PAN was transplanted to the general CC2530 platform, the inherent routing algorithm and the networking technology was realized by programming. Hardware test about how key parameters of routing algorithm affect network performance was done in practical application environment, and the basis and rule of choosing key parameters of routing algorithm was analyzed. Through changing the network topology to analyze the influence of different topology on the performance of the network. Finally, a experiment was done in the substation site.Due to the single communication method and poor flexibility of wireless sensor network gateway, an adaptive gateway for WSN monitoring system was designed and implemented. According to the working environment, one type of communication mode from Ethernet, Wi Fi and GPRS can be selected by the gateway to transmit the data of wireless sensor network. 32 bit processor module STM32F107 was used in this gateway system, it has the advantages of high speed, a large capacity and rich external resources, which meet the needs of system development. By designing the interface circuit between processor module and Zig Bee module, GPRS module, Wi Fi module to complete the hardware development. Software development mainly involved the transplantation of the TCP/IP protocol stack, choices of the communication modes, reception and delivery of the data. Finally, A monitoring system of temperature and humidity in the campus was set up to test the performance of the gateway, the test results show that this gateway has the characteristics ofexpansion flexibility, high reliability and convenient application.Finally, a PC software was developed based on Socket on the server, realizing the function of receiving, storing, querying data, it can process the data of WSN effectively. |