Open main menu

Wiki-Orange Pi β

Changes

Orange Pi Lite

35 bytes added, 09:37, 22 June 2022
How to use the debug serial port on the Ubuntu platform
<div style="padding-left:200px">[[文件:Orange-pi-3lts-ttlmodule2.png|600px]]</div>
==== '''How to use the debug debugging serial port on the Ubuntu platform''' ====1)If the USB to TTL module is connected normally, you can see the corresponding device node name under /dev of the Ubuntu PC, remember this node name, you it will use it be used when setting up the serial port software later
<div style="background:#f1f1f1;border:1px solid #000">
test@test:~$ '''ls /dev/ttyUSB*'''<br>
/dev/ttyUSB0
</div>
<br>2)There are many serial debugging software tools that can be used under linux, such as putty, minicom, etc. The following shows demonstrates how to use putty<br><br>
3)First install putty on the Ubuntu PC
<div style="background:#f1f1f1;border:1px solid #000">
test@test:~$ '''sudo apt -y install putty'''
</div>
<br>
4)Then run putty, remember to add sudo permissions
<div style="background:#f1f1f1;border:1px solid #000">
test@test:~$ '''sudo putty'''
</div>
<br>
5)After executing the putty command, the following interface will pop up
<div style="padding-left:200px">[[文件:Orange-pi-3lts-putty.png|600px]]</div>
<br>
6)First select the setting interface of the serial port
<div style="padding-left:200px">[[文件:Orange-pi-3lts-putty1.png|600px]]</div>
7)Then set the parameters of the serial port<br>
 
<div style="padding-left:20px;">
a. Set the Serial line to connect to to /dev/ttyUSB0 (modify to the corresponding node name, generally /dev/ttyUSB0)<br>
 
b. Set Speed (baud) to 115200 (baud rate of the serial port)<br>
 
c. Set Flow control to None
</div>
<div style="padding-left:200px">[[文件:Orange-pi-3lts-putty2.png|600px]]</div>
8)After setting the serial port setting interface, return to the Session interface
<div style="padding-left:20px;">a. First select the Connection type as Serial<br> 
b. Then click the Open button to connect to the serial port</div>
<div style="padding-left:200px">[[文件:Orange-pi-3lts-putty3.png|600px]]</div>
<br>
9)After starting the development board, you can see the Log information output by the system from the opened serial port terminal
<div style="padding-left:200px">[[文件:Orange-pi-3lts-putty4.png|600px]]</div>
 
=== ''' How to use the debug serial port on Windows platform''' ===
1)There are many serial debugging software that can be used under Windows, such as SecureCRT, MobaXterm, etc. The following shows how to use MobaXterm. This software has a free version and can be used without purchasing a serial number.<br>