aboutsummaryrefslogtreecommitdiffstats
path: root/can_samples/init_vcan.sh
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-03-28 15:15:20 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2017-04-11 12:41:41 +0200
commit2cf6a1685f3ad53db6714c01d600492fe4bfc11b (patch)
tree80e6e9afd40b8d21120eefda6a58a626bdb33475 /can_samples/init_vcan.sh
parent17f087412b104b8ff96814066b54597ff6082649 (diff)
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 <romain.forlot@iot.bzh>
Diffstat (limited to 'can_samples/init_vcan.sh')
-rwxr-xr-xcan_samples/init_vcan.sh6
1 files changed, 6 insertions, 0 deletions
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