simple_can_simulator: support different interface for LIN messages 41/27741/2
authorScott Murray <scott.murray@konsulko.com>
Tue, 7 Jun 2022 20:25:40 +0000 (16:25 -0400)
committerScott Murray <scott.murray@konsulko.com>
Wed, 6 Jul 2022 18:32:43 +0000 (14:32 -0400)
commit98596c38c74586f97e1c808c923c6064755086dc
treea1b0ffca4250e4f959b23d3cdffd1f471e6c2c39
parent8eee52427d4e7bbd060f5537a19042cebb78af3a
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: I1bb0e429b849ed1e25cbd9ee8fb887e973d33081
recipes-demo/simple-can-simulator/files/simple_can_simulator.py