8,367
edits
Changes
→How to use the debugging serial port on Ubuntu platform
=== How to use the debugging serial port on 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>|}
<ol style="list-style-type: decimal;">
<li><p>First insert the USB to TTL module into the USB interface of the Ubuntu computer. If the USB to TTL module is connected and recognized normally, you can see the corresponding device node name under '''/dev''' of the Ubuntu PC. Remember this node name and set the serial port later. software will be used.</p>
{| class="wikitable" style="width:800px;"
|-
|
<p>test@test:~$ '''ls /dev/ttyUSB*'''</p>
<p>/dev/ttyUSB0</p>|}</li>
<li><p>Then use the following command to install putty on Ubuntu PC</p>
{| class="wikitable" style="width:800px;"
|-
|
<p>test@test:~$ '''sudo apt-get update'''</p>
<p>test@test:~$ '''sudo apt-get install -y putty'''</p>|}</li><li><p>Then run putty, '''<span style="color:#FF0000">remember to add sudo permissions</span>'''</p>{| class="wikitable" style="width:800px;" |-| <p>test@test:~$ '''sudo putty'''</p>|}</li>
<li><p>After executing the putty command, the following interface will pop up</p>
<p>[[File:cm4-img159.png]]</p></li>
<li><p>Then set the parameters of the serial port</p>
<ol style="list-style-type: lower-alpha;">
<li><p>Set the '''<span class="mark">Serial line to connect to</span>''' to > '''<span class="mark">/dev/ttyUSB0</span>''' (modify to the corresponding node > name, usually '''<span class="mark">/dev/ttyUSB0</span>''')</p></li><li><p>Set '''<span class="mark">Speed(baud)</span>''' to 1500000 (the baud rate of the > serial port)</p></li>
<li><p>Set Flow control to None</p>
<div class="figure">
<span id="how-to-use-the-debugging-serial-port-on-windows-platform"></span>
=== How to use the debugging serial port on Windows platform ===