Development of a WSN Gateway for Perimeter Protection System
- Author
- LiYu
- Advisor
- WangXiaoFen , ZhaoJiaMin
- School
- University of Electronic Science and Technology
- Major
- Software Engineering
- Classification
- TN915.05 Communication network equipment
- Degree
- Master's thesis
- Year
- 2012
- Downloads
- 20
- Citations
- 0
- Perimeter protection
- Embedded gateway
- μC/OS-Ⅱ operation system
- LwIP protocol stack
- Wireless Sensor Network
Abstract
Perimeter protection serves an important role in country safety and public guard.However, with the great progresses of technology approaching Wireless SensorNetworks (WSN), this new technology is employed into perimeter protection is a newtechnological trend, which also returns progresses to WSN technology, including WSNnode, gateway, and related software. WSN gateway is a special network component,which is a interface between WSN and core network. That is, the gateway has a strictrequirement on reliability. To a WSN gateway for perimeter protection, the ability ofreal-time response is another requirement. In this thesis, depend on a project Real-timePositioning Intelligent Intrusion Protection System from company, we discuss how totransplant Operation System (OS) core, μC/OS-Ⅱ, into ARM7platform based chip,AT91SAM7S256of Atmel, and then, we discuss how to transplant LwIP network stackinto the chip in μC/OS-Ⅱ OS in order to support TCP/IP communication. With these,our work can meet the requirements of the project.The WSN gateway employs μC/OS-Ⅱ, the most famous real-time OS, as itsoperation software. Even though μC/OS-Ⅱ provides real-time task scheduling andinterrupts management, it doesn’t offer any supports to outside interface andcomponents. Furthermore, it hasn’t networking stack. Therefore, we adopt μC/OS-ⅡOS and free network stack, LwIP to implement the WSN gateway by transplantingLwIP into μC/OS-Ⅱ OS on ARM7platform of Atmel AT91SAM7S256. In this thesis,we first introduce μC/OS-Ⅱ OS in sequence of kernel architecture, task scheduling andinterrupt management. In order to get a deep view into μC/OS-Ⅱ, we analyze taskscheduling and interrupt management at source code level. Following by this, weintroduce LwIP network stack from aspects of architecture, implementation, process,memory management and application interface. And then, the thesis details how totransplant μC/OS-Ⅱ into AT91SAM7S256chip and how to transplant LwIP intoμC/OS-Ⅱ on AT91SAM7S256platform, and we provides the source code. With these,we have a simple test on the transplanted codes. The results show that the transplants ofμC/OS-Ⅱ OS and LwIP network stack into AT91SAM7S256platform are successful, and then the WSN gateway can meet the requirements of the project.
Table of contents
Summary 5-6
ABSTRACT 6-11
first chapter research background 11-17
1.1 system 11 - 12
1.2 development home and abroad necessity nbsp 12-13
1.3 system development ; 1.4 13-15
research content 15 <br / > 1.5 paper structure 15-17
chapter perimeter intrusion prevention technology with ARM gateway 17-24
2.1 perimeter intrusion prevention technology 17 - 18
2.2 wireless sensor network technology and gateways 18-19
2.3 embedded Systems 19-23
2.3.1 ARM platform 20-21
2.3.2 development Environment ADS 21-23
2.4 Conclusion This chapter 23-24
Chapter III requirements analysis 24-31 <br / > 3.1 task Overview 24-26
3.2 software features described 26-30
3.2.1 node software 27-28
3.2.2 gateway software 28-29
3.2.3 management Software 29-30
3.3 runtime Environment Description 30
3.4 Conclusion This chapter 30 - 31
fourth chapter outline design 31-40
4.1 overall design 31-32
4.2 operating system ΜC/OS- Ⅱ 32-35
4.2.1 task Overview 32-33
4.2.2 task scheduler designed 33-35
4.2.3 interrupt management design 35
4.3 LWIP protocol stack 35-39
4.3.1 task Overview 35-37
4.3.2 process data transceiver design 37-38 <br / > 4.3.3 process management Design 38-39
4.3.4 interface design 39
4.4 Conclusion This chapter 39-40
Chapter ΜC / OS-Ⅱ operating system migration 40-48
5.1 ΜC/OS- Ⅱ on ARM7 transplant conditions 40
5.2 ΜC/OS- Ⅱ on the ARM7 porting process 40-47
5.2.1 modify OS_CPU.H file 40-42
5.2.2 modify OS_CPU_C.C file 42-43 <br / > 5.2.3 modify OS_CPU_A.ASM file 43-47
5.3 Conclusion This chapter 47-48
LWIP transplant protocol stack under Chapter VI ΜC/OS- Ⅱ 48-62
transplant nbsp 6.1 operating system layer ; achieve 48-51
6.1.1 semaphores and mailboxes operating functions 48-50
6.1. 2 threads and thread timeout achieve 50-51
6.1.3 critical protection function 51
initialization 6.2 LWIP underlying interface 51-61
6.2.1 initialization abstraction layer network devices initialization 53-56
6.2.2 fast Ethernet controller 56-58
6.2.3 data reception and sending thread thread 58-61
6.3 Conclusion This chapter 61-62
Chapter VII of the system test 62-70
7.1 gateway test software design achieve 62-64
7.1.1 main function achieve 62-63
7.1.2 initialization tasks 63-64
7.1.3 gateway communication tasks 64
7.2 debugging and experimental results 64-68
7.2.1 debugging tools 64
7.2.2 testing Laboratory 64 - 68
7.3 summary 68-70
Chapter VIII conclusions 70-72
8.1 summarizes 70-71
8.2 future Work Looking 71-72
Thanks 72-73
References 73-75
Related dissertations
- The Design and Implementation of Multi-Protocol Embedded Gateway for Smart Home
- Research of Corrosion in Reinforced Concrete Monitoring Technolgy Based on Wireless Sensor Network
- The Design of Storage Environment Parameters Monitoring System Based on the Zigbee Wireless Sensor Network
- Development of Temperature and Humidity Monitoring System for Livestock Farm Based on ZigBee
- Research and Application of Wireless Automatic Meter Reading System for the Household Water Meter
- The Design of the Thermo-humidity Monitoring System
- Development of the Network Control Experiment System and Design of Its Experiments
- Design and Implementation of the Smart Home System
- The design of control system of greenhouse based on intelligent fuzzy control
- Research of Control Strategy for Multi-robot Formation Based on Wirless Sensor Network
- The Design of Mobile Robot Network Embedded Monitoring System Server
- Study of Localization Algorithm for Wireless Sensor Network
- Analysis on the Localization Technology of Wireless Sensor Network and Routing Protocol
- Research on Channel Assignment Scheme for Wireless Sensor Networks Based on Static Topology
- A Study of Particle Swarm Optimization Based Node Localization for Wireless Sensor Network
- Study on Design and Analysis of the Regional Monitoring System Based on Wireless Sensor Network
- Research on Secure Top-k Query Processing in Two-tier Wireless Sensor Network
- An Energy-Efficient and Preserving Sink-Location Privacy Scheme for WSNs
- Research on a Simple Energy Aware Directed Diffusion WSN Routing Protocol
- A Research on the Localization Technology of Wireless Sensor Network Based on RSSI Value