translator, wb_editors
4413
правок
Matveevrj (обсуждение | вклад) (Новая страница: «==== Using standard linux tools (manually) ====») |
Matveevrj (обсуждение | вклад) (Новая страница: «* Show incoming packets: *:<syntaxhighlight lang="bash"> candump can0 </syntaxhighlight>») |
||
Строка 34: | Строка 34: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== | == Working with CAN == | ||
The <code>cansend</code> and <code>candump</code> utilities are included in the controller's standard software package. If for some reason they are not there, you can install the <code>can-utils</code> package: | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
apt update && apt install can-utils | apt update && apt install can-utils | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Command examples: | |||
* | * Sending four bytes with address 123: | ||
*:<syntaxhighlight lang="bash"> | *:<syntaxhighlight lang="bash"> | ||
cansend can0 123#DEADBEEF | cansend can0 123#DEADBEEF | ||
</syntaxhighlight> | </syntaxhighlight> | ||
* | * Show incoming packets: | ||
*:<syntaxhighlight lang="bash"> | *:<syntaxhighlight lang="bash"> | ||
candump can0 | candump can0 |