Jeen Poonprachasin
← All projects
ADAS Simulation · MATLAB · Test Data

Active Safety Test Tools at DTNA

Four tools for Daimler Truck's Active Safety team, from a PreScan sensor model to CAN-log converters and a Git migration.

PreScan simulation of a truck with camera and radar sensor beams

Daimler Truck North America · Mechanical Engineering Intern, Advanced Engineering (Active Safety Team) · Apr–Sep 2023

I completed four projects for the team that tests and develops driver-assistance features on trucks.

PreScan sensor integration

PreScan is a physics-based simulator for developing Advanced Driver Assistance Systems (ADAS). Six sensors had to move from an older experiment into the team’s new one.

  • I put most of my effort into the safe route first: rebuilding the camera and six short- and long-range radar sensors with matching beam range, angle, position and operating frequency. All of them worked as intended in the new experiment.
  • In parallel, I tested a faster route that had failed in an older PreScan version. I found that vehicles and sensors can be exported and imported together or separately as .pof (PreScan Object File) files, so the team can reuse them across future experiments.

CAN log conversion (.blf to .mat)

Vehicle tests record ECU CAN data as .blf files. The team had been converting them with Vector software or a CANape converter called from MATLAB.

  • I wrote readblfv2.m using MATLAB’s Vehicle Network Toolbox (blfread and canSignalTimetable). It asks for a .dbc file, accepts several .blf files at once, and saves each as a .mat file.
  • The output still nested many signals inside one variable (for example a 909×7 timetable), so I wrote easymat.m to reshape each signal into a simple [time, value] array that is easy to plot.

MATLAB library migration (SVN to Git)

Mlib is the group’s library of 300+ MATLAB scripts in 12 folders, built since about 2013. Examples include plotting test data on a Google map. DTNA was moving from SVN to a GitHub server.

  • Fixed errors caused by newer MATLAB versions. For example, arguments became a reserved keyword in R2019b and broke older scripts that used it as a variable name.
  • Learned Git and the Linux command line, then rewrote the SVN-dependent startup.m and related scripts.
  • Found a way to run Git commands from inside MATLAB. The migration didn’t depend on it, but it gave users and editors another option for working with the library while writing MATLAB scripts. I also documented step-by-step installation on the GitHub server.

FreeWave serial radios

The team uses older FreeWave serial radios at the High Desert Proving Grounds in Madras for GNSS corrections. They bought two new FGR3 radios that had never been set up.

  • Attended FreeWave’s training, then bench-tested the two radios sending and receiving messages.
  • Documented the “golden” settings, software requirements and a quick setup guide for the team.

Tools: PreScan, MATLAB (Vehicle Network Toolbox), Simulink, Git, Linux, FreeWave FGR3.