Skip to content

Unicamp E-Racing Telemetry Repository, created during my time with the team, featuring tools and resources for telemetry analysis.

Notifications You must be signed in to change notification settings

joao-victor-s/telemetry

Repository files navigation

Introduction

This repository contains portions of the code for the Unicamp E-Racing telemetry system, showcasing the work done for demonstration purposes.

In the "How It Works" folder, you'll find detailed information about the architecture. Feel free to explore!

Installing and running

To run the complete telemetry stack in production mode, first install Docker and Docker Compose.

Step 1: Check if SocketCAN is Already Installed

Before installing SocketCAN, it's recommended to verify if it's already available on your system. Open a terminal and execute the following command:

sudo modprobe can

Note: If the command returns an error message, SocketCAN is not installed. If it returns nothing, SocketCAN is already installed.

Step 2: Install SocketCAN

If SocketCAN is not already installed, follow these steps:

  1. Open a terminal window and install the can-utils package:
sudo apt-get install can-utils
  1. After the package is installed, load the CAN module:
sudo modprobe can

Step 3: Create a Simulator on Your Computer

  1. Create a virtual CAN using the script "create_vcan.sh":
sh simulator/create_vcan.sh
  1. Run the CAN message decoder:
python3 decode_can.py
  1. In a separate terminal, launch the CAN message metric generator:
python3 pycan.py

Step 4: Run the Front-end

  1. In yet another terminal (yes, quite a few terminals), execute:
bash scripts/run-dev.sh

Note: Front-end may not be built yet.

  1. Open your preferred browser and visit:

Step 5: Access and Explore Grafana

  1. Log in using the following credentials:

    • User: admin
    • Password: admin
  2. Access our Data Source on the side bar:

    • Configuration > Data Sources > Unicamp E-Racing

    Note: Select it and run a test.

  3. Select "Create" and then "Import", import the .json files from the dashboards and then access them.

* Production mode doesn't allow frontend/backend debugging, hot code reloads and unsigned Grafana plugins. Refer to the Development Setup if you want to run it in development mode.

About

Unicamp E-Racing Telemetry Repository, created during my time with the team, featuring tools and resources for telemetry analysis.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published