#!/bin/sh # Brings up can0 at the same bitrate as the Nucleo (CAN_BITRATE in src/can_send_test.c). # Usage: ./can_up.sh [bitrate] (default 250000) BITRATE=${1:-250000} sudo ip link set can0 down 2>/dev/null sudo ip link set can0 up type can bitrate "$BITRATE" ip -details -statistics link show can0