simple_can_simulator: support different interface for LIN messages 14/27614/1
authorScott Murray <scott.murray@konsulko.com>
Tue, 7 Jun 2022 20:25:40 +0000 (16:25 -0400)
committerScott Murray <scott.murray@konsulko.com>
Tue, 7 Jun 2022 20:25:40 +0000 (16:25 -0400)
commitd9cc99764c61e7343c130c4e4da77a24da8515a4
treed26106abcefe7f7d98af293f86e660704003911d
parent0536b1b7eaadc6a20540757c9b19350f83820279
simple_can_simulator: support different interface for LIN messages

Add a "--lin-interface" option to simple_can_simulator.py to allow
specifying a different CAN interface for the cruise control LIN
messages from the steering wheel in the demo setup.  This allows
pointing at the sllin0 interface in the full demo setup that is
configured with the agl-demo-preload feature.  Previously the
CAN messages for the LIN events were bridged to the primary CAN
interface, but this has proven unreliable in practice.

Bug-AGL: SPEC-4431

Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: I18b2bb8042569e220c79445d310c620dcebac9fc
recipes-demo/simple-can-simulator/files/simple_can_simulator.py