In this article, we explain how I built a more or less transportable test bench of an European truck.


Remember me ? Two years ago, I published an article on How I built a Car In a Box. Well, I went bigger:

Introduction

Like cars, trucks are becoming smarter. They are full of sensors gathering information for various purposes, connected to several ECUs (Electronic Control Units) that compute inputs and, ultimately, act on actuators. This system has existed for years, and the number of domains to which it applies is expanding day by day. These vehicles are also connected to the outside world (telematics, remote diagnostics, over-the-air updates), which widens the attack surface. In Europe, regulations such as UN R155 require manufacturers to take cybersecurity into account.

So why a truck? This work started with a customer request, but there are other good reasons to look at trucks. Some ECUs of interest do not exist on a car, such as the tachograph, a regulated device that records driving and rest times. Connectivity, fleet management features or remote services also add a different kind of exposure.

Like the VAGBox, the goal is simple: gather as many truck ECUs as possible on a single bench. This way, we do not need to keep a whole truck on site. A car is already bulky, and a truck is even more so.

Device Acquisition and Preparation

The TruckBox is made from a 2023 Renault Trucks T480. Renault Trucks has been part of the Volvo Group since 2001, and the two brands share a lot of technology. Trucks such as the Volvo FH or the Renault T High are built on closely related electrical and electronic architectures, which makes the ECUs found on this bench relevant to a wide range of vehicles on European roads.

The client provided a list of mandatory ECUs to include on the test bench, plus a few optional ones. In the end, we fitted all of them. This makes the TruckBox much more complex than the VAGBox: it carries 20 ECUs, compared to 7 on the VAGBox.

Here is the complete list:

ECU type Description
VMCU Vehicle Master Control Unit
EBS Electronic Braking System
ECM4 Engine Control Module
CCIOM Centre Chassis I/O Module
DDM Driver Door Module
DACU3 Driver Assistance Control Unit
LPOS Lane Position Object Sensor & FLS (Forward Looking Sensor)
TCO Tachograph
APM Air Product Management
SCIM Safety Cabin Interface Module
TECU Transmission Electronic Control Unit
AECU Anti-theft Electronic Control Unit
TGW3 Telematic Gateway
HMIIOM Human-Machine Interface Input/Output Module
IVI In-Vehicle Infotainment
IC Instrument Cluster
VS Video Switch
CCM Climate Control Module
BBM Body Builder Module
SAS Steering Angle Sensor

These are the main ECUs found in a truck. Some are related to the powertrain (ECM4, TECU, APM), some to driver assistance systems (DACU3), others handle vehicle security (VS, TGW3, SCIM), and some are for driver comfort (IVI, IC).

Ordering

The device acquisition methodology is the same as before. There are two options:

  • From manufacturers: this solution is the most expensive and ECUs need to be manually calibrated with OEM tools that we do not have.
  • From the Internet: this method offers the benefit of choosing from a wide range of vehicles.

Again, we chose the second option (I love scrapyards :D), and here is our donor truck:

BAS parts is specialized in European heavy vehicle components, and its parts are grouped by vehicle, which allows to get ECUs from the same truck. However, the ECUs are second-hand and most of the time come from accident-damaged vehicles. There is no guarantee that you will receive a working ECU, nor the matching connector.

Reminder: Most ECUs are paired to a specific vehicle. In practice, this means they store the VIN of the truck they were originally installed in, along with calibration data, cryptographic keys and sometimes a configuration specific to the vehicle's options. If you mix ECUs coming from different trucks, they may refuse to communicate with each other, throw mismatch errors or simply stay in a degraded mode. To avoid this, make sure to order all your ECUs from the same vehicle. It will save you a lot of time during the integration.

In addition to the ECUs, other parts such as the cabin wiring harness, the steering column stalks, and some dashboard components were purchased. Since some ECUs receive commands directly from the driver through these controls, using the original parts means they do not have to be simulated later. Overall, the cost of the setup was a few thousand euros.

Receiving and unboxing

That is a 180 kg parcel!

BAS Parts dismantled the requested components asked for directly from the truck, so some of them are still attached to heavy parts. The TECU comes mounted on the mechanical gear shift unit, and the APM is part of the air product management module. We also received accessory parts such as the steering column and several plastic trim pieces. Add the weight of the pallets themselves, and the total adds up quickly.

So, the first day was dedicated to inventory. The next couple of days were spent dealing with the cable spaghetti (the wiring harness). The goal was simple: find the ECU connectors and identify the relationships between ECUs (CAN, LIN, power supply, grounds, etc.). Unfortunately, the harness only covered the cabin, so improvisation was needed for the engine ECUs.

Tips: If you have the manufacturer's wiring diagram, it may save you time to simply cut the connectors off the harness.

Here, I was not sure about the reliability of the documentation I had gathered, and I wanted to preserve as much of the wiring as possible.

The result after stripping everything down:

Manufacturer documentation

As with most manufacturers, obtaining documentation requires creating an account and then purchasing a token to access it. However, with a bit of luck, some documentation may have leaked or is simply accessible. For example, when I was looking for information on a specific ECU, Gemini pointed me to a related document on the official Volvo Trucks US website.

The wiring diagrams are organized by function (e.g., infotainment), so the pins of an ECU that handles multiple functions (which is almost all of them) have to be retrieved from several different diagrams.

The following schematics, found on Scribd, are examples of what the documentation provides.

After going through one or two ECUs, I started thinking about a way to automate this repetitive task, and AI seemed like the obvious answer. The only constraint was not to send data to an external AI service. Fortunately, I had a spare PC with a Radeon RX 7900 XT, so I installed Qwen 3.6 on it and built a RAG pipeline on top of the documentation. The goal was to ask the model to generate a simple Markdown file listing the pinout of each ECU. As the documentation contains schematics as images, I used a second AI model, Qwen-VL, to convert them into text data.

No suspense: it didn't work. No matter which prompts were tried (even AI-generated ones), the model missed a lot of information. Note that this was my first time working with local AI tools, so I may have made some mistakes along the way.

Anyway, back to doing it manually for the other 18 ECUs.

Building the frame

Due to the large number of ECUs and the lack of any need for portability, aluminum profiles were chosen. They are solid, can be assembled into any shape and dimension, and look pretty good. Their T-slots also make it easy to attach accessories and other parts. The profiles were ordered pre-cut to the correct dimensions from the reseller, so assembly only required a few specific fasteners. Only the feet required tapping, which was easily done with a basic tap kit.

The correct dimensions were determined by laying the ECUs out on the ground and measuring the best layout. The result is a 3-level square frame designed to hold 60 cm wood plates (about 2 feet, for the weird people).

Adaptive/custom pieces

Fitting ECUs somewhere other than their original location often requires some adaptation. Brackets, spacers and mounting plates are rarely available off the shelf, and each ECU comes with its own shape, mounting points and constraints. This is where a 3D printer becomes really useful.

All designs were done using FreeCAD.

Assembly

The next following days were dedicated to assembly of the plates, the wiring harness, and connectors. ECU were packed by functionality as follow:

First floor

The first stage is composed of the:

  • Power converter 220/24V
  • Power converter 24V/12V
    • Used for equipment like the IVI
  • Vehicle Master Control Unit (VMCU)
    • The VMCU is the vehicle's main management computer. It is directly coupled to the cabin fuse/relay box and acts as a conductor.
  • Engine Control Module (ECM4)
  • Electronic Braking System (EBS)
    • The EBS is the control unit that manages the pneumatic braking.
  • Central Chassis I/O Module (CCIOM)
    • The CCIOM manages, among other things, the power steering, the fuel level and battery sensors; and the power supply and signals related to the trailer (reversing lights, fog lights, and brakes).

Second floor

The second stage is composed of the:

  • Transmission Electronic Control Unit (TECU)
  • Tachograph
    • The tachograph is an on-board device that automatically records driving time, breaks, and vehicle speed in order to verify compliance with driving and rest time regulations. It uses an individual driver card to reliably track this data, thereby facilitating roadside inspections.
  • Driver Door Module(DDM)
    • The DDM is responsible for controlling all the electrical functions integrated into or linked to the driver's side door (power window, central locking, exterior mirrors).
  • Air Product Management (APM)
    • The APM is the electronic and pneumatic module that manages the entire production, drying, and distribution of compressed air in the truck, as well as the parking brake.
  • Security And Cab Interface Module (SCIM)
  • Driver Assistance Control Unit (DACU3)
    • The DACU centralizes and processes all of the active safety systems and driver assistance systems (ADAS).

Third floor

The third stage is composed of the:

  • In-Vehicle Infotainment (IVI)
    • The IVI is an onboard infotainment system that provides GPS navigation, radio, Bluetooth music streaming, smartphone connectivity, as well as hands-free calling and voice control.
  • Video Management (VS)
    • The VS is an ECU primarily responsible for managing all of the vehicle's cameras.
  • Climate Control Module (CCM)
    • The CCM is an ECU whose main function is to manage the climate control inside the truck cab, either automatically or via the controls located on the dashboard.
  • Alarm ECU (AECU)
  • Human-Machine Interface Input/Output Module (HMIIOM)
    • The HMIIOM is a module responsible for managing the direct interaction between the driver and the vehicle via the various steering column stalks, as well as the instrument cluster.
  • Telematic Gateway (TGW3)
    • The TGW3 is the truck's main communication module, bridging the vehicle's internal networks with the outside world and providing fleet management, Over-The-Air (OTA) updates, and emergency calls.

Front side

  • Instrument CLuster (IC)
  • IVI screen
  • Steering Angle Sensor
  • dashboard control panels
  • Vehicle key
  • Debug port panel (Can bus DB9 connectors)
  • Engine start/stop button, the warning button, and the microphone

Left and right sides

On the left side, the following are mounted:

  • The steering column stalk

On the right side, the following are mounted:

  • The Lane Position Object Sensor (LPOS),
  • The Forward Looking Sensor (FLS),
  • The park brake control valve,
  • Tachograph.

First power-up

The ECUs were not tested individually, which was a bit of a gamble. Instead, the entire system was assembled and wired without knowing whether it would actually start up.

When only the first level was powered up, the complete absence of activity on the CAN buses was a cause for concern. However, as with the BCM in the VAGBox, the test bench was missing its equivalent, the SCIM. Once the second level was added, the test bench came to life.

The test bench is fully functional, but it comes with a set of DTC (Diagnostic Trouble Code) errors, caused by the absence of several sensors that are present on the truck (water temperature, oil level, etc.). That said, you can get around this by simulating the sensor signals, which makes the errors disappear. All the DTCs reported by the various ECUs can be read directly from the instrument cluster.

Conclusion

All in all, this was a really fun project and a great experience. Building something like this from scratch, with a fair share of surprises along the way, is exactly the kind of challenge we enjoy.

The test bench has now been delivered to the client, so unfortunately there's no chance of seeing it in person. For all you know, it could even be AI-generated. 😉

If you're wondering about the cost, expect to spend a few thousand euros on a setup like this one.

Anyway, I hope you enjoyed this post, even if it's a bit less technical than usual. And if you're interested in car hacking, get in touch about our trainings, we'd be happy to see you!

Ciao everyone, peace out ✌️


If you would like to learn more about our security audits and explore how we can help you, get in touch with us!