8,367
edits
Changes
→How to use the debugging serial port on the Ubuntu platform
=== How to use the debugging serial port on the Ubuntu platform ===
{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''There are many serial port debugging software that can be used under Linux, such as putty, minicom, etc. The following demonstrates how to use putty.'''</big>|}
# First, insert the USB-to-TTL module into the USB interface of the Ubuntu computer. If the connection and recognition of the USB-to-TTL module is normal, you can see the corresponding device node name under '''/dev''' on the Ubuntu PC. Remember this node name, and then set the serial port software will be used
::{| class="wikitable" style="width:800px;"
|-
|
test@test:~$ '''ls /dev/ttyUSB*'''
/dev/ttyUSB0
|}
<ol start="2" style="list-style-type: decimal;">
<li>Then use the following command to install putty on Ubuntu PC</li></ol>{| class="wikitable" style="width:800px;" |-|
test@test:~$ '''sudo apt-get update'''
test@test:~$ '''sudo apt-get install -y putty'''
|}</ol>
<ol start="3" style="list-style-type: decimal;">
<li>Then run putty, '''<span style="color:#FF0000">remember to add sudo permission</span>'''</li></ol>
{| class="wikitable" style="width:800px;"
|-
|
test@test:~$ '''sudo putty'''
|}</ol>
<ol start="4" style="list-style-type: decimal;">
<li>After executing the putty command, the following interface will pop up</li></ol>
[[File:pi3b-img158.png]]
</ol>
<ol start="5" style="list-style-type: decimal;">
<li>First select the setting interface of the serial port</li></ol>
[[File:pi3b-img159.png]]
</ol>
<ol start="6" style="list-style-type: decimal;">
<li><p>Then set the parameters of the serial port</p>
<li><p>Set Serial line to connect toas /dev/ttyUSB0((Modified to the corresponding node name, generally /dev/ttyUSB0)</p></li>
<li><p>Set Speed(baud) as '''1500000'''(Serial port baud rate)</p></li>
<li><p>Set Flow control as None</p></li></ol></li></ol>
<div class="figure">
[[File:pi3b-img160.png]]
</div></ol></li></ol>
<ol start="7" style="list-style-type: decimal;">
<li><p>After setting the setting interface of the serial port, return to the Session interface</p>
<ol style="list-style-type: lower-alpha;">
<li><p>First select the Connection type as Serial</p></li>
<li><p>Then click the Open button to connect to the serial port</p></li></ol></li></ol>
<div class="figure">
[[File:pi3b-img161.png]]
</div></ol></li></ol>
<ol start="8" style="list-style-type: decimal;">
<li>After starting the development board, you can see the Log information output by the system from the opened serial port terminal</li></ol>
[[File:pi3b-img162.png]]
</ol>
<span id="how-to-use-the-debugging-serial-port-on-windows-platform"></span>
=== How to use the debugging serial port on Windows platform ===