基于烟草数据采集的无线传感器网络节点关键技术研究
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
微机电系统(MEMS , Micro-Electro-Mechanism System)、片上系统(SoC ,System-on-Chip)和无线通信技术的进步孕育了无线传感器网络(WSN,wireless sensor network)。它能够实时监测、感知、采集和处理各种被监测对象的信息,具有十分广阔的应用前景,是当前国际上备受关注的、多学科高度交叉的新兴前沿研究热点之一,而且随着技术的进步逐渐实用化,在环境监测等方面得到了具体应用。
     无线传感器网络设计的趋势是针对特定的应用而不是普遍的应用,即应用所需要的硬件平台是不相同的。在对现存主流的无线传感器网络节点平台进行了分析和比较后,得出了其共同的设计思想和各自独特的设计理念,并深入分析了Mica2平台的部分电路。随着无线传感器网络的广泛应用,节点构成的变化是巨大的,无线传感器网络节点上的嵌入式操作系统必须具备好的移植性,因此对其移植性研究具有重要的意义。
     本文以基于烟草监测的节点软件设计要求为依据,在软件设计方面进行深入的研究,对现有的无线传感器网络操作系统进行分类总结,跟踪了国内外该领域的研究进展,重点研究无线传感器网络中经典的嵌入式操作系统TinyOS,包括组件模型、调度策略,并且对TinyOS操作系统的编程语言nesC的编译器ncc进行了分析和说明,对其编译过程进行了详细的研究和分析。在深入研究TinyOS组件架构的基础上,提出了将TinyOS移植到相同微控制器但外围电路不同的平台和不同微控制器平台的移植思路,并实现了TinyOS在GAINS3上的移植。分析了TinyOS的调度策略,对TinyOS-1.x的FIFO调度机制进行了改进,重写了部分调度函数,使得TinyOS-1.x支持简单的优先级调度,提高了实时性。
     另外在深入了解GS003传感器板所使用的SHT7x芯片后,使用nesC语言编写了传感器板的驱动程序,实现了高精度温湿度信息的采集,其中包括14/12bit和12/8bit两种精度。深入研究了nesC语言,编写了使用SHT7x传感器采集温湿度信息并定时通过无线接口发送到汇聚节点的应用程序,在汇聚节点上实现了无线到串口的转换,通过串口将信息转发到上位机。上位机使用VC++编写程序,实现读取串口数据并显示结果的功能。实验证明整个系统工作稳定,采集的数据准确及时。
Sensor network, which is made by the convergence of sensor, micro-electro-mechanism system and networks technologies, is a novel technology about acquiring and processing information. It can be real-time monitoring, sensing, collecting and processing some kind information of subject that to be monitored, it has very broad application prospects, and is one of the focuses of the current international concerns, multidisciplinary cross highly forefront research, and as the technology practical progress gradually, it has been applied specifically in the areas of environmental monitoring.
     Networked sensor design will trend to be app1ication specific,rather than general purpose,and carry only the available hardware support actua11y need for the application. As there is a wide range of potential app1ications,the variation in physical devices is likely to be large. The analysis and comparison of the existing mainstream wireless sensor network node platform shows that their common and each unique design idea, and the analysis in depth of some circuit of Mica2 platform. With the wide application of the wireless sensor network, the change formed of the node is enormous, the embedded operating system on the wireless sensor network node must possess good transplantation, and therefore its transplantation research is of great significance.
     This paper is based on designing requirement of node software that applied in monitoring tobacco, carry on deep research in software design, classify and summarize the existing wireless sensor network operating system, tracking the progress of the domestic and international research in the field, focus on the classic TinyOS embedded operating system of wireless sensor networks, including the component model, the scheduling strategy. Analyzed and explained tne compiler ncc of nesC language, then analyzed and studied its process of compiling. On the foundation of further investigating TinyOS commoponent framework, have given an idea of transplanted TinyOS to the same microcontroller but different platforms of peripheral circuit or to the different microcontrollers platform, have realized transplant TinyOS to GAINS3. It analyzed that the scheduling strategy of TinyOS, improve FIFO deployment mechanism of TinyOS-1.x, rewrite some scheduling functions, make TinyOS-1.x support simple priority scheduling, has improved real-time character.
     In addition using nesC language to write the drive of the sensor board after understanding SHT7x chip of GS003 sensor board, have realized the collection of high-accuracy temperature and humidity information, including 14/12bit and 12/8bit two kinds of precision. Have study nesC language, has written application program that used SHT7x sensor to gather temperature and humidity information and send to assemble node through the wireless interface regularly, realized to send some information that received from wireless interface to PC by serial port in assemble node. A VC ++ program will read the data from serial port and display in PC. The experiment proves the whole system work stable, the data gathered are accurate in time.
引文
[1] U.Roedig.Session Introduction: Wireless Sensor Networks[C].Proceedings of the 30th EUROMICRO Conference.
    [2] C.-Y.Chong.Sensor Networks:Evolution,Opportunities, and Challenges[EB/OL].IEEE,0018-9219/03.
    [3] 无线传感网简介[EB/OL].http://www.msc.ac.cn/zxjj/wxcgwjj.htm.2006.12.
    [4] R. Szewczyk, J. Polastre, A. Mainwaring, and D. Culler, "Lessons from a sensor network expedition," in Proceedings of the First European Workshop on Wireless Sensor Networks (EWSN '04), January 2004.
    [5] Terry van der Werff.10 Emerging Technologies That Will Change the World[EB/OL].http: //www. global-future.com/mit-trends2001.htm.2006.12.
    [6] 韩武.无线传感器技术前瞻[EB/OL].2006,www.easyde.net.
    [7] K. Lorincz, D. Malan, T. Fulford-Jones, A. Nawoj, A. Clavel, V. Shnayder, G. Mainland, and M. Welsh. Sensor Network for Emergency Response: Challenges and Opportunities[C]. Pervasive Computering, pp. 16-23, Oct-Dec 2004.
    [8] Joseph Robert Polastre. Design and implementation of wireless sensor networks for habitat monitoring. Master's thesis, University of California, Berkeley, 2003.19.
    [9] Alan Mainwaring, Joseph Polastre, Robert Szewczyk, David Culler, and JohnAnderson. Wireless sensor networks for habitat monitoring. In ACM International Workshop on Wireless Sensor Networks and Applications, 2002.17,19.
    [10] Geoff Werner-Allen, Jeff Johnson, Mario Ruiz, Jonathan Lees, and Matt Welsh,"Monitoring Volcanic Eruptions with a Wireless Sensor Network," EWSN 2005, January.2005.
    [11] Akyildiz I.F, Su W, Sankarasubramaniam Y, Cayirci E. Wireless sensor network: A survey[J]. Computer Networks, 2002,38(4): 393~422.
    [12] 李晓维,徐勇军,任丰原.无线传感器网络技术[M].北京:北京理工大学出版社,2007.8.
    [13] Crossbow.Inertial, MEMS Gyro, FAA Certified AHRS, and Smart Dust Wireless Sensors[EB/OL].Date Retrieved: May 20, 2004, http://www.xbow.com.
    [14] M.Augusto, and M. Vieira.Survey on Wireless Sensor Network Devices[J]. 0-7803-7937/03, IEEE, 2003.
    [15] 尹勇,龙毅宏.嵌入式无线传感器网络节点设计[J].武汉理工大学学报,第 28 卷第 3 期.
    [16] Stephan Hengstler, Daniel Prashanth, Sufen Fong, and Hamid Aghajan. MeshEye: A Hybrid-Resolution Smart Camera Mote for Applications in Distributed Intelligent Surveillance[EB/OL].http://www.stanford.edu/~hengstle/labpage/publications/conference_paper _11.pdf.
    [17] http://www.xbow.com.cn/wsn/product/video%20kit%20based %20on%20imote2-1.asp.2007.3
    [18] http://www.wsn.net.cn/product.htm.2007.8
    [19] 王漫,何宁,裴俊,冯改玲,刘海涛.面向无线传感器网络应用的嵌入式操作系统综述[J].计算机应用 与软件,2007,6,45-48.
    [20] 王万里.无线网络传感器及其微型操作系统的研究[D].浙江大学,2005.3
    [21] https://www.tinyos.net.2006.12.
    [22] TinyOS-open-source operating system designed for wireless embedded sensor networks[EB/OL].Date Retrieved: May 20,2004,http://www.tinyos.net/.
    [23] https://projects.nesl.ucla.edu/public/sos-2x/doc/index.html.2007.10
    [24] http://mantis.cs.colorado.edu/index.php/tiki-index.php.2007.12.
    [25] http://mantis.cs.colorado.edu/index.php/tiki-index.php?page=MosLicense.2007.12.
    [26] 孙利民,李建中,陈渝等.无线传感器网络[M].北京:清华大学出版社,2005.5.
    [27] 张馨.基于无线网络的农业环境监测控制平台研究开发[D].武汉理工大学,2006.4.
    [28] Amir Ehsan Khandani, Jinane Abounadi, Eytan Modiano, and Lizhong Zheng.Cooperative routing in wireless networks. In Allerton Conference on Communications,Control and Computing, October 2003. 26.
    [29] 李建中,高宏.无线传感器网络的研究进展[J].计算机研究与发展,2008,1,1-15.
    [30] 任丰原,黄海宁,林闯.无线传感器网络[J].软件学报,2003,1283-1291.
    [31] Heinzelman WR, Kulik J, Balakrishnan H. Adaptive protocols for information dissemination in wireless sensor networks. In Proceedings of the ACM MobiCom’99[C]. Seattle: ACM Press, 1999. 174~185.
    [32] Hedetniemi S, Liestman A. A survey of gossiping and broadcasting in communication networks. [J]Networks.1988.18(4):319~349.
    [33] Sohrabi K, Gao J, Ailawadhi V, Pottie GJ. Protocols for self-organization of a wireless sensor network[J]. IEEE Personal Communications, 2000,7(5):16~27.
    [34] Intanagonwiwat C, Govindan R, Estrin D, Heidemann J, Silva F. Directed diffusion for wireless sensor networking[J]. ACM/IEEE Transactions on Networking, 2002,11(1):2~16.
    [35] Heinzelman W, Chandrakasan A, Balakrishnan H. Energy efficient communication protocol for wireless microsensor networks[C]. In: Proceedings of the 33rd Hawaii International Conference on System Sciences. Maui: IEEE Computer Society, 2000. 3005~3014.
    [36] Manjeshwar A, Agrawal DP. TEEN: A routing protocol for enhanced efficiency in wireless sensor networks[C]. In: Proceedings of the 15th Parallel and Distributed Processing Symposium. San Francisco: IEEE Computer Society, 2001. 2009~2015.
    [37] Lindsey S, Raghavendra CS. PEGASIS: Power-Efficient gathering in sensor information systems[EB/OL]. http://www.cs.wayne.edu/~loren/ csc8220-info/menu.html.
    [38] 接道良.烟草企业自动数据采集系统的研究与实践[J].《自动化仪表》第 27 卷第 3 期,2006.3.
    [39] 乔晓军,张馨,王成,任东,何秀红.无线传感器网络在农业中的应用[J].农业工程学报,2005 年 12 月第 21 卷增刊.
    [40] Konstantinos,P.Ferentinos and Theodore A.Tsiligiridis.Heuristic Design and Energy Conservation of Wireless Sensor Networks for Precision Agriculture. http://www.aua.gr/~ferentin/papers/Ferentinos -ITAFE05.pdf.
    [41] Crossbow.Mote Hardware Session[EB/OL]. Date Retrieved: May 20, 2004, http://www.xbow.com /Support /Support_pdf_files/Motetraining/Hardware.pdf.
    [42] Crossbow.Mica2 Wireless Measurement System[EB/OL]. Date Retrieved: May 20, 2004, http://www.xbow.com/Products/Product_pdf_files/Wireless_pdf/6020-0042-05_A_MICA2.pdf.
    [43] Crossbow.Mica2dot Wireless Microsensor Mote[EB/OL].Date Retrieved: May 20, 2004,http://www.xbow.com/Products/Product_pdf_files/Wireless_pdf/6020-0043-04_A_MICA2DOT.pdf.
    [44] 毛飞,周正等.基于蓝牙的无线传感器网络[J].系统工程与电子技术,2005.2,1142-1144.
    [45] 韩旭东,张春业,李鹏.传感器无线互联标准及实现[J].电子设计应用,2004.4,44-46.
    [46] 朱林,袁晓,葛利嘉,郑相全.超宽带无线传感器网络综述[J].测控技术,2004.2,1-3.
    [47] http://www.tinyos.net/scoop/special/hardware.2006.12.
    [48] Atmega128 Datasheet.http://www.atmel.com.2007.5.
    [49] Atmel AVR 8-Bit RISC processor. http://www.atmel.com/atmel/products/prod23.htm.
    [50] 霍宏伟,牛延超,黄吉莹.Atmega128/2560 系列单片机原理与高级应用[M].北京:中国林业出版社;北京希望电子出版社,2006.4.
    [51] 马潮.高档 8 位单片机 ATmega128 原理与开发应用指南[M].北京:北京航空航天大学大学出版社,2004.
    [52] 我们的 AVR 论坛.http://www.ouravr.com.2007.12.
    [53] CC1000 Datasheet. www.chipcon.com/files/CC1000_Data_Sheet_2_2.pdf.
    [54] Atmel Corporation. AT45DB041B data sheet. http://www.atmel.com/dyn/resources/proddocuments/ doc3443.pdf.
    [55] 无线传感器操作系统的移植[EB/OL]. http://blog.eccn.com/u/qianmin/archives/2007/2438.htm.
    [56] MAC433 库用户手册. http://www.wsn.net.cn/down/433_协议使用手册.pdf.
    [57] 宁波中科.GAINS3 节点原理图.
    [58] Crossbow.MPR - Mote Processor Radio Board MIB – Mote Interface / Programming Board User’s Manual[EB/OL]. Date Retrieved: May 20, 2004, http://www.xbow.com/Support/Support_pdf_files/ MPRMIB_Series_User_Manual_7430-0021-05_A.pdf.
    [59] 基于 FPGA 的 UART 接口开发[EB/OL]. http://cn.21ic.com/ebook/show.asp?cid=22&id=655.
    [60] GAINS3 白皮书. http://www.wsn.net.cn/down/GAINS3 白皮书.pdf.
    [61] D. Gay, P. Levis, R. V. Behren, M. Welsh, E. Brewer, and D. Culler. The nesC Language: A Holistic Approach to Networked Embedded Systems[C]. Proceedings of Programming Language Design and Implementation (PLDI), San Diego, CA, June 9-11, 2003.
    [62] David Gay, Philip Levis , Robert von Behren. The nesC Language:A Holistic Approach to Networked Embedded Systems[EB/OL]. http://nescc.sourceforge.net.
    [63] Jason Hill, Robert Szewczyk, Alec Woo, Seth Hollar, David Culler, Kristofer Pister.System Architecture Directions for Networked Sensors[EB/OL]. www.tinyos.net/papers/tos.pdf.
    [64] Ncc manual[EB/OL].http://www.tinyos.net/tinyos-1.x/doc/nesc/ncc.html.
    [65] Cygwin. http://www.cygwin.com/.2006.12.
    [66] http://www.tinyos.net/tinyos-1.x/doc/install.html.2006.12.
    [67] http://www.tinyos.net/tinyos-1.x/doc/tutorial/verifyhw.html.2006.12.
    [68] http://www.tinyos.net/faq.html#SEC-81.2006.12.
    [69] http://www.wpanclub.com/bbs/viewthread.php?tid=461&extra=&page=1.2007.4.
    [70] http://www.my-guides.net/en/content/view/91/26/1/5/#java.2007.4.
    [71] http://www.ibm.com/developerworks/forums/thread.jspa?messageID=13967980.2007.6.
    [72] 赵建华.无线传感器网络节点嵌入式操作系统的研究与应用[D].电子科技大学,2007.6.
    [73] Estrin D, Govindan R, Heideman J, Kumar S. Next century challenges: Scalable coordinate in sensor network[C]. In Proc of ACM/IEEE International Conference on Mobile Computing and Networking,1999, 263-270.
    [74] 李晶.无线传感器网络微型嵌入式操作系统的研究与应用[D].西北工业大学,2006.3.
    [75] 赵炯.Linux 内核完全注释[EB/OL]. http://www.oldlinux.org.
    [76] 如何将 tinyos 程序烧写到 GAINS 上[EB/OL]. http://www.wsn.net.cn/download.htm.
    [77] 陈皓.跟我一起写 Makefile[EB/OL].http://pipi.googlecode.com/files/ How%20to%20Write %20makefile.pdf.
    [78] ATMEL Corp.AVR studio user manual.http://www.atmel.com.2007.10.
    [79] SHT7x Data Sheet.http://www.humidity.cn/download.aspx?SortId=1.
    [80] Jamison Roger Hope. Design & Implementation of a Wireless Sensor Prototyping Kit[D]. MASSACHUSETTS INSTITUTE OF TECHNOLOGY,2005.6.
    [81] TinyOS Community Forum. http://www.tinyos.net/.2006.12.
    [82] TinyOS Naming Conventions. http://www.tinyos.net/tinyos-1l.x/doc/tutorial/naming.html.2006.12.
    [83] TinyOS Tutorial. http://www.tinyos.net/tinyos-1.x/doc/tutorial/.2007.4.
    [84] Philip Levis.TinyOS Programming. csl.stanford.edu/~pal/pubs/tinyos-programming.pdf.
    [85] David Gay, David Culler, Philip Levis.nesC Language Reference Manual[EB/OL]. http://www.tinyos.net/ api/nesc/doc/ref.pdf.
    [86] 龚建伟,熊光明.Visual C++/Tubro C 串口编程实践[M].北京:电子工业出版社,2005.
    [87] 李现勇.Visual C++串口通信技术与工程实践[M].北京:人民邮电出版社,2002.

© 2004-2018 中国地质图书馆版权所有 京ICP备05064691号 京公网安备11010802017129号

地址:北京市海淀区学院路29号 邮编:100083

电话:办公室:(+86 10)66554848;文献借阅、咨询服务、科技查新:66554700