Giter Site home page Giter Site logo

vehicular-networks's Introduction

Vehicular Networks project

Vehicular ad hoc network project to monitor and share driver state

Setup

Flash multiple raspberry pi 3 SD Cards

  • Download Raspbian Lite
https://www.raspberrypi.org/downloads/raspbian/
  • Flash micro SD Card
# check sdcard disk number
diskutil list

# unmount sdcard
diskutil unmountDisk /dev/diskn

# replace n with disk number
sudo dd bs=1m if=path_of_your_image.img of=/dev/rdiskn
  • Enable SSH Access
touch /Volumes/boot/ssh

SSH into flashed raspberry pi

  • Plug in ethernet cable

  • Locate raspberrypi.local domain

  • SSH

$ ssh [email protected]
passwd: raspberry
  • You can now copy ssh keys and alias

Deploy code

OBU

  • Edit deploy.sh on this project's root folder
IP="<your-raspberry-ip>"
  • Run script with args = CODE

  • Code should be deployed to raspberry

Create RSA keys for nodes encrypted communication (needed for sensors data sharing)

  • Chosse a raspberry with code deployed

  • Go to shared/security

  • Run rsa.py

python rsa.py
  • Copy generated private.key and public.key to other raspberries on the same folder

Run project on each raspberry

  • Edit setup.sh on each device folder to reflect choose ip address

  • Run setup.sh on each device folder (OBU, RSU or Center-ITS)

internet access is needed to install dependencies

* You can share your laptop internet connection by ethernet to the raspberry pi
  • Run last command in setup.sh to start project (python)

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.