GithubHelp home page GithubHelp logo

suriyadeepan / frhp-wsn Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 220 KB

Frequency Hopping in Wireless Sensor Networks using FTSP - Tested on MicaZ and TelosB platforms

MATLAB 5.29% Java 69.22% Python 3.27% Perl 1.43% C 1.24% nesC 18.79% Shell 0.76%

frhp-wsn's Introduction

Frequency Hopping in WSN using FTSP for time synchronization

DESCRIPTION:


The TestFtsp application tests the Flooding Time Synchronization Protocol (FTSP) implementation. A network of motes programmed with TestFtsp run the FTSP protocol to time synchronize, and sends to the base station the global reception timestamps of messages broadcast by a dedicated beacon mote programmed with RadioCountToLeds. Ideally, the global reception timestamps of the same RadioCountToLeds message should agree for all TestFtsp motes (with a small synchronization error).

TODO:


  • Add int getChannel(uint32_t globalClock) - maps global timestamp to channel

Control Flow


- <startDone> => start local timer LocalClock<20ms>
							=> set beacon channel

- <LocalClock.fired>
		=> get local time -> convert to global time
		=> check if current channel needs to be updated -> based on current global time
				if so -> update channel
		=> increment counter
		=> check if MODE = 'sender' and channel != 11
				if so -> send data packet(count)

- <getChannel(global_clock)>
		=> band = 10's digit (ie) 4560 => 10's digit is 6
		=> if 1000's digit == 9 <or> global_clock < 5000
				return channel = beacon_channel
		=> else... based on "band" value -> set MODE as 'sender' or 'receiver'
			=> return channel = TOS_NODE_ID + 10 <or> TOS_NODE_ID + 11 

- <Receive>
		=> get radio packet
		=> extract timestamp
		=> get global time based on received timestamp
		=> blink LED0 if pkt.counter < 2000 
		=> blink LED1 else

frhp-wsn's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

liveway6

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.