News for hackers. Stuff that matters.
Re:Volvo is using Rust for its in-vehicle software by reaperducer on Saturday September 24, 2022 @10:05AM (#32962717)
They may blink fine for a awhile but then stops for a period, and then suddenly all missed blinks blinks in a rapid succession.

Clearly, it's a software issue, not a hardware issue. Hard to believe that software is really cheaper than a 555 timer. I wonder why this decision was made.

Re:Volvo is using Rust for its in-vehicle software by Mankaninen on Saturday September 24, 2022 @11:32AM (#32963630)
A modern car has >100 ECUs, blink is distributed to a few ECUs, think: front body, rear body, left door, right door plus instrument cluster and maybe a trailer control ECU. It does not look premium if they do not blink in phase so you send CAN command for blinking. (A separate cable introduce cost, weight and faults due to corrosion that are tricky to diagnose, in total you want to avoid that.) If something disturb CAN or an ECU reboots you would get the described behavior. But it is not obvious (at least not to me) that it must be a software error - could easily be hardware designed with too small margins. (I have not worked with this issue at Volvo and do not know the actual cause of the problem.)
Re:Volvo is using Rust for its in-vehicle software by jeffrallen on Saturday September 24, 2022 @12:11PM (#32964004)
Alternatively, you could design the system to fail in a way that was less dangerous.

For example, an ECU that controls blinkers does it with a 555 timer, based on a "start blinking" CAN bus command. It resyncs on each new "start blinking " command. It times out after 50 blinks, if no "stop blinking" command comes.

This makes each ECU autonomous and responsible for doing "the safe thing", once it has been commanded to.

Finding all the new subtle horrible timing problems in this design is left as an exercise for the reader. :)

Re:Volvo is using Rust for its in-vehicle software by aidenn0 on Saturday September 24, 2022 @11:28AM (#32963578)
Because blinkers aren't on a mechanical switch anymore. You have the "lane change mode" where it blinks a few times, they also blink when the alarm goes off it or when hazard lights go on.

3 different controllers or software becomes an easy choice when CAN is already running everywhere