
Implementation of the network protocol stack is also presented, components of which include: the receiving function of the physical layer, a time synchronization mechanism based on DMTS, a sleep/listen working mechanism, a CSMA/CA algorithm with ACK and retry, a reliable energy-aware routing algorithm and other required functions. Meanwhile an embedded operating systemμC/OS-Ⅱis transplanted onto the platform to implement the real-time multi-task environment of the protocol stack. In addition, a real-time monitor system of WSN is developed to provide users with network information and monitor network operations.This thesis also includes performance evaluation of the CSMA/CA mechanism, the routing strategy, the preemptive task scheduling mechanism and the data transmission application. The routing strategy and processes of routing establishment, routing failure and routing maintenance are debugged and hence verified. The results show that the WSN platform ensures operation stability and is capable of performing different tasks, by which further research can be achieved.