Skip to content

Fix: add a very minimal README on how to use can-utils … #27

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions libraries/Arduino_CAN/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
`Arduino_CAN`
=============
### How-to-`SocketCAN`
* Connect your [SocketCAN](https://en.wikipedia.org/wiki/SocketCAN) capable CAN/USB dongle to the PC and configure it.
```bash
sudo ip link set can0 type can bitrate 250000
sudo ip link set up can0
```
* Install can-utils for cansend/candump:
```bash
sudo apt-get install can-utils
```
* Transmit CAN frames via [`cansend`](https://manpages.ubuntu.com/manpages/lunar/man1/cansend.1.html):
```bash
cansend can0 1F334455#1122334455667788
```
* Display received CAN frames via [`candump`](https://manpages.ubuntu.com/manpages/lunar/man1/candump.1.html):
```bash
candump can0
```