| IPv6-based WSN combines IPv6 and WSN techniques and is one of the development directions of network. As each node in IPv6-based WSN has varies application services, how to discover and use these services is the prerequisite of the strong capability of IPv6-based WSN. Meanwhile, applications of IPv6-based WSN are becoming more and more plentiful, because of the differences between the systems for different applications, designing an application system with strong portability and flexibility is essential. So it's an important and reasonable work to research on service discovery and application system of IPv6-based WSN.This paper is supported by The National Natural Science Foundation of China. Service discovery is discussed and an application system based on it is designed in this paper. The system can be applied to monitor environment, smart homing and so on.This paper firstly explains the theory and technical features of the WSN, then emphasized the principle and crucial technologies of IPv6-based WSN. After analyzing the importance and necessity of the service discovery mechanism for IPv6-based WSN, a model of directory-based mechanism of service discovery is prompt. It uses bunches network topology, makes the bunch heads play the role of service agent and forms distributed directory and implements service discovery function through their cooperation. This paper designs the entire service discovery plan and implements it with modularize code through service register, service scan and service query.Next, in the face of the variety application system for WSN, the paper prompts an application system based on interface and realized preliminary separation, which increases the system's flexibility and portability. After that, the three blocks: sensor node, Web server and user interface are designed and coded respectively. In the end, a testing environment is built up and the functions in the plan are tested. The results show that the design is reasonable and the plan has good practicability and feasibility. |