added scripts to setup/bringup can

This commit is contained in:
Ruixiang Du
2020-08-14 13:26:13 +08:00
parent e1a776b5cb
commit 6c43a30f87
3 changed files with 18 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
#!/bin/bash
# bring up can interface
sudo ip link set can0 up type can bitrate 1000000

View File

@@ -0,0 +1,4 @@
#!/bin/bash
# bring up can interface
sudo ip link set can0 up type can bitrate 500000

10
scripts/setup_can2usb.bash Executable file
View File

@@ -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