Rennteam Uni Stuttgart · Formula Student Electric & Driverless · season 2023/24
Live data from a race car to the pit wall
Low-voltage electrics and telemetry for a Formula Student race car.
For the 2023/24 season I was responsible for the car’s low-voltage electrics and telemetry. Most of the hardware and software came from earlier team members; my job was to learn the system end to end, keep it running on the car and plan the next improvements.
My contribution
Responsible for low-voltage electrics and telemetry.
I learned an inherited system end to end, kept it running on the car and investigated where it failed.
Gateway firmware
Set up the STM32 toolchain (CLion, CMake, arm-none-eabi-gcc) and studied the gateway firmware: CAN interrupts, CAN-to-UDP conversion, the lwIP network stack and time sync.
Fault diagnosis
Diagnosed CAN and Ethernet faults with Vector CANoe/CANalyzer, CANape, PCAN and Wireshark, and debugged with ST-Link in STM32CubeIDE.
Overheating switch
Investigated communication drops from an overheating Ethernet switch board: converted the KiCad design, marked the power rails for measurement and proposed better cooling or a commercial switch.
Vehicle data
Defined a CAN node in the team’s vehicle node description (YAML to DBC and C headers), converted logs to MF4/MAT for analysis and co-authored the season’s telemetry pre-design.
Wiring harness
Wiring-harness work, including crimping connectors.
How the data travels
From three CAN buses to the pit wall.
The gateway turns traffic from three CAN buses into live data for the pit wall.
CAN buses
Sensor nodes send CAN frames on three vehicle buses (body, sensor and battery).
Gateway
An STM32F765 board timestamps each frame with 1 µs resolution and bundles frames into one UDP packet every 10 ms or every 64 frames.
Data logger
Over car Ethernet, the packets reach a Raspberry Pi that records every frame and forwards data over LTE.
Track server
Over WiFi, the same packets reach the track server, which stores them and serves live dashboards in Grafana and Vector CANape. CAN messages can also be sent back to the car.
Scale and context
A full-size vehicle network, raced in 2024.
These numbers describe the whole car’s system, not my part alone.
≈ 60
ECUs and sensor nodes
In the car’s database.
455
CAN messages
In the car’s database.
2
events in 2024
Formula Student Austria and Formula Student Germany.
Reflection
What I would improve.
The open issue I investigated was the Ethernet switch board.
Known issue
An overheating Ethernet switch board caused communication drops.
What I would improve
Better cooling for the Ethernet switch or a commercial replacement, and a validated voice-radio setup for the driver.
Full case study
Rennteam Uni Stuttgart · Communication & Telemetry group · season 2023/24
Learning an inherited vehicle network end to end
Three CAN buses, about 60 nodes, and the pipeline that brings their data to the pit wall.
What the system does
- In-car communication over three vehicle CAN buses (body, sensor, battery), a steering-wheel CAN and car Ethernet.
- Logging: every frame on every bus is timestamped and recorded on a Raspberry Pi.
- Live telemetry to the track server over WiFi, with LTE as a redundant path, and remote control in the other direction.
- Analysis: logs are converted to .mf4 / .mat for Vector CANape or MATLAB; live data appears in Grafana and CANape.
- Field updates: a custom CAN bootloader lets the team reflash ECUs over the CAN bus.
- Voice radio between the pit and the driver’s helmet, over WiFi or LTE.
The path of one CAN frame
- A sensor node, for example a tyre-temperature sensor, sends a CAN frame.
- The gateway receives it, stamps it with 1 µs resolution and queues it.
- Every 10 ms, or as soon as 64 frames are waiting, the gateway packs them into one UDP packet: broadcast to the data logger and unicast to the track server.
- The logger writes the packets to file and, with internet, forwards them over LTE.
- The track server merges the WiFi and LTE data, stores it and serves it live to the pit.
What I did
- Completed the team’s CAN and vehicle-network-description workshop and wrote my own node description.
- Completed Vector training for CANoe/CANalyzer and vSignalyzer, and learned the CANape workflow for log analysis.
- Set up the STM32 toolchain and studied the gateway firmware: CAN interrupts, CAN-to-UDP conversion, the lwIP network stack and time sync.
- Studied the gateway, switch and CAN boards in KiCad and documented how to build and run every part of the system.
- Co-authored the season’s Communication & Telemetry pre-design presentation: system overview, network diagram, live telemetry concept and the problem list.
At testing days and events
Before a run a new log starts; during the run engineers watch temperatures, voltages, wheel speeds and IMU/GPS data live and talk to the driver; afterwards the log is converted and analysed. At events, live telemetry lets the pit see overheating, battery-management warnings or lost nodes while the car is on track, and every run is kept for the design judges’ questions. The car raced at Formula Student Austria and Formula Student Germany in 2024.
Known problems and plans
- Most issues came down to CAN connection problems, so the plan was systematic testing of wiring, termination and transceivers.
- The two linked Ethernet switches dropped communication because of heat in the low-voltage box: better cooling, or a commercial switch that fits the space and the connector to the gateway.
- The voice-radio setup from the previous car needed validation with driver feedback; this was the group’s main goal for the year.