| Wireless sensor networks are composed of large numbers of tiny networked sensor devices. They can be used for testing, sensing, collecting and processing information of monitored objects and transferring the processed information to users remotely. For a number of reasons, there is likely to be a significant need to be able to remotely update the applications in sensor nodes after long terms of deployment. Considering the needs for update wireless sensor network, this thesis designs a wireless sensor network operating system structure can suport update process and accomplished the mechanism function. This thesis rely on nation's National Committee of Development and Revolution project" IPV6 wireless sensor network node" TaraxOS and University of Electronic Science and Technology of China youth fund of"remote configuration and online update of WSN".Most operating systems for embedded systems required a complete binary image of the entire system. The binary includes the operating system, system libraries, and the actual applications running on top of the system. Update those operating systems require changing most of the system code, which energy costly. The text presents a mechanism for operating system support for online dynamic loading and replacement of individual programs and services. The mechanism is built by a common kernel, provides dynamically loaded modules, messaging and function registration. Firstly, a comprehensive survey of wireless sensor network operating system and relative work about the node code updating technology include operating system, code distribution protocols and middleware is studied. Then, the factors have effected on updating operating system were explored.The mechanism in this thesis of the operating system has the ability to load and unload individual applications or services at run-time. In most cases, an individual application or a module of individual application is much smaller than the entire system binary and therefore requires less energy and time when transmitted through a network. This thesis designed a module structure to support update operating system and application software. A massage structure and mechanism designed for communication between modules and between modules and core is proposed. And the function register mechanism for modules update is also proposed. Update OS structure are made and some solutions are also provided. |