summaryrefslogtreecommitdiff
path: root/units/socketcan
diff options
authorJonathan Cave <jonathan.cave@canonical.com>2018-08-07 17:13:12 +0100
committerJonathan Cave <jonathan.cave@canonical.com>2018-08-07 17:13:12 +0100
commita9d888ec6c9082f89bd076a0c18fb995d74a1e1d (patch)
tree99992c24b9f525938558e644e5f6e3bc3146578b /units/socketcan
parentbaa0e286f34377869cfc6ad6982b7ddc3572bbba (diff)
socketcan: ensure bitrate set before small pkt tests
Diffstat (limited to 'units/socketcan')
-rw-r--r--units/socketcan/jobs.pxu6
1 files changed, 6 insertions, 0 deletions
diff --git a/units/socketcan/jobs.pxu b/units/socketcan/jobs.pxu
index 8880168..46bb31e 100644
--- a/units/socketcan/jobs.pxu
+++ b/units/socketcan/jobs.pxu
@@ -168,6 +168,9 @@ command:
BASH_XTRACEFD=1
set -ex
ip link set {interface} down
+ # Following command is only supported configuration method when using the
+ # IXXAT driver from HMS
+ ip link set {interface} type can bitrate 1000000
ip link set dev {interface} mtu 16
ip link set {interface} up
socketcan_test.py {interface} 111 --remote
@@ -192,6 +195,9 @@ command:
BASH_XTRACEFD=1
set -ex
ip link set {interface} down
+ # Following command is only supported configuration method when using the
+ # IXXAT driver from HMS
+ ip link set {interface} type can bitrate 1000000
ip link set dev {interface} mtu 16
ip link set {interface} up
socketcan_test.py {interface} E407DB --remote --effid