Skip to content

Commit 18426c4

Browse files
authored
Merge pull request #27 from arduino/fix-minimal-doc-can-utils
Fix: add a very minimal README on how to use can-utils …
2 parents abefe60 + 34d327f commit 18426c4

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

libraries/Arduino_CAN/README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
`Arduino_CAN`
2+
=============
3+
### How-to-`SocketCAN`
4+
* Connect your [SocketCAN](https://en.wikipedia.org/wiki/SocketCAN) capable CAN/USB dongle to the PC and configure it.
5+
```bash
6+
sudo ip link set can0 type can bitrate 250000
7+
sudo ip link set up can0
8+
```
9+
* Install can-utils for cansend/candump:
10+
```bash
11+
sudo apt-get install can-utils
12+
```
13+
* Transmit CAN frames via [`cansend`](https://manpages.ubuntu.com/manpages/lunar/man1/cansend.1.html):
14+
```bash
15+
cansend can0 1F334455#1122334455667788
16+
```
17+
* Display received CAN frames via [`candump`](https://manpages.ubuntu.com/manpages/lunar/man1/candump.1.html):
18+
```bash
19+
candump can0
20+
```

0 commit comments

Comments
 (0)