本論文提出一個模擬環境的架構(SEMU)來允許開發者在部署真實節點到實體環境之前能夠了解無線感測網路應用程式或者協定的行為。我們的工作是在一些重要的設計論點考量下,致力於提供一個模擬環境的架構。為了消除在模擬與真實部屬之間的隔閡,此架構藉由動態二元碼轉換來支援快速真實程式碼仿真。為了協調大量的節點的互動,此架構以虛擬作業系統當作控制環境的模型。此虛擬作業系統提供一個排程策略使得仿真感測節點能夠更並行的執行。此外為了使設定與視覺化更為容易,分別將XML剖析器與分散式圖形使用者介面整合在此架構中。我們也採用物件導向設計的方法使得原始碼更能重複使用以及具有擴充性。為了評估此架構,我們使用無線感測器程式開發環境(SPE)來撰寫無線感測網路應用程式以作為汽車導航的範例,在這範例展現出此新架構的效用。
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.