mirror of
https://github.com/westonrobot/ugv_sdk
synced 2023-04-08 06:32:14 +08:00
added scripts to setup/bringup can
This commit is contained in:
4
scripts/bringup_can2usb_1m.bash
Executable file
4
scripts/bringup_can2usb_1m.bash
Executable file
@@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# bring up can interface
|
||||||
|
sudo ip link set can0 up type can bitrate 1000000
|
||||||
4
scripts/bringup_can2usb_500k.bash
Executable file
4
scripts/bringup_can2usb_500k.bash
Executable 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
10
scripts/setup_can2usb.bash
Executable 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
|
||||||
Reference in New Issue
Block a user