Coder Social home page Coder Social logo

shantanoo-desai / bramblez1 Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 376 KB

Visualisation tool for Zolertia Z1

License: GNU General Public License v3.0

Python 2.98% JavaScript 91.21% CSS 4.73% HTML 1.08%
contiki-os border-router coap erbium visualisation smcp zolertia-z1

bramblez1's Introduction

BRambleZ1

Visualisation tool for Zolertia Z1 based on BRamble by Mariano Alvira, with modifications for Zolertia Z1 motes. Visualize your Multi-hop Network and access CoAP Resources on it.

Installation Guide

Cloning the directory:

https://github.com/shantanoo-desai/BRambleZ1.git

Dependencies

For Ubuntu/Debian based machines:

	apt-get update
	apt-get install cython libjs-jquery python-flask python-pip python-dev ipv6calc

For Flask dependencies:

	pip install Flask-OpenID Flask-Login Flask-Principal Flask-Bcrypt Flask-Mako IPy gevent-socketio

Back-end CoAP

BRambleZ1 uses SMCP. Please install SMCP by visiting the repository.

Running BRambleZ1

Make a shebang command to avoid writing python runserver.py each time.

	$cd BrambleZ1/web
	$chmod a+x runserver.py
	$./runserver.py

Border Router setup and Motes

Border Router

The Border Router used here is Erbium-br. A border-router without HTTP but with Erbium Engine on it and implementation of rplinfo for Routing Information based on CoAP

(NOTE: Refer to the README in erbium-br for changing in Buffer size during compilation)

Motes in the network

Motes are programmed with CoAPZ1 using Erbium in Contiki-OS. One can add/remove resources according to one's wish but DO NOT remove rplinfo.c and rplinfo.h (Needed for visualization)

STEPS

Erbium-br

upload the erbr.c on a Z1 mote and observe this:

make connect-router

and if the prefix is NOT SET press the USR button on the mote. After that observe the Router Address in JSON format:

	*** Address:bbbb::1 => bbbb:0000:0000:0000
	Got configuration message of type P
	Setting prefix bbbb::
	{"addrs":["bbbb::c30c:0:0:1373","fe80::c30c:0:0:1373",]}

BRambleZ1

do the following:

  1. Connect the Erbium-br as shown above

  2. in a new terminal

	cd BrambleZ1/web
	./runserver.py

Observe similar to this:

	grep_radio_ip
	Radio ips are [u'bbbb::c30c:0:0:1373', u'fe80::c30c:0:0:1373']
	get_radio_channel
	Radio set to channel 26
  1. On Mozilla Firefox type the following:
	localhost:5000/
  1. You will be directed to the Login Page and the password is "default"

  2. after login, you will be directed to mesh.html where the visualisation will occur.

Changing Border-Router IP Address

in radio.py in the bradmin folder a Section is marked for changing the border-router IPv6 Address. Put your global IPv6 and link-local address according to examples in the variable addrstr

License

Issued under the GNU GPLv3, similar to Mariano Alvira's BRamble repository

Mentions

Thanks to Kiril Petrov for mentioning the modifications

bramblez1's People

Contributors

shantanoo-desai avatar

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.