From 2cf6a1685f3ad53db6714c01d600492fe4bfc11b Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Tue, 28 Mar 2017 15:15:20 +0200 Subject: Improve documentation and added can samples This explicit use cases with virtual CAN device or Porter board CAN devices Also, it add a complete trip with "vehicle.speed" obd2 signal recurring requests. to be use with canplayer to replay a real car trip. Change-Id: I66c762fa23ed409c812765d6d82e78138edbd455 Signed-off-by: Romain Forlot --- can_samples/init_vcan.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 can_samples/init_vcan.sh (limited to 'can_samples/init_vcan.sh') diff --git a/can_samples/init_vcan.sh b/can_samples/init_vcan.sh new file mode 100755 index 00000000..531dd1e1 --- /dev/null +++ b/can_samples/init_vcan.sh @@ -0,0 +1,6 @@ +#!/bin/sh +# example for setting up vcan0 and modules +sudo modprobe can +sudo modprobe vcan +sudo ip link add dev vcan0 type vcan +sudo ip link set up vcan0 -- cgit 1.2.3-korg