ddeessigignn a anndd i …br/webpage/students/2006/...brimon hemanth haridas ([email protected])...

36
BriMon Hemanth Haridas ([email protected]) MTech Thesis BriMon BriMon Hemanth H Under Guidance of Dr. Bhaskaran Raman And Dr Kameswari Chebrolu Design and Implementation of Railway Bridge Monitoring Application Design and Implementation of Railway Bridge Monitoring Application

Upload: others

Post on 17-Apr-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: DDeessigignn a anndd I …br/webpage/students/2006/...BriMon Hemanth Haridas (hemanth@iitk.ac.in) BriMon MTech Thesis BriMon Hemanth H Under Guidance of Dr. Bhaskaran Raman And Dr

BriMon ����������������������������

Hemanth Haridas ([email protected]) MTech ThesisBriMon

BriMon

Hemanth H

Under Guidance ofDr. Bhaskaran Raman

AndDr Kameswari Chebrolu

Design and Implementation of Railway Bridge Monitoring ApplicationDesign and Implementation of Railway Bridge Monitoring Application

Page 2: DDeessigignn a anndd I …br/webpage/students/2006/...BriMon Hemanth Haridas (hemanth@iitk.ac.in) BriMon MTech Thesis BriMon Hemanth H Under Guidance of Dr. Bhaskaran Raman And Dr

BriMon ����������������������������

Hemanth Haridas ([email protected]) MTech ThesisBriMon

Agenda

§ Introduction to the Problem

§ Application Design

§ Transport Protocol

§ Routing Protocol

§ Current Status

Page 3: DDeessigignn a anndd I …br/webpage/students/2006/...BriMon Hemanth Haridas (hemanth@iitk.ac.in) BriMon MTech Thesis BriMon Hemanth H Under Guidance of Dr. Bhaskaran Raman And Dr

BriMon ����������������������������

Hemanth Haridas ([email protected]) MTech ThesisBriMon

Agenda

§ Introduction to the Problem§Motivation

§ Problem Statement

§Related Work

§ Introduction

§ Application Design

§ Transport Protocol

§ Routing Protocol

§ Current Status

Page 4: DDeessigignn a anndd I …br/webpage/students/2006/...BriMon Hemanth Haridas (hemanth@iitk.ac.in) BriMon MTech Thesis BriMon Hemanth H Under Guidance of Dr. Bhaskaran Raman And Dr

BriMon ����������������������������

Hemanth Haridas ([email protected]) MTech ThesisBriMon

Motivation

Ø 1.20 lakh railway bridges in India of which 43 per cent are 100 years old and 57 per cent 80 years old

Ø Current State : Monitoring using huge equipment, takes days to setup.

Ø Analysis done online , data cannot be easily stored.

Ø Frequent Monitoring next to impossible..

Protocols, Hardware and design may be reusable

Deployments will enable faster Industry adoption

Page 5: DDeessigignn a anndd I …br/webpage/students/2006/...BriMon Hemanth Haridas (hemanth@iitk.ac.in) BriMon MTech Thesis BriMon Hemanth H Under Guidance of Dr. Bhaskaran Raman And Dr

BriMon ����������������������������

Hemanth Haridas ([email protected]) MTech ThesisBriMon

Problem Statement

AnalysisØ Readings from piers of the bridge

Ø No significant loss of data

Ø System should be fault tolerant

Ø Kinds of Vibrations

Ø Forced VibrationsØ Ambient VibrationsØ Free Vibrations

ConstraintsØ Equipment to run on battery power.

Ø Hostile Environment.

Ø Unreliable hardware

Ø No straight forward way to detect passage of train.

“ The structural response (readings of the accelerometer) of the bridge have

to be reliably delivered to a central location for further processing.”

Our goal is to build a working prototype Our goal is to build a working prototype

Page 6: DDeessigignn a anndd I …br/webpage/students/2006/...BriMon Hemanth Haridas (hemanth@iitk.ac.in) BriMon MTech Thesis BriMon Hemanth H Under Guidance of Dr. Bhaskaran Raman And Dr

BriMon ����������������������������

Hemanth Haridas ([email protected]) MTech ThesisBriMon

Related Work

Industrial Sensor Network :

• predictive equipment maintenance

• aims to replace expensive wireless sytems• measures acceleration,

• single hop and multi hop.

• long term deployment on micaZ and imotes .

Habitat Monitoring • long term sensor network deployment of 32 Mica2 nodes• aims to monitor seabird nesting environments• monitors temperature, pressure , humidity etc, WISDEN :

• multi-hop WSN • monitoring large structures• to replace existing wired systems • 14 micaZ nodes• measures acceleration• sampling rate 200-250Hz

Ø Single hop wireless solutions for bridge monitoring availableØ Using WiFi.Ø Very expensive

Ø Recent efforts by UCLA using sensor nodes and DAQs

Page 7: DDeessigignn a anndd I …br/webpage/students/2006/...BriMon Hemanth Haridas (hemanth@iitk.ac.in) BriMon MTech Thesis BriMon Hemanth H Under Guidance of Dr. Bhaskaran Raman And Dr

BriMon ����������������������������

Hemanth Haridas ([email protected]) MTech ThesisBriMon

Introduction• MoteIV’s Tmote-sky

– CC2420, 256Kbps

– 10KB RAM

– 1MB Flash.

• Soekris– Single board computer

– Ethernet, WiFi, Serialport

– Pebble linux

• TinyOSand NesC– C like syntax

– Components

– Interfaces and Implementation

– Event based programming.

Page 8: DDeessigignn a anndd I …br/webpage/students/2006/...BriMon Hemanth Haridas (hemanth@iitk.ac.in) BriMon MTech Thesis BriMon Hemanth H Under Guidance of Dr. Bhaskaran Raman And Dr

BriMon ����������������������������

Hemanth Haridas ([email protected]) MTech ThesisBriMon

Agenda

§ Introduction to the Problem§ Application Design

§Overview§ Sequence of Events.§Data Organization and Layering§ Alternatives and feasibility§Hardware Design

§ Transport Protocol§ Routing Protocol§ Current Status

Page 9: DDeessigignn a anndd I …br/webpage/students/2006/...BriMon Hemanth Haridas (hemanth@iitk.ac.in) BriMon MTech Thesis BriMon Hemanth H Under Guidance of Dr. Bhaskaran Raman And Dr

BriMon ����������������������������

Hemanth Haridas ([email protected]) MTech ThesisBriMon

Application Design : Overviewd2

d1C1 C2

C3

Base node

C4

F

Base Node

Ordinary Node

Piers

Bridge

train

Page 10: DDeessigignn a anndd I …br/webpage/students/2006/...BriMon Hemanth Haridas (hemanth@iitk.ac.in) BriMon MTech Thesis BriMon Hemanth H Under Guidance of Dr. Bhaskaran Raman And Dr

BriMon ����������������������������

Hemanth Haridas ([email protected]) MTech ThesisBriMon

Application Design : Overview

d2

d1C1 C2

C3

Train

Base node

C4

802.11

802.15.4

Wake-On-WLan

Page 11: DDeessigignn a anndd I …br/webpage/students/2006/...BriMon Hemanth Haridas (hemanth@iitk.ac.in) BriMon MTech Thesis BriMon Hemanth H Under Guidance of Dr. Bhaskaran Raman And Dr

BriMon ����������������������������

Hemanth Haridas ([email protected]) MTech ThesisBriMon

d2

d1C1 C2

C3

Train

Base node

C4

Page 12: DDeessigignn a anndd I …br/webpage/students/2006/...BriMon Hemanth Haridas (hemanth@iitk.ac.in) BriMon MTech Thesis BriMon Hemanth H Under Guidance of Dr. Bhaskaran Raman And Dr

BriMon ����������������������������

Hemanth Haridas ([email protected]) MTech ThesisBriMon

d2

d1C1 C2

C3

Base node

C4

Page 13: DDeessigignn a anndd I …br/webpage/students/2006/...BriMon Hemanth Haridas (hemanth@iitk.ac.in) BriMon MTech Thesis BriMon Hemanth H Under Guidance of Dr. Bhaskaran Raman And Dr

BriMon ����������������������������

Hemanth Haridas ([email protected]) MTech ThesisBriMon

d2

d1C1 C2

C3

Base node

C4

Page 14: DDeessigignn a anndd I …br/webpage/students/2006/...BriMon Hemanth Haridas (hemanth@iitk.ac.in) BriMon MTech Thesis BriMon Hemanth H Under Guidance of Dr. Bhaskaran Raman And Dr

BriMon ����������������������������

Hemanth Haridas ([email protected]) MTech ThesisBriMon

d2

d1C1 C2

C3

Train

Base node

C4

Page 15: DDeessigignn a anndd I …br/webpage/students/2006/...BriMon Hemanth Haridas (hemanth@iitk.ac.in) BriMon MTech Thesis BriMon Hemanth H Under Guidance of Dr. Bhaskaran Raman And Dr

BriMon ����������������������������

Hemanth Haridas ([email protected]) MTech ThesisBriMon

d2

d1C1 C2

C3

Train

Base node

C4

802.11 Transmission

Page 16: DDeessigignn a anndd I …br/webpage/students/2006/...BriMon Hemanth Haridas (hemanth@iitk.ac.in) BriMon MTech Thesis BriMon Hemanth H Under Guidance of Dr. Bhaskaran Raman And Dr

BriMon ����������������������������

Hemanth Haridas ([email protected]) MTech ThesisBriMon

Data Organization

Data30 KB of Data

5 files of 6Kb each

200 x 5 packetsOf 30 bytes eack

Why do we need such organization ?

Page 17: DDeessigignn a anndd I …br/webpage/students/2006/...BriMon Hemanth Haridas (hemanth@iitk.ac.in) BriMon MTech Thesis BriMon Hemanth H Under Guidance of Dr. Bhaskaran Raman And Dr

BriMon ����������������������������

Hemanth Haridas ([email protected]) MTech ThesisBriMon

Layering

Application Layer

Routing Layer

Transport Layer

SendFile.send() SendFile.sendDone()

Route.getParent()

MAC

SendDataMsg.send()

SendDataMsg.sendDone()

Application Layer

Routing Layer

Transport Layer

ReceiveFile.receive()

Route.getParent()

MAC

ReceiveDataMsg.Receive()

PHY PHY

Sending Node Receiving Node

Route.parentAssigned() Route.parentAssigned()

Why do we need layering?Common practice for networking applications

Tiny OS encourages it

An example is use of AM_ messages

Page 18: DDeessigignn a anndd I …br/webpage/students/2006/...BriMon Hemanth Haridas (hemanth@iitk.ac.in) BriMon MTech Thesis BriMon Hemanth H Under Guidance of Dr. Bhaskaran Raman And Dr

BriMon ����������������������������

Hemanth Haridas ([email protected]) MTech ThesisBriMon

Design Alternatives

• Why not draw power from electric lines on tracks?– Not all tracks are electrified.– Monitoring needed when bridge getting built.– Feasibility not known.

• Use GPRS for data transfer.– GPRS not available at most places.

• Use mechanical switch to detect arrival of train– Not our area of expertise– Still we need another system/device to transfer data.

• Using GPS for synchronization– Using GPS at every node is expensive.– A GPS device at the base node is feasible

Page 19: DDeessigignn a anndd I …br/webpage/students/2006/...BriMon Hemanth Haridas (hemanth@iitk.ac.in) BriMon MTech Thesis BriMon Hemanth H Under Guidance of Dr. Bhaskaran Raman And Dr

BriMon ����������������������������

Hemanth Haridas ([email protected]) MTech ThesisBriMon

Feasibility

• Earlier deployments on other hardware have run for months.

• Current hardware is better.• Man power to replace batteries once every 3-6months

available.• WOW tested on long distance link.• Sensor nodes also tested on 500m link with external

antenna.• Data transfer using WiFi at speeds of 70mph is

achieved

Page 20: DDeessigignn a anndd I …br/webpage/students/2006/...BriMon Hemanth Haridas (hemanth@iitk.ac.in) BriMon MTech Thesis BriMon Hemanth H Under Guidance of Dr. Bhaskaran Raman And Dr

BriMon ����������������������������

Hemanth Haridas ([email protected]) MTech ThesisBriMon

Hardware Design

• Accelerometer– Is it possible that a MEMS accelerometer replace

existing expensive accelerometers?

– Range 0-50Hz

– Low power, low noise, high sensitivity.

– MMA7260Q and ADXL203

– Fabrication of MMA7260 application circuit ( PCB Library)

• Attenuator Circuit.– To solve the clipping problem

Page 21: DDeessigignn a anndd I …br/webpage/students/2006/...BriMon Hemanth Haridas (hemanth@iitk.ac.in) BriMon MTech Thesis BriMon Hemanth H Under Guidance of Dr. Bhaskaran Raman And Dr

BriMon ����������������������������

Hemanth Haridas ([email protected]) MTech ThesisBriMon

Hardware Design

• Switch Circuit– Other devices cannot be shutoff by using a

command.

• Is it possible to transfer data from the tmote to the Soekris? – USB to Serial ?

– UART to Serial converter

• Power Circuit

Page 22: DDeessigignn a anndd I …br/webpage/students/2006/...BriMon Hemanth Haridas (hemanth@iitk.ac.in) BriMon MTech Thesis BriMon Hemanth H Under Guidance of Dr. Bhaskaran Raman And Dr

BriMon ����������������������������

Hemanth Haridas ([email protected]) MTech ThesisBriMon

Agenda

§ Introduction to the Problem

§ Application Design

§ Transport Protocol§Choice of Protocol

§Overview

§ Protocol description

§ Routing Protocol

§ Current Status

Page 23: DDeessigignn a anndd I …br/webpage/students/2006/...BriMon Hemanth Haridas (hemanth@iitk.ac.in) BriMon MTech Thesis BriMon Hemanth H Under Guidance of Dr. Bhaskaran Raman And Dr

BriMon ����������������������������

Hemanth Haridas ([email protected]) MTech ThesisBriMon

Transport Protocol : Overview

• Reliably transfers a file from a node to its parent

• Store, Wait and Forward

• NACK based reliability

• Tight integration with read and write Flash operation

• Only hop-by-hop reliability

• Existing Protocols– PSFQ

– RMST

– ESRT

• RMST and ESRT – no implementation.

• PSFQ – implementation for mica, and PSFQ known to perform badly in our setting

Page 24: DDeessigignn a anndd I …br/webpage/students/2006/...BriMon Hemanth Haridas (hemanth@iitk.ac.in) BriMon MTech Thesis BriMon Hemanth H Under Guidance of Dr. Bhaskaran Raman And Dr

BriMon ����������������������������

Hemanth Haridas ([email protected]) MTech ThesisBriMon

Transport Protocol

Th is the inter filetransfer interval

Inserted for handling SPI conflict b/w radio and flash

Td is the inter packet interval

Page 25: DDeessigignn a anndd I …br/webpage/students/2006/...BriMon Hemanth Haridas (hemanth@iitk.ac.in) BriMon MTech Thesis BriMon Hemanth H Under Guidance of Dr. Bhaskaran Raman And Dr

BriMon ����������������������������

Hemanth Haridas ([email protected]) MTech ThesisBriMon

Transport Protocol

Thr = Ttr

Page 26: DDeessigignn a anndd I …br/webpage/students/2006/...BriMon Hemanth Haridas (hemanth@iitk.ac.in) BriMon MTech Thesis BriMon Hemanth H Under Guidance of Dr. Bhaskaran Raman And Dr

BriMon ����������������������������

Hemanth Haridas ([email protected]) MTech ThesisBriMon

Transport Protocol

Td = Tretr

Page 27: DDeessigignn a anndd I …br/webpage/students/2006/...BriMon Hemanth Haridas (hemanth@iitk.ac.in) BriMon MTech Thesis BriMon Hemanth H Under Guidance of Dr. Bhaskaran Raman And Dr

BriMon ����������������������������

Hemanth Haridas ([email protected]) MTech ThesisBriMon

Page 28: DDeessigignn a anndd I …br/webpage/students/2006/...BriMon Hemanth Haridas (hemanth@iitk.ac.in) BriMon MTech Thesis BriMon Hemanth H Under Guidance of Dr. Bhaskaran Raman And Dr

BriMon ����������������������������

Hemanth Haridas ([email protected]) MTech ThesisBriMon

Agenda

§ Introduction to the Problem§ Application Design § Transport Protocol§ Routing Protocol

§ Protocol Choice§ Overview§ Protocol Description

§ Current Status

Page 29: DDeessigignn a anndd I …br/webpage/students/2006/...BriMon Hemanth Haridas (hemanth@iitk.ac.in) BriMon MTech Thesis BriMon Hemanth H Under Guidance of Dr. Bhaskaran Raman And Dr

BriMon ����������������������������

Hemanth Haridas ([email protected]) MTech ThesisBriMon

Routing Protocol :OverviewØ Existing Protocols

Ø Single Destination DSDVØ MultiHopLQIØ MintRoute

Ø All nodes start transmitting beacons simultaneously and continuedoing so.

Ø Metric used as LQI, but LQI is not a good measure of packet loss

Ø Base Node starts the routing process

Ø The protocol does not go on forever.

Ø Packet loss is the metric.

Page 30: DDeessigignn a anndd I …br/webpage/students/2006/...BriMon Hemanth Haridas (hemanth@iitk.ac.in) BriMon MTech Thesis BriMon Hemanth H Under Guidance of Dr. Bhaskaran Raman And Dr

BriMon ����������������������������

Hemanth Haridas ([email protected]) MTech ThesisBriMon

1

2

3

Routing Protocol: Brief Description

2 NODE_LISTEN

2 NODE_TRANSMIT

2 NODE_IDLE

2 NODE_LEAF

Page 31: DDeessigignn a anndd I …br/webpage/students/2006/...BriMon Hemanth Haridas (hemanth@iitk.ac.in) BriMon MTech Thesis BriMon Hemanth H Under Guidance of Dr. Bhaskaran Raman And Dr

BriMon ����������������������������

Hemanth Haridas ([email protected]) MTech ThesisBriMon

Status

Soekris

External AntennaSensor node

UART to Serial Converter

Switch

Base Node

Page 32: DDeessigignn a anndd I …br/webpage/students/2006/...BriMon Hemanth Haridas (hemanth@iitk.ac.in) BriMon MTech Thesis BriMon Hemanth H Under Guidance of Dr. Bhaskaran Raman And Dr

BriMon ����������������������������

Hemanth Haridas ([email protected]) MTech ThesisBriMon

Status

Ordinary Nodes

Accelerometer

Switch

Sensor Node

Page 33: DDeessigignn a anndd I …br/webpage/students/2006/...BriMon Hemanth Haridas (hemanth@iitk.ac.in) BriMon MTech Thesis BriMon Hemanth H Under Guidance of Dr. Bhaskaran Raman And Dr

BriMon ����������������������������

Hemanth Haridas ([email protected]) MTech ThesisBriMon

Application Layer

Routing Layer

Transport Layer

SendFile.send() SendFile.sendDone()

Route.getParent()

MAC

SendDataMsg.send()

SendDataMsg.sendDone()

PHY AccelerometerHAL

FlashHAL

Application Layer

ADC.getData() ADC.dataReady()

BlockRead.ReadDone()

BlockRead.read()

Software Components

Completely developed In house

Used existing code in the stack

Had to be tweaked or changed

Page 34: DDeessigignn a anndd I …br/webpage/students/2006/...BriMon Hemanth Haridas (hemanth@iitk.ac.in) BriMon MTech Thesis BriMon Hemanth H Under Guidance of Dr. Bhaskaran Raman And Dr

BriMon ����������������������������

Hemanth Haridas ([email protected]) MTech ThesisBriMon

Conclusion

• Developed various Hardware and Software components required.

• Successfully able to collect data to a central server (soekris) from the WSN.

• Application is reliable as per our testing so far.• Protocols developed found almost direct use in

WiBeam project.• Application Design and protocols were used in

several CS725 course projects.

Page 35: DDeessigignn a anndd I …br/webpage/students/2006/...BriMon Hemanth Haridas (hemanth@iitk.ac.in) BriMon MTech Thesis BriMon Hemanth H Under Guidance of Dr. Bhaskaran Raman And Dr

BriMon ����������������������������

Hemanth Haridas ([email protected]) MTech ThesisBriMon

Future Work

• Integrating all components.

• Documenting the design and the code.

• Initial outdoor testing.

• Testing on an actual bridge.

• Long term deployment on a bridge.

Page 36: DDeessigignn a anndd I …br/webpage/students/2006/...BriMon Hemanth Haridas (hemanth@iitk.ac.in) BriMon MTech Thesis BriMon Hemanth H Under Guidance of Dr. Bhaskaran Raman And Dr

BriMon ����������������������������

Hemanth Haridas ([email protected]) MTech ThesisBriMon

Thank You

Questions?