Skip to content

Instantly share code, notes, and snippets.

View spaceKelan's full-sized avatar
🛰️
Everything is nominal

Andy spaceKelan

🛰️
Everything is nominal
  • 11:34 (UTC +02:00)
View GitHub Profile
@pavel-kirienko
pavel-kirienko / setup_slcan
Last active June 28, 2024 23:16
setup_slcan -- a simple script for managing SocketCAN SLCAN interfaces on GNU/Linux
#!/bin/bash
# https://gist.github.com/pavel-kirienko/32e395683e8b7f49e71413aebf5e1a89
# Pavel Kirienko <pavel@opencyphal.org>
HELP="Register slcan-enabled serial-to-CAN adapters as network interfaces.
Usage:
`basename $0` [options] <tty0> [[options] <tty1> ...]
Interface indexes will be assigned automatically in ascending order, i.e., the
first device will be mapped to slcan0, second to slcan1, and so on.