8,367
edits
Changes
→How to use the debugging serial port on Ubuntu platform
</div>
==== '''How The Way to use the debugging debug serial port on Ubuntu platform''' ====<br><div style="border: 1px solid #000;padding: 2px;"><div style="border: 1px solid #000;padding: 5px;background-color: #ffffdc;">'''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.'''</div></div><br>1)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 connected normallynormal, you can see the corresponding device node name under /dev of the Ubuntu PC, remember this node name, it will be used when setting and set the serial port later software laterwill be used
<div style="background:#f1f1f1;border:1px solid #000">
test@test:~$ '''ls /dev/ttyUSB*'''<br>
</div>
<br>
2)There are many serial debugging tools that can be used under linux, such as putty, minicom, etc. The Then use the following demonstrates how command to use install puttyon Ubuntu PC<br>
<br>
<div style="background:#f1f1f1;border:1px solid #000">
test@test:~$ '''sudo apt update'''<br>test@test:~$ '''sudo apt install -y install putty'''
</div>
<br>
<div style="background:#f1f1f1;border:1px solid #000">
test@test:~$ '''sudo putty'''
</div>
<br>
<div style="padding-left:200px">[[File:Orange-pi-3lts-putty.png|600px]]</div>
<br>
<div style="padding-left:200px">[[File:Orange-pi-3lts-putty1.png|600px]]</div>
<div style="padding-left:20px;">
a. Set the Serial line to connect to to /dev/ttyUSB0 (modify ttyUSB0(Modify it to the corresponding node name, generally usually as /dev/ttyUSB0)ttyUSB0)<br>b. Set Speed (baud) to 1500000 (115200(serial port baud rate of the serial port)rate)<br>c. Set Flow control to None
</div>
<div style="padding-left:200px">[[File:Orange-pi-r1zero2-plus-lts-img19img46.png|600px]]</div>87)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>
<div style="padding-left:200px">[[File:Orange-pi-r1-plus-lts-img21.png|600px]]</div>
<br>
<div style="padding-left:200px">[[File:Orange-pi-3lts-putty4.png|600px]]</div>