8,367
edits
Changes
→26pin UART test
<ol style="list-style-type: lower-alpha;">
<li><p>First run '''orangepi-config''', normal users remember to add > '''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><p>Then select '''Hardware'''</p>
<p>[[File:media/image86.png|393x202px]]</p></li>
<li><p>d. Then use the arrow keys on the keyboard to navigate to the > position shown in the figure below, and then use the '''space''' > to select '''ph-uart5'''</p>
<p>[[File:media/image182.png|400x60px]]</p></li>
<li><p>Then select '''<Save>''' to save</p>
</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;"
|-
|
| style="text-align: left;"| '''Corresponding to pin 10 in 26pin'''
|}
</li></ol>
<ol start="5" style="list-style-type: decimal;">
<li><p>Finally, you can run the '''serialTest.py''' program in the examples to test the loopback function of the serial port. If you can see the following print, it means that the loopback test of the serial port is normal</p>
{| class="wikitable" style="width:800px;"
|-
|
<p>root@orangepi:~/wiringOP-Python# '''cd examples'''</p>
<p>root@orangepi:~/wiringOP-Python/examples# '''python3 serialTest.py --device "/dev/ttyS5" # linux6.1使用'''</p>
<p>Out: 3: -> 3</p>
<p>Out: 4:^C</p>
<p>exit</p>|}</li></ol>
<span id="hardware-watchdog-test"></span>