4 ms·
Can I also send CAN messages to manipulate the throttle programmatically?
by stavros 5y ago
Can I also send CAN messages to manipulate the throttle programmatically?
- wffurr 5y agoYou sure can. In fact, at least for my car (2018 Chevy Bolt), it's possible to find detailed instructions on how to wire up a throttle interceptor and hook it up to a Comma2 unit to add adaptive cruise control when it wasn't even available as a factory option. I even briefly considered doing so after reading a favorable review of the Comma2's driving algorithm by Consumer Reports, but decided too much could go wrong with messing with my car's throttle wiring.
- stavros 5y agoHmm, that's interesting... Why is the throttle interceptor necessary? Is the CAN bus jack read-only somehow?
- kube-system 5y agoThere are other devices on the bus looking for messages specifically from the throttle address. The idea is that you want to change those messages, but only sometimes (i.e. when cruise is on), so MITM'ing the messages is the easiest way to implement this.
- stavros 5y agoAh okay, I assume you can't just spoof the address then, thanks.
- kube-system 5y agoYou could, but you'd have two devices reporting different values for the same address and the devices reading that value wouldn't know what to do.
- numpad0 5y agoI don't own a car so can't stick my head under the driver's seat to verify, but it seemed like many recent cars has: - Reporting features for brake, gas, steering inputs, a la SNMP - Computer assisted brake, with a backup linkage - Fully electronic gas pedal, with a speed sensing cruise control - Electric/electronic power steering, using a torque/relative deflection sensor These features are case-by-case: - Command based "write" access for brake/gas/steering - Absolute steering position sensor So a lot of older cars require special spliced cables to fake analog readouts or nonstandard digital links to retrofit a self drive, and newer cars still needs to be purchased with those input features enabled as well.
- mdaniel 5y agoIt may interest you to know that's Comma.ai's whole "business model:" https://github.com/commaai/openpilot#what-is-openpilot https://github.com/commaai/openpilot#what-is-openpilot
- contingencies 5y agoAKA autonomous driving startup.