Abstract:Due to the single communication method and poor flexibility of wireless sensor network gateway, an adaptive gateway for WSN monitoring system is designed and implemented. According to the working environment, one type of communication mode from Ethernet, WiFi and GPRS can be selected by the gateway to transmit the data of wireless sensor network. Hardware design and software development is completed based on the STM32F107 microprocessor, realizing the functions of data acquisition, communication modes selection, remote communication. Software development of the monitoring center is completed based on VC++, realizing the functions of data reception, graphical display, storage, query. A monitoring system of temperature and humidity in the campus is set up to test the performance of the gateway, the test results show that this gateway has the characteristics of expansion flexibility, high reliability and convenient application.