README
Steps to execute various scenarios
- Run the automation script to install all the required dependencies on all PIs.
- Activate the venv RpiVanet, that was created by the script.
For Scenario-1 (Traffic Signal)
- Run signal_1.py
- Once the signal_1 is up and running, continue to run vehicle_2.py. The vehicle would react according to the message received from the traffic signal.
For Scenario-2 (Parking)
- Run parking_3.py.
- Once parking_3 is up, run vehicle_3.py. This will allow the vehicle to move towards parking, check for its status and occupy or move away from the parking slot.
For Scenario-3 (Vehicle-1 Meets with Accident, Vehicle-7 Sends Signal to RSU-1)
- Run vehicle_1.py
- This will emulate an accident scenario and the vehicle will be down.
- Run rsu_1.py.
- This will run the rsu, which continuously fetches data from the cloud.
- Run vehicle_7.py.
- Vehicle 7 moves towards the accident spot, reports this to the rsu_1, which in turn pushes this info to cloud using AWS Lambda. All others RSUs get this information as well.
For Scenario-4 (Vehicle-8 gets information from RSU-2, changes lanes)
- Run rsu_2.py.
- It will continuously fetch information from the cloud. It will have received the message that was sent by rsu_1 about the accident to vehicle_1.
- Run vehicle_8.py
- Vehicle 8 moves towards RSU-2, upon reaching near it, RSU-2 transmits the signal regarding the accident.
- Vehicle 8 changes course of journey from the nearby junction and takes a turn.
For Scenario-5 (RSU-5 informs Ambulance of accident, Ambulance goes to accident spot)
- Run rsu_5.py
- This will continuously fetch information from the cloud. The accident that happened with vehicle 1 will be received here.
- Vehicle 10, which is nearby RSU-5 gets the signal, and moves towards the accident spot.
Communication with other pods
- Run rsu_4.py
- A drone from Team-3 will fly near one of our RSUs (RSU-4) and report an accident that took place on its path.
- This accident information is also circulated among all our RSUs through the use of AWS lambdas.