Changes

Jump to: navigation, search

Orange Pi 5 Plus

80 bytes removed, 18:09, 6 June 2023
Use the CANalyst-II analyzer to test sending and receiving messages
<li><p>To test the CAN function, you need to prepare a CAN transceiver as shown in the figure below. The main function of the CAN transceiver is to convert the TTL signal of the CAN controller into the differential signal of the CAN bus</p>
<ol style="list-style-type: lower-alpha;">
<li><p>The 3.3V pin of the CAN transceiver needs to be connected to the &gt; 3.3V pin in the 40 pins of the development board</p></li><li><p>The GND pin of the CAN transceiver needs to be connected to the &gt; GND pin in the 40 pin of the development board</p></li><li><p>The CAN TX pin of the CAN transceiver needs to be connected to &gt; the TX pin of the CAN bus in the 40 pin of the development &gt; board</p></li><li><p>The CAN RX pin of the CAN transceiver needs to be connected to &gt; the RX pin of the CAN bus in the 40 pin of the development &gt; board</p></li><li><p>The CANL pin of the CAN transceiver needs to be connected to the &gt; H interface of the analyzer</p></li><li><p>The CANL pin of the CAN transceiver needs to be connected to the &gt; L interface of the analyzer</p>
<p>[[File:media/image327.png|243x78px]]</p></li></ol>
</li>
<li><p>Development board receives CAN message test</p>
<ol style="list-style-type: lower-alpha;">
<li><p>a. First set the baud rate of the CAN bus to '''1000kbps''' in &gt; the Linux system of the development board</p>
{| class="wikitable" style="width:800px;"
|-
|}
</li>
<li><p>Then run the '''candump can0''' command to prepare to receive &gt; messages</p>
{| class="wikitable" style="width:800px;"
|-
|}
</li>
<li><p>Then send a message to the development board in the USB-CAN &gt; software</p>
<p>[[File:media/image333.png|553x188px]]</p></li>
<li><p>If the message sent by the analyzer can be received in the &gt; development board, it means that the CAN bus can be used &gt; normally</p>
{| class="wikitable" style="width:800px;"
|-
<li><p>Development board sends CAN message test</p>
<ol style="list-style-type: lower-alpha;">
<li><p>First set the CAN baud rate to '''1000kbps''' in the Linux &gt; system</p>
{| class="wikitable" style="width:800px;"
|-
|}
</li>
<li><p>Execute the '''cansend''' command on the development board and &gt; send a message</p>
{| class="wikitable" style="width:800px;"
|-
|}
</li>
<li><p>If the USB-CAN software can receive the message from the &gt; development board, the communication is successful</p>
<div class="figure">

Navigation menu