From ab0db147a68759d52ad2998b2a12a7401fe6d4ef Mon Sep 17 00:00:00 2001 From: DFriend01 Date: Tue, 4 Jul 2023 23:20:06 -0700 Subject: [PATCH] Update config bbb pins script for configuring CAN --- scripts/config_bbb_pins.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/config_bbb_pins.sh b/scripts/config_bbb_pins.sh index 09ff937..d99f274 100644 --- a/scripts/config_bbb_pins.sh +++ b/scripts/config_bbb_pins.sh @@ -10,4 +10,8 @@ config-pin p9.22 uart config-pin p9.19 can config-pin p9.20 can +sudo ip link set can0 down +sudo ip link set can0 up type can bitrate 500000 +sudo ifconfig can0 up + exit 0