Changes

Jump to: navigation, search

Orange Pi 4 LTS

5,294 bytes added, 14:10, 17 June 2022
no edit summary
<br>
5)If the CP2102 USB to TTL module is used, in the case of a baud rate of 1500000, some systems may encounter garbled or unusable problems. The specific test situation is as follows<br>
{| class="wikitable"
|-
| USB to TTL module model|| Host system||Support situation
|-
| rowspan = 5 |CH340 || win7|| OK
|-
| win10|| OK
|-
| ubuntu14.04|| OK
|-
| ubuntu18.04|| OK
|-
| ubuntu20.04|| OK
|-
| rowspan = 5 |CP2102 || win7|| OK
|-
| win10|| <span style="color:red;">NO<span>
|-
| ubuntu14.04|| OK
|-
| ubuntu18.04|| <span style="color:red;">NO<span>
|-
| ubuntu20.04|| <span style="color:red;">NO<span>
|}
<br>
==== '''How to use the debugging serial port on Ubuntu platform''' ====
<br>
<div style="border:1px solid #000;padding:2px;">
<div style="border:1px solid #000;padding:4px;background:#ffffdc;">
 '''There are many serial 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 normal, 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
<div style="border:1px solid #000;background:#f1f1f1;">
test@test:~$ '''ls /dev/ttyUSB*'''<br>
/dev/ttyUSB0
</div>
 
2)Then use the following command to install putty on Ubuntu PC
<div style="border:1px solid #000;background:#f1f1f1;">
test@test:~$ '''sudo apt update'''<br>
test@test:~$ '''sudo apt install putty'''
</div>
 
3)Then run putty, remember to add sudo permissions
<div style="border:1px solid #000;background:#f1f1f1;">
test@test:~$ '''sudo putty'''
</div>
 
4)After executing the putty command, the following interface will pop up
<div style="padding-left:200px;">[[文件:Orange-pi-4-lts-img79.png|600px|]]</div>
 
5)First select the setting interface of the serial port
<div style="padding-left:200px;">[[文件:Orange-pi-4-lts-img80.png|600px|]]</div>
 
6)Then set the parameters of the serial port<br>
<p style="padding-left:20px;">
a.Set Serial line to connect to to /dev/ttyUSB0 (modify to the corresponding node name, usually /dev/ttyUSB0)<br>
b.Set Speed(baud) to 1500000 (the baud rate of the serial port)<br>
c.Set Flow control to None
</p>
<div style="padding-left:200px;">[[文件:Orange-pi-4-lts-img81.png|600px|]]</div>
 
7)After setting the serial port setting interface, go back to the Session interface<br>
<p style="padding-left:20px;">
a.First select the Connection type as Serial<br>
b.Then click the Open button to connect the serial port
</p>
<div style="padding-left:200px;">[[文件:Orange-pi-4-lts-img82.png|600px|]]</div>
 
8)After starting the development board, you can see the Log information output by the system from the open serial terminal
<div style="padding-left:200px;">[[文件:Orange-pi-4-lts-img83.png|600px|]]</div>
 
==== '''How to use the debugging serial port on Windows platform''' ====
 
<div style="border:1px solid #000;padding:2px;">
<div style="border:1px solid #000;padding:4px;"background:#ffffdc;>
 '''There are many serial port 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.'''
</div>
</div>
 
1)Download MobaXterm<br>
<div style="padding-left:20px;">
a.Download MobaXterm URL as follows
</div>
https://mobaxterm.mobatek.net/
<div style="padding-left:20px;">
b.After entering the MobaXterm download page, click GET XOBATERM NOW!
</div>
<div style="padding-left:200px;">[[文件:Orange-pi-4-lts-img84.png|600px|]]</div>
<div style="padding-left:20px;">
c.Then choose to download the Home version
</div>
<div style="padding-left:200px;">[[文件:Orange-pi-4-lts-img85.png|600px|]]</div>
<div style="padding-left:20px;">
d.Then select the Portable portable version. After downloading, there is no need to install it, just open it and use it
</div>
<div style="padding-left:200px;">[[文件:Orange-pi-4-lts-img86.png|600px|]]</div>
 
2)After downloading, use the decompression software to decompress the downloaded compressed package, you can get the executable software of MobaXterm, and then double-click to open it
 
<div style="padding-left:200px;">[[文件:Orange-pi-4-lts-img87.png|600px|]]</div>
 
3)After opening the software, the steps to set the serial port connection are as follows
<p style="padding-left:20px;">
a.Open the session settings interface<br>
b.Select serial port type<br>
c.Select the port number of the serial port (select the corresponding port number according to the actual situation). If you cannot see the port number, please use the 360 driver master to scan and install the driver for the USB to TTL serial port chip.<br>
d.Select the baud rate of the serial port to be 1500000<br>
e.Finally, click the "OK" button to complete the setting
</p>
<div style="padding-left:200px;">[[文件:Orange-pi-4-lts-img88.png|600px|]]</div>
 
After clicking the "OK" button, it will enter the following interface. At this time, you can see the output information of the serial port when you start the development board.
<div style="padding-left:200px;">[[文件:Orange-pi-4-lts-img89.png|600px|]]</div>
 
For more information on using the Orange Pi 4 LTS, please see the <span style="color:red">Orange Pi 4 LTS User Manual</span>. (Click to download)

Navigation menu