Skip to content

DEVELOPMENT OF A SYSTEM TO EXTRACT VEHICLE PARAMETERS

Notifications You must be signed in to change notification settings

ngonza27/ctp-ngv-23

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DEVELOPMENT OF A SYSTEM TO EXTRACT VEHICLE PARAMETERS

Author: Nicolas Gonzalez Vallejo
Supervisors: Stefano Longo, Salvatore Gariuolo
Contact: {s.gariuolo, s.longo, n.gonzalezvallejo.869}@cranfield.ac.uk

Index

Project structure

.
├── assets
│   ├── current_work.txt
│   ├── results
│   │   └── results_malfunction_system.png
│   ├── sequence_diagram.png
│   └── strucutre-class.drawio (1).png
├── README.md
├── scripts
│   ├── disable_vcan0.sh
│   ├── enable_vcan0.sh
│   ├── optimized_make.sh
│   ├── run_main.sh
│   └── test_services.txt
├── src
│   ├── dtc_decoder.c
│   ├── History.log
│   ├── main
│   ├── main.c
│   ├── Makefile
│   ├── py
│   │   ├── notes.txt
│   │   ├── read_data.py
│   │   ├── send_data.py
│   │   └── us-east-1
│   │   ├── AmazonRootCA1.pem
│   │   ├── certificate.pem.crt
│   │   └── private.pem.key
│   ├── receiveMessage.c
│   ├── sendMessage.c
│   ├── service01.c
│   ├── service02.c
│   └── service0307.c
└── test
├── can_simulator
├── can_simulator.c
└── Makefile

Prerequisites

Install the following libraries:

$ sudo apt-get install can-utils
$ pip install AWSIoTPythonSDK
$ curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o      "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install

How to run

  • Enable the virtual can interface.   Note: Check that the script has executable perimissions.
$ ./scripts/enable_vcan0.sh
  • Disable the virtual can interface.   Note: Check that the script has executable permissions.
$ ./scripts/enable_vcan0.sh
  • Run the malfunction detection system.
$ cd src
$ make
$ ./main
  • Run can diagnostics simulator.
$ cd test
$ make
$ ./can_simulator
  • Run the python script for the data transmision.
$ python3 send_data.py --endpoint {id}-ats.iot.us-east-1.amazonaws.com --r ./us-east-1/AmazonRootCA1.pem --cert ./us-east-1/certificate.pem.crt --key ./us-east-1/private.pem.key

About

DEVELOPMENT OF A SYSTEM TO EXTRACT VEHICLE PARAMETERS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published