Telemetry System
The new telemetry system uses a Raspberry Pi to collect CAN messages from the vehicle along with metrics such as GPS coordinates. We use Node-Red to collect this data and also send it to FRED’s Node-Red which will store our data in the cloud and allow us to pull data from InfluxDB which is hosted by FRED.
Raspberry Pi
The link below shows how to set up Node-Red, InfluxDB, and Grafana locally on the Raspberry Pi.
Telemetry: Setting up Node-Red, Chronograf, and Grafana
To set up the connection between the Raspberry Pi’s Node-Red and FRED’s Node-Red, refer to the link here:
Connecting Device Node-Red to Cloud Node-Red
Multiple Network Interface Traffic (Multihoming)
We can set up the Raspberry Pi such that we can send data over both LTE and wifi depending on the location of the vehicle and our situation. We can set this up on the Pi by following instructions provided here or read the short version below.
Assign each interface IP address using ifconfig to set up multihoming.
Example:
# ifconfig eth0 192.168.1.254 up
# ifconfig eth1 192.168.2.254 up
FRED
Link to FRED. This is the system we will be using that hosts Node-Red and InfluxDB on the cloud.
Long Term Storage
In terms of storing data locally on the Raspberry Pi, Node-Red can directly output the data to a CSV file locally on the Raspberry Pi. These files can be manually moved to Google Drive if necessary. The youtube tutorial below explains how to use the CSV node in Node-Red.
For our purposes, the setup should look something like this.