Migration and Improving of FreeRTOS for Water Quality Monitoring Wireless Sensor Network

Author
WangBing
Advisor
YangGuangYong
School
Yunnan Nationalities University
Major
Signal and Information Processing
Classification
TN929.5 Mobile Communications
Degree
Master's thesis
Year
2012
Downloads
53
Citations
0

Request the full text

Abstract

The development of Wireless Sensor Network (WSN) and water qualitymonitoring is reviewedin this paper,firstly. Been studyedfor the current microoperating system, memory managing technology and the ion concentrationmeasurement technology in water quality monitoring application, the mainresearchworkin this paper is schemed: design a wireless sensor network hardwareplatform for water quality monitoring, micro operating systemwith performance oflow-power consumption, real-time task operation in WSN, analysize and verificationfor the RF connectivity, power comsumption and real-time performance of thesystem.As for hardwaredesign, the CPU ofLM3S8962with Ethernet control block,which is the ARM Cortex-M3series, is selected. ADS1244, which theAnalog-to-Digital Converter ocupied with single channel and24bits resolution, isapplied fordata acquisition; LTC3555, which is controlled through I2C Bus for thethree output voltages, the power manage ASICis usedfor the dynamic voltageadjustable. And,the RF transceiver module with CC1100which its power and wirlesschannel can program through SPI Busisembedded in WSN nodes.Software structure model of5layers,pHysical layer, hardware abstraction layer(HAL), RTOS kernel, application interface layer and application layer, respectively,isconstructedin software design routine. Firstly, the board support package (BSP) iscompletedfor dataacquisition, wireless transceiver, power managing, and Ethernetcommunication interface through the configuration and debug for relative regiestersin specified hardware. Been analyzingfor the event-driven framework of FreeRTOS, aconclusion is drawn that FreeRTOS could be used in WSN. In order to improveFreeRTOS, CPU can enter the sleep status after the IDLE task routine is executed. Asa result, FreeRTOS can be added up to low-power consumption in WSN. Combiningwith the original FreeRTOS program designing ways, the speical program designingmethod with FreeRTOSis made out inthis paper. After finding out the shortage of memory management of FreeRTOS, two-level segregated fit (TLSF) for memoryallocator is aggregated to FreeRTOS to improve the efficiency and reliableness ofmemory allocating and releasing. Finnally, Light-weightIP protocol stack of lwIP isapplied for the ability of communication so thatEhternet, remote control anddata-acquisition can be implemented easily.During the cource of research, the accomplishmenthas several points as follow:Mote design(LM3S8962+CC1100+LTC3555) for water quality monitoringwireless sensor network, the higher-precision ion concentration data acquisition, themicro operating system for wireless sensor network by FreeRTOS adding CPUsleeping mode to it, and the resource codes packaging of user API. Finnaly,connectivenesscheck, test for design function and verification for performance arefinished.

Table of contents

Summary 5-6 Abstract 6-11 Chapter 1 Introduction 11-15 1.1 Background 11 <br / > 120 research status 11-13 1.2.1 LiteOS 12 1.2.2 TinyOS 12-13 1.2.3 SenSpire 13 1.3 major structural arrangements to complete the work and papers 13-15 1.3.1 the main work done structure 13-14 1.3.2 article arrangements build 14-15 Chapter 2 hardware platforms 15-27 2.1 to develop the overall program 15-17 2.2 CPU minimum system design 17 2.3 RF chip selection and circuit design 17-19 2.4 power chip selection and circuit design 19-22 2.5 Ethernet communication module and circuit design 22 2.6 data acquisition circuit design 22-26 2.6.1 ion concentration acquisition circuit 23-24 2.6. 2 temperature sensor circuit design 24-25 2.6.3 photosensor circuit design 25-26 2.7 Summary 26-27 3 Chapter FreeRTOS principle analysis 27-49 3.1 FreeRTOS functional design 27 3.2 FreeRTOS task design principles 27-34 3.2.1 FreeRTOS task status 28-30 3.2.2 state list of program 30-32 3.2.3 FreeRTOS task scheduling strategy 32-34 3.3 FreeRTOS time management 34-36 3.3.1 task delay function vTaskDelay 34 3.3.2 Timers components 34-36 3.4 dynamic Memory management 36-44 3.4.1 malloc and free implementation analysis 36-40 3.4.2 FreeRTOS memory management to achieve 40-44 <br / > 3.5 FreeRTOS task synchronization 44-48 3.5.1 message queue management 44-46 3.5.2 semaphore management 46 3.5 management nbsp .3 mutex object ; 46-48 3.6 Summary 48-49 Chapter 4 FreeRTOS transplant and improvement 49-69 <br / > 4.1 Why FreeRTOS 49-50 4.1.1 WSN want to have real-time data transmission 49 4.1.2 WSN want low-power applications 49-50 4.2 FreeRTOS transplant 50-59 4.2.1 PORTMACRO.H 51-53 4.2.2 PORT.C 53 -56 4.2.3 PORTASM.S 56-59 4.3 FreeRTOS improved dynamic memory management algorithm 59-65 4.3.1 heap_1.c and heap_2. c performance test 59-62 4.3.2 TLSF transplant after 62-64 4.3.3 improved TLSF algorithm performance test 64-65 <br / > 4.4 modify FreeRTOS adapt WSN 65-68 4.5 Summary 68-69 Chapter 5 lwIP transplant and driven preparation 69 - 76 5.1 lwIP Introduction 69 5.2 Why transplant lwIP 69-71 5.3 transplant lwIP 71-73 5.3.1 set function operating system emulation layer 71-72 5.3.2 operating system FreeRTOS simulate specific layer in the realization 72-73 5.4 device driver written for the lwIP 73-75 5.5 Summary portability and system analysis package 75-76 Chapter 6 user-level API, 76-81 6.1 users Package -level API, 76-79 6.1.1 data Collection class API 76 6.1.2 power Management 76-78 6.1. 3 wireless data transceiver class 78 6.1.4 Ethernet communications interfaces 78-79 6.1.5 other categories 79 6.2 system portability analysis 79 6.3 Summary 79-81 Chapter 7 system function test 81-97 7.1 Ethernet communications test 81-86 7.1.1 DHCP function test 81-84 7.1.2 UDP communications test 84-86 7.2 portability verification system peer wireless communications nbsp 86-89 7.2.1 ported between platforms and the original platform ; 88-89 7.3 data acquisition function test 89-93 <br / > 7.4 before the improved power consumption and improvement FreeRTOS contrast 93-96 7.5 summary 96-97 Chapter 8 summary and Outlook 97-99 References 99-101 Appendix key code 101-110 a major data collection program fragment 101-102 two wireless data transceiver main program fragment 102-107 three major UDP communications test program fragment 107-110 published during the school academic achievements and awards 110-111 Thanks 111

Related dissertations

  1. Agricultural Products Warehouse Logistics Management System Based on Internet of Things
    JiangYuan ·Hunan Agricultural University ·2013 ·Master's thesis
  2. Research on Monitor System for Campus Energy Conservation Based on Internet of Things
    DengPeng ·Hunan University of Technology ·2013 ·Master's thesis
  3. Equipment Condition Monitoring and Fault Diagnosis System Design Based on the Technology of ZigBee
    LiuTaoTao ·University of North ·2014 ·Master's thesis
  4. Low Power Monitoring and Fuzzy Control of Environment Parameters for Facility Flower
    ZhangZuo ·Nanjing Agricultural College ·2013 ·Master's thesis
  5. Advanced Sensing Method and Apparatus for Orchard Information Collection
    DengXiaoLei ·China Agricultural University ·2014 ·Doctoral dissertation
  6. The Design and Implementation of a TinyOS-based WSN Node Control System
    ZhangZuoBo ·Northeastern University ·2011 ·Master's thesis
  7. Research on Robust Tracking Methods of Mobile Targets in Wireless Sensor Networks
  8. The Real-time Routing Protocol for Supporting Real-time Query in Wireless Sensor Networks
    ChenQuan ·Harbin Institute of Technology ·2012 ·Master's thesis
  9. Research on Base Station Location Protection in Wireless Sensor Networks
    LiFuLong ·Harbin Institute of Technology ·2012 ·Master's thesis
  10. A Research on Compression Algorithm for Wireless Sensor Networks Based on Compressed Sensing
    CuiZheng ·Harbin Institute of Technology ·2012 ·Master's thesis
  11. Research on Complex Event Detection in Wireless Sensor Networks
    ZhangWei ·Harbin Institute of Technology ·2012 ·Master's thesis
  12. Research on Sampling-based Data Aggregation Algorithms in Wireless Sensor Networks
    ZhengXu ·Harbin Institute of Technology ·2012 ·Master's thesis
  13. Research on Nonlinear Filtering Based Target Tracking Algorithm for Sensor Networks
  14. Security Module Based on Command Code for Resource Constrained Wireless Sensor Networks
    HanYu ·Harbin Institute of Technology ·2012 ·Master's thesis
  15. Research on Power Control Routing Algorithms for Wireless Sensor Networks
    HouZhongWei ·Chongqing Jiaotong University ·2012 ·Master's thesis
  16. Research of Gradient Event Boundary Identification and Tracking Technology in WSNs
    LvJingHui ·Harbin Engineering University ·2013 ·Master's thesis
  17. Research of Distributed Event Detection Technology in Wireless Sensor Networks
    WangJia ·Harbin Engineering University ·2013 ·Master's thesis
  18. Researches on Data Fusion Algorithm in WSN Based on Routing Technology
    WangHuaiQing ·Harbin Engineering University ·2013 ·Master's thesis
  19. Research on Localization Method of Wireless Sensor Network
    WeiDengFeng ·Hunan University ·2013 ·Master's thesis
  20. The Application of Ant Colony Algorithm in the Routing of Wireless Sensor Networks
    YuanXinLai ·Hunan University ·2012 ·Master's thesis