Open main menu

Wiki-Orange Pi β

Changes

Orange Pi 4

4,474 bytes added, 19:02, 20 June 2022
no edit summary
<br>
1)First, you need to prepare a USB to TTL module. For better platform compatibility, CH340 USB to TTL module is recommended. Then insert one end of the USB interface of the USB to TTL module into the USB interface of the computer
<divstyle="padding-left:200px;">[[文件:Orange-pi-4-img57.png|800px|]]</div>
<br>
2)The corresponding relationship between the debug serial port GND, TX and RX pins of the development board is shown in the figure below
<divstyle="padding-left:200px;">[[文件:Orange-pi-4-img58.png|800px|]]</div>
<br>
3)The GND, TX and RX pins of the USB to TTL module need to be connected to the debug serial port of the development board through a Dupont cable
| USB to TTL module model|| Host system|| Support situation
|-
| rowspan=5|<div style="text-align:center;">CH340 </div> || win7 || ok
|-
| win10 || ok
| ubuntu20.04|| ok
|-
| rowspan=5|<div style="text-align:center;">CP2102</div>|| win7 || ok
|-
| win10 || Not available
| ubuntu20.04|| Not available
|}
<br>
==== '''How to use the debug serial port on the Ubuntu platform''' ====
<br>
1)If the USB to TTL module is connected normally, you can see the corresponding device node name under /dev of Ubuntu PC, remember this node name, you will use it when setting up the serial port software later
<div style="border:1px solid #000;background:#f1f1f1;">
test@test:~$ '''ls /dev/ttyUSB*'''<br>
/dev/ttyUSB0
</div>
<br>
2)There are many serial debugging software that can be used under linux, such as putty, minicom, etc. The following shows how to use putty<br>
<br>
3)First install putty on the Ubuntu PC
<div style="border:1px solid #000;background:#f1f1f1;">
test@test:~$ '''sudo apt update'''<br>
test@test:~$ '''sudo apt install putty'''
</div>
<br>
4)Then run putty, remember to add sudo permissions
<div style="border:1px solid #000;background:#f1f1f1;">
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-4-img60.png|800px|]]</div>
<br>
6)First select the setting interface of the serial port
<div style="padding-left:200px;">[[文件:Orange-pi-4-img61.png|800px|]]</div>
<br>
7)Then set the parameters of the serial port
<div style="padding-left:20px;">
a. Set Serial line to connect to to /dev/ttyUSB0 (modify to the corresponding node name, generally /dev/ttyUSB0)<br>
b. Set Speed(baud) to 1500000 (baud rate of serial port)<br>
c. Set Flow control to None
</div>
<div style="padding-left:200px;">[[文件:Orange-pi-4-img62.png|800px|]]</div>
<br>
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-4-img63.png|800px|]]</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-4-img64.png|800px|]]</div>
<br>
==== '''How to use the debug serial port on Windows platform''' ====
<br>
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>
<br>
2)Download MobaXterm
<div style="padding-left:20px;">
a.Download MobaXterm URL as follows<br>
https://mobaxterm.mobatek.net/
b.'''After entering the MobaXterm download page, click GET XOBATERM NOW!'''
<div style="padding-left:180px;">[[文件:Orange-pi-4-img65.png|800px|]]</div>
<br>
c.Then choose to download the Home version
<div style="padding-left:180px;">[[文件:Orange-pi-4-img66.png|800px|]]</div>
<br>
d.Then select the Portable version, after downloading, you don’t need to install it, you can open it directly
<div style="padding-left:180px;">[[文件:Orange-pi-4-img67.png|800px|]]</div>
<br>
</div>
3)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>[[文件:Orange-pi-4-img68.png|800px|]]</div>
<br>
4)After opening the software, the steps to set the serial port connection are as follows
<div style="padding-left:20px;">
a. Open the session setting interface<br>
b. Select the serial port type<br>
c. Select the port number of the serial port (choose the corresponding port number according to the actual situation), if you can't see the port number, please use the 360 driver master to scan and install the USB to TTL serial chip driver<br>
d. Select the baud rate of the serial port to be 1500000<br>
e. Finally click the "OK" button to complete the setting
</div>
<div>[[文件:Orange-pi-4-img69.png|800px|]]</div>
<br>
5)After clicking the "OK" button, you will enter the following interface, and you can see the output information of the serial port when you start the development board.
<div>[[文件:Orange-pi-4-img70.png|800px|]]</div>
<br>
For more information on using the Orange Pi 4, please see the [http://localhost:8080/index.php?title=%E6%96%87%E4%BB%B6:Orange_Pi_4.docx <span style="color:red;">Orange Pi 4 User Manual</span>]. (Click to download)