diff --git a/scripts/bringup_can2usb_1m.bash b/scripts/bringup_can2usb_1m.bash new file mode 100755 index 0000000..f7e3b6e --- /dev/null +++ b/scripts/bringup_can2usb_1m.bash @@ -0,0 +1,4 @@ +#!/bin/bash + +# bring up can interface +sudo ip link set can0 up type can bitrate 1000000 \ No newline at end of file diff --git a/scripts/bringup_can2usb_500k.bash b/scripts/bringup_can2usb_500k.bash new file mode 100755 index 0000000..e638f6a --- /dev/null +++ b/scripts/bringup_can2usb_500k.bash @@ -0,0 +1,4 @@ +#!/bin/bash + +# bring up can interface +sudo ip link set can0 up type can bitrate 500000 \ No newline at end of file diff --git a/scripts/setup_can2usb.bash b/scripts/setup_can2usb.bash new file mode 100755 index 0000000..6a8d891 --- /dev/null +++ b/scripts/setup_can2usb.bash @@ -0,0 +1,10 @@ +#!/bin/bash + +# enable kernel module: gs_usb +sudo modprobe gs_usb + +# bring up can interface +sudo ip link set can0 up type can bitrate 500000 + +# install can utils +sudo apt install -y can-utils \ No newline at end of file