Skip to content

Commit 97d3df9

Browse files
TimFred
authored andcommitted
add udev rule
1 parent 43d51b9 commit 97d3df9

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,15 @@ We have provided a convenience script to reset all CAN devices. Simply run
4040
sh scripts/reset_all_can.sh
4141
```
4242

43+
If you want the CAN interface to be automatically enabled on startup, you can run:
44+
```bash
45+
sudo sh devices/install_devices.sh
46+
```
47+
This script installs a udev rule that will automatically bring up all CAN devices whose names start with can*.
48+
49+
⚠️ Note: If you later set persistent CAN IDs with different names, you may need to adjust the udev rule accordingly.
50+
51+
4352
### See [set_persist_id_socket_can.md](doc/set_persist_id_socket_can.md) if you want to set persistent CAN device names
4453

4554
## Gripper type

devices/rules/flow_base.rules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ ACTION=="add|change", SUBSYSTEMS=="usb", ATTRS{idVendor}=="1d50", ATTRS{idProduc
77
RUN+="/bin/sh -c 'echo 1d50 606f > /sys/bus/usb/drivers/gs_usb/new_id'"
88

99
# Configure CAN interface when detected
10-
SUBSYSTEM=="net", ENV{INTERFACE}=="can0|FlowBaseCAN*", ATTRS{bInterfaceNumber}=="00", \
10+
SUBSYSTEM=="net", ENV{INTERFACE}=="can*|FlowBaseCAN*", ATTRS{bInterfaceNumber}=="00", \
1111
RUN+="/sbin/ip link set $name type can bitrate 1000000", \
1212
RUN+="/sbin/ip link set $name up"

0 commit comments

Comments
 (0)