Abstract:A sensor network is a network that has capabilities like data collection, wireless positioning, remote controling and device management with the help of combining sensor technologies, embeded systems and communication network. By integrating multiple wireless networks including ZigBee, Wi-Fi and GPRS, we build a heterogeneous wireless sensor network to perform data collecting, positioning and controling and exceptional event alarming for wireless network and mobile communication network. The system is able to collect data in the wireless sensor endpoint and exchange and share data among different heterogeneous network devices by using the wireless network gateway with capabilities of data receiving and redirecting, which can be used to perform wireless positioning, SMS alarming and upper machine software monitoring.