Coder Social home page Coder Social logo

mobi's Introduction

Mobi

This repository shows the possibility of using blockchain technology in the context of a car platooning. It shows how to perform transactions to compensate the first vehicle automatically via the IOTA Tangle. In addition, the current status of the platooning is written to the tangle due to its traceability and transparency. For better illustration, we have implemented this on self-constructed autonomously driving cars that platoons on a defined course and exchange transactions via the IOTA tangle.

In this repository there is Arduino code to let the self-built cars drive autonomously. It also contains NodeJ's code, which manages the platooning and communicates with the IOTA Tangle, listens for transactions and sends transactions.

Screenshots

alt text

Installation

  1. Install Compass from https://github.com/iotaledger/compass
  2. Open all remote options of IRI set PORT to 14265, enable ZMQ and set the ZMQ_PORT to 5555
  3. Replace the snapshot.txt with the following line
RPP9FILTOTIVUVXTAFIZCMXABKLXFIJY9NUPC9XWWCXEIIQXBCSNS9DYTRAJJIGDVPNOABWDQDVTADBLC;2779530283277761

This allocates all token supply to seed

SEEDB9999999999999999999999999999999999999999999999999999999999999999999999999999
  1. Install Angular-CLI
$ npm i @angular/cli
  1. Setup and install
$ clone https://github.com/MatthiasBabel/mobi
$ cd mobi
$ npm install
$ cd frontend
$ npm install
$ cd ..
$ nano src/config.json
  1. Configure IPs if you run both platooning participants on one device use 127.0.0.1 otherwise use the respective IPs of the devices
$ nano src/config.json
$ nano frontend/src/app/site/config.json

Run it

$ node src/passivePlatooning.js
$ node src/activePlatooning.js
$ cd frontend
$ ng serve

Now you are able to simulate the platooning payments on your browser. For simplicity you control both participants

Authors

mobi's People

Contributors

matthiasbabel avatar langarmjonny avatar

Watchers

James Cloos 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.