Vehicular ad hoc network project to monitor and share driver state
- 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
-
Plug in ethernet cable
-
Locate
raspberrypi.local
domain -
SSH
$ ssh [email protected]
passwd: raspberry
- You can now copy ssh keys and alias
- Edit
deploy.sh
on this project's root folder
IP="<your-raspberry-ip>"
-
Run script with args = CODE
-
Code should be deployed to raspberry
-
Chosse a raspberry with code deployed
-
Go to
shared/security
-
Run rsa.py
python rsa.py
- Copy generated
private.key
andpublic.key
to other raspberries on the same folder
-
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)