研究生: |
江柏穠 Chiang, Po-Nung |
---|---|
論文名稱: |
無線感測網路上的動態腳本控制架構 Dynamic Scripting Control Scheme on Wireless Sensor Network |
指導教授: |
周百祥
Chou, Pai H. |
口試委員: | |
學位類別: |
碩士 Master |
系所名稱: |
電機資訊學院 - 資訊工程學系 Computer Science |
論文出版年: | 2008 |
畢業學年度: | 97 |
語文別: | 英文 |
論文頁數: | 67 |
中文關鍵詞: | 無線感測網路 、感測器 、感測器網路 、無線網路 |
外文關鍵詞: | WSN, sensor, sensor network, wireless network |
相關次數: | 點閱:3 下載:0 |
分享至: |
查詢本校圖書館目錄 查詢臺灣博碩士論文知識加值系統 勘誤回報 |
無線感測器網路是由許多微小的與資源受限的感測器組成,它們被佈置用來觀察環境或特定的現象,在無線感測器網路的研究領域中,已經有許多研究關於動態控制網路被提出,但是它們大多有所限制,而沒有辦法適用於一些常見的感測器硬體上。
我們在這篇論文當中,提出一種利用腳本為基礎的方法,動態地控制無線感測器網路,我們主要是依照Rappit[1]的架構,來分配各個元件的工作,將負擔較重的工作,分配給資源充足的使用者電腦端來執行,相對地,負擔較輕的工作,則是留給資源缺乏的感測器端來執行。
在使用者電腦端的部分,包含使用者介面元件、直譯元件、記憶體管理元件、序列埠元件、和二進位檔處理元件,這些元件是利用python和C語言來寫,而在感測器端,我們是利用Threaded Code[2]的技術,實作一個直譯器,來執行使用者所寫的腳本程式,此外,我們也注意到無線感測器網路中,常見的封包遺失的情況,於是,在我們的系統當中,納入可靠性的傳輸機制,來處理封包遺失的問題。
我們實作我們的系統在一個資源尤其受限的感測器(Eco[3])上,而我們的系統是用標準C語言寫成,系統核心部分小於3KB,我們也示範如何依照我們所定義的語法來寫常見的無線感測器網路的應用程式,並利用這些應用程式來實驗與評估我們的系統效能。
Wireless sensor networks(WSNs) are composed of many tiny, resource-constrained nodes. They
are deployed under a specific circumstance to observe a physical phenomenon. Many works have
been proposed before to solve the dynamic controlling problem inWSN, but they may suffer from
some flaws, one of which is the inability to fit in some severely resource-constrained hardware
platforms.
In this work, we present a scripting method to control a WSN dynamically. We follow the
Rappit [1] framework and leave most of the processing executing on the host computer. On the
sensor node end, we implement an interpreter by the use of threaded code [2]. We also provide a
reliable packet communication mechanism to handle the packet loss problem, which is prevalent
in WSN.
We implement our system on the Eco [3] nodes, and the system is written in C language. The
size of system core is less than 3KB. We also show how to write the applications according to our
language syntax and execute these applications on the Eco nodes. Finally, we discuss the directions
for future works.
[1] Jiwon Hahn, Qiang Xie, and Pai H. Chou. Rappit: Framework for synthesis of host-assisted
scripting engines for adaptive embedded systems. In CODES+ISSS ’05: Proceedings of the
3rd IEEE/ACM/IFIP international conference on Hardware/software codesign and system
synthesis,2005, September 2005.
[2] James R. Bell. Threaded code. 16(6):370–372, 1973.
[3] Chulsung Park and Pai Chou. Eco: an ultra-compact low-power wireless sensor node for
real-time motion monitoring. In Fourth International Symposium on Information Processing
in Sensor Network (IPSN), April 2005.
[4] Crossbow Technology, Inc. Mote In-Network Programming User Reference Version
20030315. http://webs.cs.berkeley.edu/tos/tinyos-1.x/doc/Xnp.pdf, 2003.
[5] P. Levis, Sam Madden, Joseph Polastre, Robert Szewczyk, Kamin Whitehouse, A. Woo,
David Gay, Jason Hill, Matt Welsh, Eric Brewer, and David Culler. TinyOS: An operating
system for wireless sensor networks. Ambient Intelligence, 2004.
[6] David Gay, Philip Levis, David Culler, and Eric Brewer. nesC 1.1 Language Reference
Manual. http://nescc.sourceforge.net/papers/nesc-ref.pdf, May 2003.
[7] Jonathan W. Hui and David Culler. The dynamic behavior of a data dissemination protocol
for network programming at scale. In The 2nd ACM Conference on Embedded Networked
Sensor Systems (Sensys), November 2004.
[8] Sandeep S. Kulkarni and Limin Wang. Mnp: Multihop network network reprogramming
service for sensor networks. In Proceedings of the 25th IEEE International Conference on
Distributed Computing Systems (ICDCS), June 2005.
[9] Seung-Jong Park, Ramanuja Vedantham, Raghupathy Sivakumar, and Ian F. Akyildiz. A
scalable approach for reliable downstream data delivery in wireless sensor networks. In The
ACM International Symposium on Mobile Ad Hoc Networking and Computing, May 2004.
[10] Raghupathy Sivakumar, Prasun Sinha, and Vaduvur Bharghavan. Cedar: a core-extraction
distributed ad hoc routing algorithm. IEEE Journal on Selected Areas in Communications,
pages 1454–1465, August 1999.
[11] J. Jeong and D. Culler. Incremental network programming for wireless sensors. In Proceedings
of the First IEEE Communications Society Conference on Sensor and Ad Hoc Communications
and Networks (IEEE SECON), October 2004.
[12] Niels Reijers and Koen Langendoen. Efficient code distributed in wireless sensor networks.
In The 2nd ACM International Conference on Wireless Sensor Networks and Applications(
WSNA), September 2003.
[13] J. Koshy and R. Pandey. Remote incremental linking for energy-efficient reprogramming
of sensor networks. In Proceedings of the Second European Workshop on Wireless Sensor
Networks, 2005.
[14] Shah Bhatti, James Carlson, Hui Dai, Jing Deng, Jeff Rose, Anmol Sheth, Brian Shucker,
Charles Gruenwald, Adam Torgerson, and Richard Han. Mantis os: An embedded multi-
threaded operating system for wireless micro sensor platforms. Mobile Networks and Applications,
10(4):563–579, Augest 2005.
[15] Adam Dunkels, Bj¨orn Gr¨onvall, and Thiemo Voigt. Contiki - a lightweight and flexible
operating system for tiny networked sensors. In IEEE International Conference on Local
Computer Networks(LCN), October 2004.
[16] Adam Dunkels, Oliver Schmidt, Thiemo Voigt, and Muneeb Ali. Protothreads: Simplifying
event-driven programming of memory-constrained embedded systems. In Proceedings of
the 4th International Conference on Embedded Networked Sensor Systems(Sensys), October
2006.
[17] Chih-Chieh Han, Ram Kumar, Roy Shea, Eddie Kohler, and Mani Srivastava. A dynamic
operating system for sensor nodes. In The Third International Conference onMobile Systems,
Applications, and Services(MobiSys), June 2005.
[18] Berkeley mica motes. Web page. http://www.xbow.com/.
[19] Eyes prototype sensor node. Web page. http://eyes.eu.org/sensnet.htm.
[20] CST Group at FU Berlin. Scatterweb embedded sensor board. Web page.
http://www.scatterweb.com.
[21] Tmote sky. Web page. http://www.moteiv.com.
[22] Hojung Cha, Sukwon Choi, Inuk Jung, Hyoseung Kim, Hoyjeong Shin, Jaehyun Yoo, and
Chanmin Yoon. Retos: resilient, expandable, and threaded operating system for wireless sensor
networks. In Proceedings of the 6th International Conference on Information Processing
in Sensor Networks, April 2007.
[23] Pedro Jos´e, Mattias Gauger, Andreas Lachemann, Daniel Minder, Olga Saukh, and Kurt
Rothermel. FlexCup: A flexible and efficient code update mechanism for sensor networks.
In The European Conference on Wireless Sensor Network(EWSN), February 2006.
[24] Adam Dunkels, Niclas Finne, JoakimEriksson, and Thiemo Voigt. Run-time dynamic linking
for reprogramming wireless sensor networks. In Proc. SenSys, November 2005.
[25] Ting Liu and Margaret Martonosi. Impala: A middleware system for managing autonomic,
parallel sensor systems. In ACM SIGPLAN Symposium on Principles and Practice of Parallel
Programming (PPoPP), June 2003.
[26] Philo Juang, Hidekazu Oki, Yong Wang, Margaret Martonosi, Li-Shiuan Peh, and Daniel
Rubenstein. Energy-efficient computing for wildlife tracking: Design tradeoffs and early
experiences with zebranet. In Tenth International Conference on Architectural Support for
Programming Languages and Operating Systems(ASPLOS), October 2002.
[27] Philip Levis and David Culler. Mat´e: a tiny virtual machine for sensor networks. In ACM
Special Interest Group on Operating Systems (SIGOPS), December 2002.
[28] Chien-Liang Fok, Gruia-Catalin Roman, and Chenyang Lu. Rapid development and flexible
deployment of adaptive wireless sensor network applications. In Proceedings of the 25th
IEEE International Conference on Distributed Computing Systems (ICDCS), June 2005.
[29] Joel Koshy and Raju Pandey. Vm*: Synthesizing scalable runtime environments for sensor
networks. In In Proc. Sensys ’05, pages 243–254. ACM Press, 2005.
[30] Qiang Xie, Jinfeng Liu, and Pai H. Chou. Tapper: A lightweight scripting engine for highly
constrained wireless sensor nodes. In Proceedings of the fifth international conference on
Information processing in sensor networks(IPSN ’06’), April 2006.
[31] Athanassios Boulis, Chih-Chieh Han, and Mani B. Srivastava. Design and implementation
of a framework for efficient and programmable sensor networks. In The First International
Conference on Mobile Systems, Applications, and Services (MobiSys), May 2003.
[32] Adam Dunkels. A low-overhead script language for tiny networked embedded systems. Technical
report, Swedish Institute of Computer Science, 2006.
[33] R. Pandey, J. Kottalam, Y. Ramin, I. Wirjawan, and J. Koshy. Os*: A scalable componentbased
operating system for sensor networks(in preparation). Technical report, University of
California, Davis, 2005. in Preparation.
[34] The Java Virtual Machine Specification. Addison-Wesley, April 1999.
[35] J. K. Ousterhout. Tcl: An embeddable command language. In Proceedings of the USENIX
Winter 1990 Technical Conference, Berkeley, CA, 1990. USENIX Association.
[36] Robert Szewczyk, Eric Osterweil, Joseph Polastre, Michael Hamilton, Alan Mainwaring,
and Deborah Estrin. Habitat monitoring with sensor networks. Communications of the ACM,
47(6):34–40, June 2004.
[37] SamuelMadden,Michael J. Franklin, Joseph Hellerstein, andWei Hong. Tag: a tiny aggregation
service for ad-hoc sensor networks. In Proceedings of the Fifth Symposium on Operating
System Design and Implementation (OSDI ’02), Augest 2002.
[38] Philippe Bonnet, Johannes Gehrke, and Praveen Seshadri. Towards sensor database systems.
In Conference on Mobile Data Management, January 2001.
[39] Samuel R. Madden, Michael J. Franklin, Joseph M. Hellerstein, and Wei Hong. Tinydb: An
aquisitional query processing system for sensor networks. ACM Transactions on Database
System(TODS), 30(1):122–173, March 2005.
[40] Yong Yao and Johannes Gehrke. The cougar approach to in-network query processing in
sensor networks. In SIGMOD Record, 2002.
[41] Alan Mainwaring, Joseph Polastre, Robert Szewczyk, David Culler, and John Anderson.
Wireless sensor networks for habitatmonitoring. In Proceedings of the 1st ACMInternational
Workshop on Wireless Sensor Networks and Applications(WSNA ’02), pages 88–97, 2002.
[42] Philip Levis, Nelson Lee, Matt Welsh, and David Culler. Tossim: Accurate and scalable
simulation of entire tinyos application. In Proceedings of the 1st Conference on Embedded
Networked Sensor Systems, pages 126–137, 2003.
[43] Philip Levis, Neil Patal, David Culler, and Scott Shenker. A self-regulating algorithm for
code propagation and maintenance in wireless sensor networks. In Proceedings of the 1st
Conference on Symposium on Networked Systems Design and Implementation(NSDI ’04),
March 2004.
[44] J.K. Ousterhout. Scripting: higher level programming for the 21st century. IEEE Computer,
31(3):23–30, March 1998.