This is probably the most disappointing experience of the entire project. The component that took the most time to develop also delivered the worst results…
I would have loved to work with a radar providing access to its raw signals, such as ADC or power spectrum. Unfortunately, most radar sensors available on the market expose only processed data: at best, a point cloud, and more often, an object-level interface.
Since triple redundancy was one of the concepts I really wanted to investigate, I decided to purchase what was available. It turned out to be a complete waste of money, but by the time I realized the limitations, it was too late to change direction.
Undocumented interface
The CTLRR-540 is a 77 GHz 4D imaging millimeter-wave radar developed by Shenzhen ChengTech Technology (product page).
The supplier does not provide a sensor SDK or API. Instead, they provide a collection of screenshots and spreadsheets explaining how to decode the output data.
If all you need is the point cloud, this might be sufficient. However, there is considerably more information required to properly interpret the radar output. I ended up reverse-engineering parts of the interface using the available documentation, resulting in a rather hacky implementation. And to be honest, I’m still not 100% confident that I got everything right.
Sensor crashes
Believe it or not, the radar actually crashes!
I had quite a few email exchanges with the supplier. They were always friendly and supportive, but we never really reached the same conclusion regarding the root cause.
They strongly suspected a power supply issue. However, given my architecture, I found this explanation unlikely. The entire SensorPod, including all sensors and the Raspberry Pi, was powered by the same supply. If there had been a power supply issue, I would have expected other components to reset as well. This never happened.
I then suspected a possible internal connector issue. To investigate, I kept the radar running while physically shaking it, trying all sorts of movements and orientations. Nothing happened. The sensor remained operational.
Eventually, I started suspecting something else: the radar seems to crash when the scene becomes too busy!
Most of the time, the sensor recovers automatically after approximately 14 seconds. However, occasionally, it simply fails to come back online. I had to add a power switch on the radar supply line so that I could force a power cycle whenever this happened. Not exactly what I had in mind when designing the SensorPod! 🙁

Radar mode
The real added value of the radar sensor is clearly not its point cloud density or angular accuracy. Its strength lies in the Doppler information.
Looking at the point cloud visualizations, it is quite clear that the ability to cluster points into individual objects and distinguish moving objects from the background relies heavily on Doppler measurements.

Before we move on, a quick reminder on radar processing: a FMCW radar transmits chirps. The echo comes back delayed; mixing it with the outgoing chirp gives a beat frequency proportional to range. That is the range measurement.
Speed comes from comparing successive chirps. Between two chirps, a target moving at radial speed v moves by v·Tc, and the phase of its echo turns by 4πvTc/λ. The radar measures that phase step. A phase, though, is only known modulo 2π: speeds that differ by exactly λ/(2Tc) give the same phase step. That interval is the velocity span. Anything faster than half the span folds back into it.
The radar interface provides:
- first_velocity signal is what one radar wave measured, folded into that wave’s range.
- velocity is the radar’s own unfolded value, its best guess at the real radial speed.
But can we trust the velocity information?
To check, I recorded couple of short test scenarios with the radar and the vehicle CAN bus: parked, a car leaving, an oncoming car, and a run from 0 to 70 km/h on an empty road. For a static point at azimuth θ, the measured radial speed is −v·cos θ, so the speed of the truck falls out of the radar data alone. It is a free sanity check against the CAN wheel speed and the GNSS.
The trend is there, but it is quite off!

I’ll spare you the details of the reverse-engineering process, which cost me quite a few late nights. Long story short, the radar has two operating modes: Low Speed and High Speed.
Unfortunately, both modes exhibit a systematic bias in velocity estimation, with the error increasing proportionally to the target range. Don’t ask me why… it’s a rather strange behaviour!
Anyway, after all that investigation, I eventually identified the following operating modes:

Another frustrating aspect is that the radar interface exposes several fields that should provide information about its operating state, such as wave_mode, ab_wave_flag, ambig_free_doppler_range, and real_profile_idx. Unfortunately, these fields are either constant or always set to zero, making them pretty much useless.
One last point: I suspect the situation could have been significantly better if I had been able to provide the radar with the ego-vehicle speed and yaw rate. These signals could potentially help with ego-motion compensation and Doppler interpretation. But, once again, this functionality was not documented at all!
Object detection
As you can probably imagine, I’ve already spent a considerable amount of time on this sensor, along with more than my fair share of frustration!
At this point, I’ve reached a stage where I simply want the radar to detect 3D obstacles!
RadarNet is a single-stage 3D vehicle detector. It is based on a PointPillars-style encode. A CenterNet head predict heatmap of the vehicle center, and then regresses the sub-cell offset, height, size, heading and the 2D velocity.

RadarNet struggles to detect obstacles approaching from the opposite direction. I haven’t had time to investigate this issue in depth, but I’ve already identified a couple of potential contributing factors.
First, the training dataset is clearly unbalanced: most of the objects are travelling in the same direction as the ego vehicle and adjacent lanes, with only a few examples of oncoming traffic in the opposite lanes.
Additionally, all highway scenarios have a central wall divider, which likely affects radar signal quality and may further contribute to the detection issues.

Leave a Reply