Abstract
This thesis presents a framework of simulation environment (SEMU) which allows developers to understand the behavior of applications or protocols for a wireless sensor network (WSN) before deploying real nodes in a physical environment. Our work is devoted to provide a framework of simulation environment under considerations of several essential design issues. In order to eliminate the gap between simulation and real deployment, the framework supports fast real code emulation by dynamic binary translation. It models the controlled environment as virtual operation system (VirtualOS) to coordinate the interactions of large number of nodes. The VirtualOS also provides a schedule policy for emulation of sensor nodes to execute more concurrently. In addition, an XML parser and a distributed GUI are integrated to the framework for ease of configuration and visualization respectively. We also adopt the object-oriented design approach to make the source codes more reusable and extensible. An evaluation that demonstrates a WSN application for car guiding with a sensor programming environment, SPE, to exhibit the utilities of the novel framework is also conducted.