Changes

Jump to: navigation, search

Orange Pi 5 Plus

151 bytes added, 18:03, 6 June 2023
How to open CAN
<ol style="list-style-type: lower-alpha;">
<li><p>First run '''orangepi-config''', normal users remember to add &gt; '''sudo''' permission</p>
{| class="wikitable" style="width:800px;" |-|<p>orangepi@orangepi:~$ '''sudo orangepi-config'''</p>|}</li>
<li><p>Then select '''System'''</p>
<p>[[File:media/image234.png|374x173px]]</p></li>
</li>
<li><p>After entering the Linux system, use the '''sudo ifconfig -a''' command, if you can see the CAN device node, it means that the CAN has been opened correctly</p>
{| class="wikitable" style="width:800px;"
|-
|
<p>orangepi@orangepi:~$ '''sudo ifconfig -a'''</p>
<p>can0: flags=128&lt;NOARP&gt; mtu 16</p>
::<p>unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 10 (UNSPEC)</p>::<p>RX packets 0 bytes 0 (0.0 B)</p>::<p>RX errors 0 dropped 0 overruns 0 frame 0</p>::<p>TX packets 0 bytes 0 (0.0 B)</p>::<p>TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0</p>::<p>device interrupt 94</p>
<p>can1: flags=128&lt;NOARP&gt; mtu 16</p>
::<p>unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 10 (UNSPEC)</p>::<p>RX packets 0 bytes 0 (0.0 B)</p>::<p>RX errors 0 dropped 0 overruns 0 frame 0</p>::<p>TX packets 0 bytes 0 (0.0 B)</p>::<p>TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0</p>::<p>device interrupt 95</p>|}</li>
<li><p>The corresponding pins of CAN0 and CAN1 are</p></li></ol>
{| class="wikitable" style="width:800px;"
|-
|
<span id="use-the-canalyst-ii-analyzer-to-test-sending-and-receiving-messages"></span>
 
==== Use the CANalyst-II analyzer to test sending and receiving messages ====

Navigation menu