Changes

Jump to: navigation, search

Orange Pi Zero 3

334 bytes added, 15:18, 11 July 2023
26pin UART test
<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/image85.png|398x194px]]</p></li>
</li>
<li><p>After entering the linux system, first confirm whether there is a uart5 device node under '''/dev'''</p>
{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big><p>'''Note that the linux5.4 system is /dev/ttyAS5.'''</p></big>|}{| class="wikitable" style="width:800px;" |-|
<p>orangepi@orangepi:~$ '''ls /dev/ttyS5'''</p>
<p>/dev/ttyS5</p>|}</li>
<li><p>Then start to test the uart5 interface, first use the DuPont line to short the rx and tx of the uart5 interface to be tested</p></li></ol>
{| class="wikitable" style="width:800px;"
|-
|
<ol start="5" style="list-style-type: decimal;">
<li><p>Use the '''gpio''' command in wiringOP to test the loopback function of the serial port as shown below. If you can see the following print, it means that the serial port communication is normal</p>
{| class="wikitable" style="width:800px;" |-| <p>orangepi@orangepi:~$ '''gpio serial /dev/ttyS5 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # linux-6.1 test command'''</p><p>orangepi@orangepi:~$ '''gpio serial /dev/ttyAS5 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # linux-5.4 test command'''</p>  
<p>Out: 0: -&gt; 0</p>
<p>Out: 1: -&gt; 1</p>
<p>Out: 2: -&gt; 2</p>
<p>Out: 3: -&gt; 3^C</p>|}</li></ol>
<span id="pwm-test-method"></span>
 
=== PWM test method ===

Navigation menu