Open main menu

DAVE Developer's Wiki β

Changes

DESK-MX6-L/Peripherals/CAN

8 bytes removed, 13:49, 14 July 2021
no edit summary
====Enable the interface and check status====
<pre class="workstation-terminal">
root@imx6qxelkdesk-mx6:~# ip link set can0 type can bitrate 500000root@imx6qxelkdesk-mx6:~# ifconfig can0 uproot@imx6qxelkdesk-mx6:~# ifconfig can0
can0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
UP RUNNING NOARP MTU:16 Metric:1
Interrupt:31
root@imx6qxelkdesk-mx6:~#
</pre>
<pre class="workstation-terminal">
root@imx6qxelkdesk-mx6:~# ip link set can0 type can bitrate 500000 triple-sampling onroot@imx6qxelkdesk-mx6:~# ifconfig can0 uproot@imx6qxelkdesk-mx6:~# cansend can0 01a#11223344AABBCCDDroot@imx6qxelkdesk-mx6:~# candump can0
</pre>
8,221
edits