As a new network, Wireless Sensor Network (WSN) combining computing, communication and sensor, extends people’s ability to obtain the information with low power, low rate and low cost, solving the problem of linking each other in embedded device. Due to the heterogeneity of wireless sensor networks and Ethernet, so they cannot be directly connected to each other.There are many types of WSN, with ZigBee WSN and 6LowPan WSN showing better prospect. ZigBee is a published specification set of high level communication protocols designed for Wireless Personal Area Network (WPANs) using small low power digital radios based on the IEEE 802.15.4 standard.6LowPan based on IEEE802.15.4 standard is the application of the IPv6 technology in WSN, which extends the IPv6 technology to Low-Power Wireless Personal Area Network by an adaptation layer. The technology is expected to assign unique IP addresses to each embedded device, resolving depletion problem of IPv4 address. However, wireless sensor networks using a variety of protocols cannot be connected to Internet through a convertor designed for single protocol transformation.Monitoring and management of Internet of Things (IoT) are mainly based on embedded Web server. Embedded Web server, which can be in the monitor state for a long time with low cost and little space occupation, has good prospects in the monitoring of IoT. End-users can get access to the monitor and control platform, through a variety of devices easily.According to the characteristics of embedded devices and the heterogeneous networks, this paper proposes a solution for multi-protocol integration embedded Web server.Due to ZigBee can’t be accessed to Internet directly, we design a ZigBee routing control table upon the IP protocol stack and the ZigBee protocol stack. The ZigBee routing control table is responsible for mapping 16-bit network address of ZigBee nodes to virtual IP address. When the IP host wants to communicate with ZigBee nodes, it will query the routing control table, making protocol conversion. Similarly, 6LowPan network can’t be accessed to the Internet directly, and we design an address mapping table, too. The IPv6 address and sensor node number of 6LowPan nodes are stored in the address mapping table. When the IPv6 host and 6LowPan network nodes communicate, we implement the protocol converter by querying the address mapping table. By the communication between IPv6 user and 6LowPan nodes, IPv4 user and ZigBee nodes, the PC can directly manage and control the sensor node.Multi-protocol integration embedded Web server using Socket transport mechanism to realize Web Services to the IPv4 host, IPv6 hosts. Multi-threaded mechanisms support multi-user accessing. Web Server communicated with 6LowPan network, ZigBee network though interrupting transport mechanism.Multi-protocol integration embedded Web server, integrated with multi-protocol converter, supports multi-protocol communications between embedded Web server users with multi-node sensor network.The Web Server with implementation of high efficiency, small footprint,which is very promising in the things of the world. |