Welcome Dr Ken Tindell of Canis Labs
Ken heard episode #631 where Chris was talking about a Noisy Rude Bus and he objected. Stringently (it seems Ken has since pulled down the posts, but they were in good fun)Chris had been planning to talk about Ken’s recent awesome post about CAN hacking and cars being stolen, so he asked Ken to be on the show!CAN was invented to reduce weight in car cable harnesses, which were increasing rapidly with more electrical features being included.CAN vs LINCAN was expensive, but LIN is cheap because it’s bit banging the protocol from a microcontrollerThere are bridges to go between CAN and LIN buses.Modern cars have 20-100 ECUs (controllers), but it depends on the features the car has. But that’s not just microcontrollers, Ken estimates that could be as high as 700.Chris and Ken both had dealth with Philips / Freescale / NXP / Motorola as silicon vendors in the automotive spaceHow does a tiny microcontroller get data onto the bus?Prioritized trafficCAN indentifier field has priority baked inBus works like a giant AND gate where the lowest address wins11 bitsHow to unwind CAN trafficPacking signals into CAN frameTools to reverse engineerProtocol decoder for sigrokCAN HG250kb is slowCAN bus bandwidthThere is Ethernet in cars now, especially with more and more camerasBandwidth vs latencyAddressing through a gatewayAtomic broadcasts means you know that each device has processed itProtocol hackingTrucks aren’t OEM based so more vertically integratedSAE J1939 standard in trucksIf say Toyota develops the CAN messages, DBC files decode everything.But manufacturers don’t publish them, so some car messages are reverse engineeredAccessories busWho has access to DBCs?Diagnostic systemsOBD2CARBCAN is physical ISO 11898CAN XL has IP packets, so you can use wiresharkKen has written about wiresharkCAN 2.0, CAN FDDevices on a bus are normally all bare metal or RTOS because of the timing requirementsOSEK standardEmbedded system abstractionDealing with the magnitude of decisions making in the automotive industryChris asked about whether self-driving will happen in 5 or 20 years? (ie. does he agree with Chris or Dave). It was the latter, sadly.Autonomic Cars podcast with Dr Phil Coopman