The goal of this project was to provide a solution to current security risks with vehicle to vehicle interaction and to traffic congestion. In this research project, I created a simulation of secure interaction between vehicles using four Raspberry Pi. I utilized a Blockchain network to make the communication between the Pi secure.
First, I set up each of the four Raspberry Pi 3 B+ using the Raspbian operating system and connected the Pi to a central computer. Next, I installed the GPS-based app What 3 Words on each Pi to retrieve its location and used the SCP command-line utility to send this location to the other Pi and central computer. After, I used Solidity to code the smart contract that validated the locations of the four Pi. Then, I shifted the Pi around to generate trials of suspicious and not suspicious behavior. Finally, the nodes in the network (the four Pi and central computer) used the smart contract to validate each trial as having suspicious or no suspicious behavior based on the validating criteria. Currently, the two situations where the smart contract will detect suspicious behavior is if the locations of multiple Pi are identical or if the locations of any Pi change at an abnormal rate. After building the smart contract, I generated 60 trials of suspicious and no suspicious behavior and found that network accurately validated the locations of the Pi, resulting in secure communication between the Pi.
Languages used: Solidity, Mongo, Python