Skip to content

The Body Area Network Project is completed as a part of CS7NS1 Module - Scalable Computing which demonstrates a communication protocol that would allow sensors in a WSN communicate with each other in a peer to peer setting

Notifications You must be signed in to change notification settings

skarode96/Scalable-Body-Area-Network-Communication

Repository files navigation

Body Area Network - Project 4

powered by N|Solid

The project demonstratess scalable communication protocols which can be used in Body Area Network as well as for use in Energy constrained environment of Wireless Sensor Networks (WSN) In this project a team 4 attempted to design a communication protocol that would allow sensors in a WSN communicate with each other in a peer to peer setting. This communication protocol needed to be dynamic enough so it could be easily and effectively applied to Body Area Networks (BAN), Unmanned Aerial Vehicles and Vehicular settings.

Tech

BAN uses a number of open source projects to work properly:

Installation

Dillinger requires Node.js v4+ to run.

  • Install Node from here
  • Install Mosquitto from here
  • Install Node-Red using this link

Install the dependencies and start the server.

$ node-red

you should see

$ Welcome to Node-RED
===================

28 Nov 13:59:04 - [info] Node-RED version: v1.0.2
28 Nov 13:59:04 - [info] Node.js  version: v13.0.1

If mosquitto broker is installed properly, you will be able to see

28 Nov 13:59:05 - [info] Starting flows
28 Nov 13:59:06 - [info] Started flows
28 Nov 13:59:06 - [info] [mqtt-broker:Localhost] Connected to broker: mqtt://localhost:1883

Application will be Launched on browser

localhost:1880

Installing additional packages

Open Manage palette Install the follwing dependencies

  • node-red-dashboard - 2.17.1
  • node-red-contrib-sensor-ds18b20

Starting NODE-RED

Open shell/command-prompt and the jump to the project directory run the below command to start Node-RED.

node-red

This will bring up the following window.

Image 1

Importing Flow

Next step for simulation is to import the discovery and communication flow into Node-Red.

To do so, we should first open the menu from the top left button and the click import. After that we select discovery.json and communication.json from the current directory.

Image 2

Running Simulation

Discovery

Select the Discovery flow and click on Deploy button on the top. And to start the simulation click on the Start Discovery button as shown in the image below.

Image 3

Discovery protocol will be running in the Discovery Protocol tab and communication protocol will be running in Communication Protocol tab.

Implementation

To simulate discovery and communication the project uses MQTT channel to simulate wireless communication channel. Every node belong belong to one or more channel which simulate that the nodes can in communication range.

Discovery Protocol

A sample of the code to simulate a discovery node is shown in the file Discovery_Communication_Flow.json.

Communication Protocol

Sample code of a node participating in communication is given in th file Discovery_Flow.json

Summary of Steps

  • Import Discovery_Flow.json
  • Import Discovery_Communication_Flow.json
  • Open the csv node from simulation window and configure appropriate path based on OS (Windows/Linux)
  • Deploy
  • you should be able to see logs in debug window

License

MIT

Free Software, Hell Yeah!

About

The Body Area Network Project is completed as a part of CS7NS1 Module - Scalable Computing which demonstrates a communication protocol that would allow sensors in a WSN communicate with each other in a peer to peer setting

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published