Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This document is a quick tutorial to set up:

  • Node-Red (required for getting CAN messages and sending them to FRED)

  • codegen-tooling-msxiv (required for DBC file)

  • virtual CAN (required for testing

The following are not needed but are here in case we need to install them for some reason

  • Node-Red (optional)

  • Chronograf (optional for collecting data)

  • Grafana (optional for dashboards)

Make sure that the RasberryPi and Node-Red password are changed from their default setting.

Installing and Running Node-Red

To install Node-Red, you can refer to the RPI Documentation or run the command below.bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)

To start Node-Red run

node-red-start

Once it is up and running you can access Node-Red by going to this URL

http://127.0.0.1:1880/admin

...

Generating the DBC File

Code Block
# You may need to be root or use "sudo" to run these commands

# Update packages and install dependency packages for services
apt-get update \
 && apt-get dist-upgrade -y \
 && apt-get clean \
 && echo 'Finished installing dependencies'

# Install packages
apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
  clang-format \
  git \
  golang-go \
  golang-goprotobuf-dev \
  protobuf-compiler \
  python-pip \
  && rm -rf /var/lib/apt/lists/*

# Clone and install project dependencies
git clone https://github.com/uw-midsun/codegen-tooling-xiv.git \
  && cd codegen-tooling-xiv \
  && pip install -r requirements.txt

# Generate DBC and templates
cd codegen-tooling-xiv \
  && make gen \
  && make gen-dbc

...

Code Block
 modprobe vcan
 sudo ip link add dev vcan0 type vcan
 sudo ip link set up vcan0

...

Installing and Running Node-Red

To install Node-Red, you can refer to the RPI Documentation or run the command below.

bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)

To start Node-Red run

node-red-start

Once it is up and running you can access Node-Red by going to this URL

http://127.0.0.1:1880/admin

...

Installing InfluxDB.chronograf

...