8,367
edits
Changes
no edit summary
<ol style="list-style-type: decimal;">
<li><p>A total of 28 GPIO ports can be used in the development board 40 PIN. Below is No. 7 pins -corresponding to GPIO1_D6 -corresponding WPI serial number 2 -as an example to demonstrate how to set the high and low level of the GPIO port</p>
<p>[[File:plus5-img532.png|576x147px]]</p></li>
<li><p>First set the GPIO port as the output mode. The third parameter needs to enter the serial number of the wpi corresponding to the pins</p>
{| class="wikitable" style="width:800px;"
<ol style="list-style-type: decimal;">
<li><p>Below the No. 7 pin — corresponding to GPIO1_D6 -corresponding WPI serial number 2 -to demonstrate how to set up and down pull -down resistance of the GPIO port</p>
<p>[[File:plus5-img532.png|576x147px]]</p></li>
<li><p>First of all, you need to set the GPIO port as the input mode. The third parameter needs to enter the serial number of the wpi corresponding to the pins</p>
{| class="wikitable" style="width:800px;"
<ol style="list-style-type: decimal;">
<li><p>As can be seen from the figure below, the SPI available for Orange Pi 5 Plus is SPI0 and SPI4</p>
<p>[[File:plus5-img304.png|575x137px]]</p></li>
<li><p>The corresponding pins corresponding to SPI0 and SPI4 are shown in the table below. SPI4_M1 and SPI4_M2 can only be used at the same time, and they cannot be used at the same time. They are the same SPI4, but they are just getting different pins. Please don't think that they are two different SPI bus.</p></li>
<ol style="list-style-type: decimal;">
<li><p>From the table below, the I2C available for Orange Pi 5 Plus is I2C2, I2C4, I2C5, and I2C8. There are four groups of I2C bus</p>
<p>[[File:plus5-img304.png|575x137px]]</p></li>
<li><p>The corresponding pins corresponding to the 4 group I2C bus are shown below. I2C2_M0 and I2C2_M4 can only be used at the same time, and they cannot be used at the same time. They are the same I2C2, but they only receive different pins. Please don't think that they are two different I2C2 bus</p></li>
<ol style="list-style-type: decimal;">
<li><p>As can be seen from the table below, the UART available for Orange Pi 5 Plus is UART1, UART3, UART4, UART6, UART7, and UART8. There are 6 sets of UART bus</p>
<p>[[File:plus5-img304.png|575x137px]]</p></li>
<li><p>In the Linux system, the UART in 40 pin is closed by default, and it needs to be opened manually to use. The detailed steps are shown below:</p>
<ol style="list-style-type: lower-alpha;">
<ol style="list-style-type: decimal;">
<li><p>From the table below, the PWMs available for Orange Pi 5 Plus include PWM0, PWM1, PWM11, PWM12, PWM13, and PWM14 a total of six PWM</p>
<p>[[File:plus5-img304.png|575x137px]]</p></li>
<li><p>The corresponding pins of PWM in 40pin are shown below. PWM0_M0 and PWM0_M2, PWM1_M0 and PWM1_M2, PWM14_M0 and PWM14_M2 can only be used at the same time. They cannot be used at the same time. They are the same PWM, but they only get different pins. Please think that they are two different PWM bus</p></li>
<div class="figure">
[[File:plus5-img533.png|575x78px|1010iring_001]]
</div></li>
<li><p>Then from the table below, the base address of the PWM14 register is FEBF0020, and then look at the output of the '''ls /sys/class/pwm/ -l''' command. You can see that the link in PWMCHIP2 is connected to Febf0020.PWM, so the PWM14 corresponds to PWMCHIP2</p>
<p>[[File:plus5-img318.png|575x287px]]</p></li>
<li><p>Then use the following command to allow the PWM14 to output a 50Hz square wave (please switch to the root user first, and then execute the following command)</p></li>
|}
[[File:plus5-img319.png|575x346px]]
</ol>
<ol start="8" style="list-style-type: decimal;">
<ol style="list-style-type: decimal;">
<li><p>As can be seen from the table below, the Canal bus available for Orange Pi 5 Plus is CAN0 and CAN1</p>
<p>[[File:plus5-img320.png|574x137px]]</p></li>
<li><p>In the Linux system, the Can in 40 PIN is closed by default and needs to be opened manually to use. The detailed steps are shown below:</p>
<ol style="list-style-type: lower-alpha;">
<ol start="2" style="list-style-type: lower-alpha;">
<li><p>Note that the Ubuntu version needs to be switched to 22.04</p>
<p>[[File:plus5-img534.png|576x241px]]</p></li>
<li><p>The content of the '''<span class="mark">/etc/apt/sources.list</span>''' file that needs to be replaced is</p>
{| class="wikitable" style="width:800px;"
<div class="figure">
[[File:plus5-img535.png|576x298px|图片6]]
</div>
<div class="figure">
[[File:plus5-img536.png|575x278px|选区_396]]
</div></li>
<div class="figure">
[[File:plus5-img537.png|576x132px|选区_238]]
</div></li>
<div class="figure">
[[File:plus5-img538.png|576x289px|6]]
</div></li>
</li>
<li><p>Then select '''<span class="mark">5 Install/Update the bootloader on SD/eMM</span>''' to update the u-boot in the TF card or '''<span class="mark">7 Install/Update the bootloader on SPI Flash</span>''' to update the u-boot in the SPI Flash</p>
<p>[[File:plus5-img539.png|317x154px]]</p></li>
<li><p>After pressing the Enter key, a Warning will pop up first</p>
<p>[[File:plus5-img540.png|314x170px]]</p></li>
<li><p>Press the Enter key again to start updating u-boot, and the following information will be displayed after the update is completed</p>
<p>[[File:plus5-img541.png|223x125px]]</p></li>
<li><p>Then you can restart the development board to test whether the modification of u-boot takes effect</p></li></ol>
</li>
<div class="figure">
[[File:plus5-img542.png|575x116px|选区_240]]
</div></li>
<div class="figure">
[[File:plus5-img538.png|576x289px|6]]
</div></li>
<li><p>Then it will prompt whether to display the kernel configuration interface. If you do not need to modify the kernel configuration, select the first one. If you need to modify the kernel configuration, select the second one.</p>
<p>[[File:plus5-img543.png|576x87px]]</p></li>
<li><p>If you choose to display the kernel configuration menu (the second option) in step 4), the kernel configuration interface opened by '''<span class="mark">make menuconfig</span>''' will pop up. At this time, you can directly modify the kernel configuration, save and exit after modification. Yes, after exiting, the kernel source code will be compiled</p>
<p>[[File:plus5-img544.png|575x400px]]</p></li></ol>
<!-- -->
<li><p>You can also set '''<span class="mark">KERNEL_CONFIGURE=no</span>''' in the '''<span class="mark">orangepi-build/userpatches/config-default.conf</span>''' configuration file, which can permanently disable this function</p></li>
<li><p>If the following error is displayed when compiling the kernel, it is because the terminal interface of the Ubuntu PC is too small to display the '''<span class="mark">make menuconfig</span>''' interface. Please maximize the terminal of the Ubuntu PC and run the build.sh script again</p>
<p>[[File:plus5-img545.png|574x234px]]</p></li></ol>
<!-- -->
<div class="figure">
[[File:plus5-img546.png|576x119px|选区_241]]
</div></ol>
<div class="figure">
[[File:plus5-img538.png|576x289px|6]]
</div></li>
<div class="figure">
[[File:plus5-img547.png|575x180px|7]]
</div></li>
<div class="figure">
[[File:plus5-img548.png|576x75px|选区_245]]
</div></li></ol>
<div class="figure">
[[File:plus5-img549.png|576x78px|选区_397]]
</div></li>
<div class="figure">
[[File:plus5-img550.png|575x99px|Selection_001]]
</div>
<p>[[File:plus5-img551.png|576x74px]]</p>
<p>You can then select additional packages that need to be installed. Please press the Enter key to skip directly here.</p>
<p>[[File:plus5-img552.png|575x264px]]</p></li>
<li><p>Then it will start to compile rootfs, and some of the information prompted during compilation are as follows</p>
<ol style="list-style-type: lower-alpha;">
<div class="figure">
[[File:plus5-img553.png|576x128px|选区_242]]
</div></ol>
<div class="figure">
[[File:plus5-img538.png|576x289px|6]]
</div></li>
<div class="figure">
[[File:plus5-img547.png|575x180px|7]]
</div></li>
<div class="figure">
[[File:plus5-img548.png|576x75px|选区_245]]
</div></li></ol>
<div class="figure">
[[File:plus5-img549.png|569x77px|选区_397]]
</div></li>
<div class="figure">
[[File:plus5-img550.png|575x99px|Selection_001]]
</div>
<p>[[File:plus5-img551.png|576x74px]]</p>
<p>You can then select additional packages that need to be installed. Please press the Enter key to skip directly here.</p>
<p>[[File:plus5-img552.png|575x264px]]</p></li>
<li><p>Then it will start to compile the linux image. The general process of compilation is as follows</p>
<p>a. Initialize the compilation environment of Ubuntu PC and install the software packages required for the compilation process</p>
<big>'''If you have problems downloading the code from github, you can go to the official tool of the development board to download the compressed kernel source code package, then upload it to the linux system of the development board, and then decompress it.'''</big>
[[File:plus5-img554.png|223x86px]] [[File:plus5-img555.png|305x87px]]
<big>'''The command to decompress the compressed kernel source code package is:'''</big>
<div class="figure">
[[File:plus5-img556.png|576x290px|9D229F96-887B-4c6b-8E6E-681C9994DFA0]]
</div></li></ol>
</li>
<li><p>After successfully logging in to the system, the display is as shown in the figure below</p>
<p>[[File:plus5-img557.png|553x330px]]</p></li>
<li><p>If the computer is installed with Windows system, you can log in by referring to the method introduced in the section of SSH remote login to the development board under Windows.</p></li></ol>
<big>'''Please note that the OpenWRT system configures the network port near the Type-C power port as a WAN port by default, and the network port near the HDMI port as a LAN port by default.'''</big>
[[File:plus5-img558.png|357x139px]]
|}
<div class="figure">
::[[File:plus5-img559.png|552x135px|2023-04-21 14-41-42 的屏幕截图]]
</div>
<ol start="4" style="list-style-type: decimal;">
<li><p>'''<span style="color:#FF0000">The OpenWrt system does not set a password by default</span>''', so just click the '''<span class="mark">login</span>''' button. After successful login, the interface is displayed as shown in the figure below</p>
<p>[[File:plus5-img560.png|552x295px]]</p></li></ol>
<span id="log-in-to-the-terminal-through-the-luci-management-interface"></span>
<big>'''Please note that the OpenWRT system configures the network port near the Type-C power port as a WAN port by default, and the network port near the HDMI port as a LAN port by default.'''</big>
[[File:plus5-img558.png|357x139px]]
|}
<div class="figure">
::[[File:plus5-img559.png|552x135px|2023-04-21 14-41-42 的屏幕截图]]
</div>
<li>Select "'''Terminal'''" in the "'''Service'''" column of the navigation bar and click to enter</li>
[[File:plus5-img561.png|576x227px]]
</ol>
<ol start="5" style="list-style-type: decimal;">
<li><p>At this time, the terminal interface is as shown in the figure below</p>
<p>[[File:plus5-img562.png|576x407px]]</p></li>
<li><p>Enter the user name root to log in</p>
<p>[[File:plus5-img563.png|575x334px]]</p></li></ol>
<span id="use-ip-address-port-number-to-log-in-to-the-terminal"></span>
<big>'''Please note that the OpenWRT system configures the network port near the Type-C power port as a WAN port by default, and the network port near the HDMI port as a LAN port by default.'''</big>
[[File:plus5-img558.png|357x139px]]
|}
<div class="figure">
::[[File:plus5-img564.png|553x296px|2023-04-21 14-54-26 的屏幕截图]]
</div>
<li><p>Find the "'''System'''" option in the navigation bar and click</p></li>
<li><p>In the column options below the system, select "'''Management Rights'''" and click</p>
<p>[[File:plus5-img565.png|552x256px]]</p></li>
<li><p>Select the "'''Router Password'''" option on the Tab page</p>
<p>[[File:plus5-img566.png|552x211px]]</p></li></ol>
</li>
<li><p>Modify and save the router password</p>
<p>a. Enter the password you set in the "'''Password'''" and "'''Confirm Password'''" dialog boxes (if you are not sure whether the password is entered correctly, you can click the "*" icon behind the dialog box to display the input characters)</p>
<p>b. Click "'''Save'''" to save the newly modified password</p>
<p>[[File:plus5-img567.png|553x230px]]</p></li>
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
<ol start="4" style="list-style-type: decimal;">
<li><p>After the password is changed successfully, a pop-up box will pop up saying "'''The system password has been changed successfully'''". At this time, a password is required to log in to OpenWRT</p>
<p>[[File:plus5-img568.png|563x222px]]</p></li></ol>
<span id="usb-interface-test-1"></span>
<li><p>Then follow the login LuCI management interface to enter the LuCI management interface</p></li>
<li><p>Then in the LuCI management interface, click "System -> Mount Point" to enter the configuration interface of the mount point</p>
<p>[[File:plus5-img569.png|553x256px]]</p></li>
<li><p>Then follow the steps below to add a mount point</p>
<ol style="list-style-type: lower-alpha;">
</li>
[[File:plus5-img570.png|553x163px]]
</ol>
<ol start="3" style="list-style-type: lower-alpha;">
<li><p>Then the following pop-up interface will pop up</p>
<p>[[File:plus5-img571.png|553x288px]]</p></li>
<li><p>Then you can start to mount the storage device</p>
<p>a) Check "'''Enabled'''"</p>
<p>d) Then click the "'''Save'''" button in the lower right corner</p></li>
[[File:plus5-img572.png|553x214px]]
</ol>
<ol start="5" style="list-style-type: decimal;">
<li>Then you will return to the mount point global settings page, click "'''Save and Apply'''" in the lower left corner of the page to make the mount point take effect</li>
[[File:plus5-img573.png|535x325px]]
</ol>
<ol start="6" style="list-style-type: decimal;">
<li>After saving, you can see the "'''mounted file system'''", the storage device has been mounted successfully</li>
[[File:plus5-img574.png|553x201px]]
</ol>
<span id="how-to-use-e-key-pcie-wireless-network-card"></span>
<ol style="list-style-type: decimal;">
<li><p>First insert the PCIe wireless network card into the M.2 E-KEY port of the development board, and then connect the Type-C power supply to power up the development board.</p>
<p>[[File:plus5-img575.png|347x149px]]</p></li>
<li><p>After the system startup is complete, click '''<span class="mark">Network -> Wireless</span>''' to enter the wireless WiFi configuration interface.</p>
<p>[[File:plus5-img576.png|553x155px]]</p></li>
<li><p>The default wireless configuration of the OpenWRT system is '''Master''' mode. Here, for the convenience of the next operation, we will remove the default wireless connection.</p>
<p>[[File:plus5-img577.png|517x162px]]</p></li>
<li><p>Then click '''<span class="mark">Save</span>''' in the lower right corner of the page to make the configuration take effect.</p>
<p>[[File:plus5-img578.png|553x179px]]</p></li>
<li><p>Then click the '''<span class="mark">Add</span>''' button on the right.</p>
<p>[[File:plus5-img579.png|553x138px]]</p></li>
<li><p>In the pop-up tab page '''<span class="mark">Device Configuration</span>''', we set the parameters as shown in the figure below.</p>
<p>[[File:plus5-img580.png|552x268px]]</p></li>
<li><p>Then in '''<span class="mark">Interface Configuration -> General Settings</span>''', set the mode to '''<span class="mark">Access Point AP</span>''', set the '''<span class="mark">ESSID</span>''' (wireless network name) to '''<span class="mark">OpenWrt</span>''', and specify the network as '''<span class="mark">lan</span>'''</p>
<p>[[File:plus5-img581.png|553x234px]]</p></li>
<li><p>Then in '''<span class="mark">Interface Configuration -> Wireless Security</span>''', select ''' WPA2-PSK''' as the encryption algorithm; set the key (wireless password) to '''password'''</p>
<p>[[File:plus5-img582.png|534x224px]]</p></li>
<li><p>After the above settings are completed, click '''<span class="mark">Save</span>''' in the lower right corner of the page, and then exit the tab page</p>
<p>[[File:plus5-img583.png|553x303px]]</p></li>
<li><p>Then click '''<span class="mark">Save and Apply</span>''' in the lower right corner of the page and wait for the configuration to be applied.</p>
<p>[[File:plus5-img584.png|553x216px]]</p></li>
<li><p>The display interface of successfully creating a hotspot is shown in the figure below</p>
<p>[[File:plus5-img585.png|515x266px]]</p></li>
<li><p>Then use the mobile phone or computer to search for the WiFi corresponding to the SSID to connect. After the connection is successful, as shown in the figure below</p>
<p>[[File:plus5-img586.png|247x156px]]</p></li></ol>
<span id="how-to-connect-to-wifi-hotspot"></span>
<ol style="list-style-type: decimal;">
<li><p>Insert the PCIe wireless network card into the M.2 E-KEY port of the development board, and then connect the Type-C power supply to power the development board.</p>
<p>[[File:plus5-img575.png|347x149px]]</p></li>
<li><p>After the system startup is complete, click '''<span class="mark">Network -> Wireless</span>''' to enter the configuration wireless WiFi interface.</p>
<p>[[File:plus5-img576.png|553x155px]]</p></li>
<li><p>The default wireless configuration of the OpenWRT system is '''Master''' mode. Here, for the convenience of the next operation, we will remove the default wireless connection.</p>
<p>[[File:plus5-img577.png|520x162px]]</p></li>
<li><p>Then click '''<span class="mark">Save</span>''' in the lower right corner of the page to make the configuration take effect.</p>
<p>[[File:plus5-img578.png|520x179px]]</p></li>
<li><p>Then click the '''<span class="mark">Scan</span>''' button to scan the surrounding WiFi hotspots.</p>
<p>[[File:plus5-img587.png|541x225px]]</p></li>
<li><p>Then the following window will pop up to display the available WiFi hotspots. At this time, click the '''<span class="mark">Join Network</span>''' button on the right side of the WiFi hotspot you want to connect to connect to the WiFi hotspot.</p>
<p>[[File:plus5-img588.png|553x89px]]</p></li>
<li><p>Then an interface for connecting to a WiFi hotspot will pop up. We enter the password of the hotspot as shown in the figure below, and then click the '''<span class="mark">Submit</span>''' button.</p>
<p>[[File:plus5-img589.png|552x135px]]</p></li>
<li><p>Then the following interface will pop up, click the '''<span class="mark">Save</span>''' button in the lower right corner.</p>
<p>[[File:plus5-img590.png|553x237px]]</p></li>
<li><p>Finally, you will return to the main interface of wireless configuration, click '''<span class="mark">Save and Apply</span>''' and wait for the configuration to be applied.</p>
<p>[[File:plus5-img591.png|544x252px]]</p></li>
<li><p>After successfully connecting to the WiFi hotspot, the interface is displayed as shown in the figure below.</p>
<p>[[File:plus5-img592.png|547x232px]]</p></li></ol>
<span id="installing-packages-via-the-command-line"></span>
<p>b. In the vertical column options below the system, select "'''software package'''" and click to enter</p></li>
[[File:plus5-img593.png|552x227px]]
</ol>
<ol start="2" style="list-style-type: decimal;">
<p>b. On the Tab page, click "'''Available'''" to view the currently available software packages</p>
<p>c. View the number of currently available packages</p>
<p>[[File:plus5-img594.png|553x232px]]</p></li></ol>
<span id="example-of-installing-software-packages"></span>
<li><p>In the OpenWRT software package management interface, click the filter dialog box and enter "'''luci-app-acl'''"</p></li>
<li><p>In the list of software packages, you can see the version, package size and description information of the "'''luci-app-acl'''" software package, and then click the '''"Install"''' button</p>
<p>[[File:plus5-img595.png|552x259px]]</p></li>
<li><p>Then the following pop-up window will appear, click '''"Install"'''</p>
<p>[[File:plus5-img596.png|348x430px]]</p></li>
<li><p>Then wait for the installation to complete</p>
<p>[[File:plus5-img597.png|576x96px]]</p></li>
<li><p>The display after the installation is complete is as follows</p>
<p>[[File:plus5-img598.png|506x289px]]</p></li></ol>
</li>
<li><p>Check whether the software package is installed successfully</p>
<p>b. Select and click '''"Available"''' on the Tab page</p>
<p>c. The "'''luci-app-acl'''" package will be displayed in the package list, and the update status will be '''"installed"'''</p>
<p>[[File:plus5-img599.png|576x196px]]</p></li></ol>
<span id="remove-package-example"></span>
<li><p>Select '''"Installed"''' on the Tab page to display the list of installed software packages</p></li>
<li><p>Click '''"Remove"''' on the right to remove the corresponding software package</p>
<p>[[File:plus5-img600.png|461x164px]]</p></li>
<li><p>Then the following pop-up window will be displayed, click '''"Remove"'''</p>
<p>[[File:plus5-img601.png|415x129px]]</p></li>
<li><p>After the removal is successful, the display interface is as follows</p>
<p>[[File:plus5-img602.png|414x88px]]</p></li></ol>
</li>
<li><p>Check whether the software package is removed successfully</p>
<p>b. Select and click '''"Installed"''' on the Tab page</p>
<p>c. The "'''luci-app-acl'''" package will not be displayed in the package list, and the "'''luci-app-acl'''" package has been removed successfully</p>
<p>[[File:plus5-img603.png|493x187px]]</p></li></ol>
<span id="using-samba-network-shares"></span>
<li><p>Find the '''"Service"''' option in the navigation bar and click > to enter</p></li>
<li><p>In the vertical column options below the service, select > '''"network sharing"''' and click to enter</p>
<p>[[File:plus5-img604.png|553x205px]]</p></li></ol>
</li>
<li><p>Select the interface that the Samba service needs to monitor</p>
<li><p>Select '''"General Settings"''' in the navigation bar of network > sharing and click to enter</p></li>
<li><p>The interface is specified according to actual needs. If you > want to access through the "wan port", set it to '''"wan"'''</p>
<p>[[File:plus5-img605.png|500x222px]]</p></li></ol>
</li>
<li><p>Set the shared directory of the network share</p>
<div class="figure">
[[File:plus5-img606.png|575x217px|4]]
</div></li>
<p>e) Click "OK" to configure the application</p></li>
[[File:plus5-img607.png|575x316px]]
</ol>
<ol start="2" style="list-style-type: lower-alpha;">
<p>f) Click "Save Changes" to save the Windows 10 network discovery configuration</p></li>
[[File:plus5-img608.png|575x323px]]
</ol>
<ol start="5" style="list-style-type: decimal;">
<li>After the setting is completed, enter \\OpenWrt in the address bar of the resource manager to access the shared directory, the user name is root, and the password is the password set by the development board host</li>
[[File:plus5-img609.png|575x323px]]
</ol>
<span id="zerotier-instructions"></span>
<ol style="list-style-type: decimal;">
<li><p>Log in to zerotier official website [https://my.zerotier.com/network '''https://my.zerotier.com/network'''], register and log in and click Network->Create A Network to create a virtual local area network</p>
<p>[[File:plus5-img610.png|575x118px]]</p><p>[[File:plus5-img611.png|574x166px]]</p></li>
<li><p>Click to enter the network console page, you can set the privacy option to public, so that the added network nodes do not need to be verified</p>
<p>[[File:plus5-img612.png|353x257px]]</p></li>
<li><p>The following automatically assigns the address Here you can choose the network segment yourself, here is 172.27.*.*</p>
<p>[[File:plus5-img613.png|374x233px]]</p></li>
<li><p>Enter the following command in the OpenWRT terminal to join the virtual LAN created above, '''<span style="color:#FF0000">where 8286ac0e47d53bb5 is the Network ID of the virtual LAN created above</span>'''</p></li>
<div class="figure">
[[File:plus5-img614.png|175x103px|C89CEA9A-B322-42d2-B476-2392A50E6FC4]]
</div></li>
<li><p>The picture of the RTL8811CU USB wireless network card module is as follows:</p>
<p>[[File:plus5-img615.png|124x107px]]</p></li></ol>
</li>
<li><p>The test methods of the above two types of USB wireless network cards are the same. First, the USB network card needs to be inserted into the USB interface of the development board.</p></li>
<ol start="2" style="list-style-type: decimal;">
<li><p>First insert the PCIe wireless network card into the M.2 E-KEY interface of the development board and fix it</p>
<p>[[File:plus5-img617.png|263x178px]]</p></li>
<li><p>Then connect the power supply of the Type-C interface to the development board, and power on</p></li>
<li><p>After the system starts, please refer to the section of WIFI connection test method for WIFI connection and test method</p></li>
# First click to enter the '''Setting'''
::[[File:plus5-img618.png|553x182px]]
<ol start="2" style="list-style-type: decimal;">
<li>Then select '''Network & internet'''</li>
[[File:plus5-img619.png|553x154px]]
</ol>
<ol start="3" style="list-style-type: decimal;">
<li>Then select '''Internet'''</li>
[[File:plus5-img620.png|553x103px]]
</ol>
<ol start="4" style="list-style-type: decimal;">
<li>Then turn on the '''Wi-Fi''' switch</li>
[[File:plus5-img621.png|553x65px]]
</ol>
<ol start="5" style="list-style-type: decimal;">
<li><p>After turning on '''Wi-Fi''', if everything is normal, you can scan to nearby Wi-Fi hotspots</p>
<p>[[File:plus5-img622.png|549x172px]]</p></li>
<li><p>Then select the Wi-Fi you want to connect to, and the password input interface shown in the figure below will pop up</p>
<p>[[File:plus5-img623.png|553x237px]]</p></li>
<li><p>Then use the keyboard to enter the password corresponding to Wi-Fi, and then use the mouse to click the Enter button in the virtual keyboard to start connecting to Wi-Fi</p>
<p>[[File:plus5-img624.png|553x232px]]</p></li>
<li><p>The display after successful Wi-Fi connection is shown in the figure below:</p>
<p>[[File:plus5-img625.png|553x93px]]</p></li></ol>
<span id="how-to-use-wi-fi-hotspot"></span>
<li><p>First, please make sure that the Ethernet port is connected to the network cable and can access the Internet normally</p></li>
<li><p>Then select '''Settings'''</p>
<p>[[File:plus5-img618.png|553x182px]]</p></li>
<li><p>Then select '''Network & internet'''</p>
<p>[[File:plus5-img619.png|553x154px]]</p></li>
<li><p>Then select '''Hotspot & tethering'''</p>
<p>[[File:plus5-img626.png|575x195px]]</p></li>
<li><p>Then select '''Wi-Fi hotspot'''</p>
<p>[[File:plus5-img627.png|575x96px]]</p></li>
<li><p>Then turn on the '''Wi-Fi hotspot''', you can also see the name and password of the generated hotspot in the figure below, remember them, and use them when connecting to the hotspot '''(if you need to modify the name and password of the hotspot, you need to turn off the Wi-Fi first -Fi hotspot before modification)'''</p>
<p>[[File:plus5-img628.png|575x187px]]</p></li>
<li><p>At this point, you can take out your mobile phone. If everything is normal, you can find the WIFI hotspot with the same name ('''here AndroidAP_6953''') displayed under the '''Hotspot name''' in the above picture in the WI-FI list searched by the mobile phone. Then you can click '''AndroidAP_6953''' to connect to the hotspot, and the password can be seen under the '''Hotspot password''' in the above picture</p></li>
[[File:plus5-img629.png|342x260px]]
</ol>
<ol start="8" style="list-style-type: decimal;">
<li>After the connection is successful, it will be displayed as shown in the figure below (the interface of different mobile phones will be different, the specific interface is subject to the display of your mobile phone). At this point, you can open a webpage on your mobile phone to see if you can access the Internet. If you can open the webpage normally, it means that the '''WI-FI Hotspot''' of the development board can be used normally.</li>
[[File:plus5-img630.png|347x175px]]
</ol>
<span id="bluetooth-test-method"></span>
<ol style="list-style-type: decimal;">
<li><p>First click to enter the '''Setting'''</p>
<p>[[File:plus5-img618.png|553x182px]]</p></li>
<li><p>Then select '''Connected devices'''</p>
<p>[[File:plus5-img631.png|575x146px]]</p></li>
<li><p>Then click '''<span class="mark">Pair new device</span>''' to turn on Bluetooth and start scanning the surrounding Bluetooth devices</p>
<p>[[File:plus5-img632.png|575x144px]]</p></li>
<li><p>The searched Bluetooth devices will be displayed under '''Available devices'''</p>
<p>[[File:plus5-img633.png|575x200px]]</p></li>
<li><p>Then click the Bluetooth device you want to connect to start pairing. When the following interface pops up, please use the mouse to select the '''Pair''' option</p>
<p>[[File:plus5-img634.png|575x155px]]</p></li>
<li><p>The test here is the configuration process of the development board and the Bluetooth of the Android mobile phone. At this time, the following confirmation interface will pop up on the mobile phone. After clicking the pairing button on the mobile phone, the pairing process will start</p>
<p>[[File:plus5-img635.png|308x232px]]</p></li>
<li><p>After the pairing is completed, you can see the paired Bluetooth device as shown in the figure below</p>
<p>[[File:plus5-img636.png|575x170px]]</p></li>
<li><p>At this time, you can use the Bluetooth of your mobile phone to send a picture to the development board. After sending, you can see the following confirmation interface in the Android system of the development board, and then click '''Accept''' to start receiving the picture sent by the mobile phone.</p>
<p>[[File:plus5-img637.png|575x250px]]</p></li>
<li><p>You can open the '''Download''' directory in the file manager to view the pictures received by the Android system Bluetooth of the development board</p>
<p>[[File:plus5-img638.png|575x86px]]</p></li></ol>
<span id="test-method-of-hdmi-in"></span>
<ol style="list-style-type: decimal;">
<li><p>The location of the HDMI In interface on the development board is as follows:</p>
<p>[[File:plus5-img265.png|351x112px]]</p></li>
<li><p>Then use the HDMI to HDMI cable shown in the figure below to connect the HDMI output of other devices to the HDMI In interface of the development board</p>
<p>[[File:plus5-img11.png|199x129px]]</p></li>
<li><p>Make sure that the HDMI output of the device connected to the HDMI In interface is normal, and then open the HDMI In test APP</p>
<p>[[File:plus5-img639.png|532x167px]]</p></li>
<li><p>Then you can see the video input of HDMI In, and the audio input of HDMI In will also be output from the HDMI TX interface or headphone interface of the development board. The figure below shows the desktop of the Linux system of the OPi5 development board input through HDMI In.</p>
<p>[[File:plus5-img640.png|533x301px]]</p></li></ol>
<span id="how-to-use-10.9.10.1-inch-mipi-screen"></span>
<li><p>The screen needs to be assembled first, please refer to the assembly method of the 10.1-inch MIPI screen</p></li>
<li><p>The interface position of the LCD on the development board is shown in the figure below:</p>
<p>[[File:plus5-img641.png|317x80px]]</p>
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
|-
<big><p>'''Note that the touch interface below is not for the LCD MIPI screen. It is currently a spare interface and cannot be used.'''</p></big>
<p>[[File:plus5-img425.png|334x70px]]</p>
|}
</li>
<li><p>Connect the assembled screen to the LCD interface, connect the Type-C power supply to the board, and power on. After the system starts, you can see the screen display as shown in the figure below</p>
<p>[[File:plus5-img642.png|517x345px]]</p></li></ol>
<span id="ov13850-and-ov13855-mipi-camera-test-method"></span>
<ol style="list-style-type: lower-alpha;">
<li><p>OV13850 camera with 13 million MIPI interface</p>
<p>[[File:plus5-img23.png|268x151px]]</p></li>
<li><p>OV13855 camera with 13 million MIPI interface</p>
<p>[[File:plus5-img24.png|253x150px]]</p></li></ol>
<p>The adapter boards and FPC cables used by the OV13850 and OV13855 cameras are the same, but the positions of the two cameras connected to the adapter boards are different. The FPC cable is shown in the figure below. Please note that the FPC cable has a direction. The end marked '''TO MB''' needs to be inserted into the camera interface of the development board, and the end marked '''TO CAMERA''' needs to be inserted into the camera adapter board.</p>
[[File:plus5-img436.png|475x99px]]
There are a total of 3 camera interfaces on the camera adapter board, and only one can be used at a time, as shown in the figure below, of which:
<div class="figure">
[[File:plus5-img643.png|333x199px|图片3]]
</div></ol>
The location of the camera interface on the Orange Pi 5 Plus development board is shown in the figure below:
[[File:plus5-img644.png|388x65px]]
The method of inserting the camera into the CAM interface of the development board is as follows:
[[File:plus5-img439.png|285x132px]]
After connecting the camera to the development board, we can use the following method to test the camera:
<ol style="list-style-type: lower-alpha;">
<li><p>Open the camera APP on the desktop</p>
<p>[[File:plus5-img645.png|491x279px]]</p></li>
<li><p>Then you can see the preview screen of the camera</p>
<div class="figure">
[[File:plus5-img646.png|379x213px|Screenshot_20230317-073757]]
</div>
<p>Press and hold the mouse in the area shown in the red box in the picture below of the camera APP and then drag to the right to call up the switching interface for taking pictures and recording</p>
<p>[[File:plus5-img647.png|391x222px]]</p>
<p>The switching interface of taking pictures and recording is as follows, click Video to switch to '''video''' recording mode</p>
<div class="figure">
[[File:plus5-img648.png|386x217px|Screenshot_20230317-074419]]
</div>
<p>Click the position shown in the figure below to enter the camera setting interface</p>
<p>[[File:plus5-img649.png|390x221px]]</p>
<p>The setting interface of the camera is as follows:</p>
<div class="figure">
[[File:plus5-img650.png|429x241px|Screenshot_20230317-075325]]
</div></li></ol>
<ol style="list-style-type: decimal;">
<li><p>First click on the wiringOP icon to open the wiringOP APP</p>
<p>[[File:plus5-img651.png|552x183px]]</p></li>
<li><p>The main interface of wiringOP APP is displayed as shown in the figure below, and then click the '''GPIO_TEST''' button to open the GPIO test interface</p>
<p>[[File:plus5-img652.png|553x131px]]</p></li>
<li><p>The GPIO test interface is shown in the figure below. The two rows of '''CheckBox''' buttons on the left are in one-to-one correspondence with the 26pin pins. When the '''CheckBox''' button is checked, the corresponding GPIO pin will be set to '''OUT''' mode, and the pin level will be set to high level; when the checkbox is unchecked, the GPIO pin level will be set to low level; When the '''GPIO READALL''' button is pressed, information such as the wPi number, GPIO mode, and pin level can be obtained.</p>
<p>[[File:plus5-img653.png|553x288px]]</p></li>
<li><p>Then click the '''GPIO READALL''' button, the output information is as shown in the figure below:</p>
<p>[[File:plus5-img654.png|553x310px]]</p></li>
<li><p>There are a total of 28 GPIO ports in the 40pins of the development board that can be used. The following uses pin 11—the corresponding GPIO is GPIO1_A4—the corresponding wPi serial number is 5—as an example to demonstrate how to set the high and low levels of the GPIO port. First click the '''CheckBox''' button corresponding to pin 11. When the button is selected, pin 11 will be set to high level. After setting, you can use a multimeter to measure the voltage value of the pin. If it is '''3.3v''', it means setting high level success</p>
<p>[[File:plus5-img655.png|204x392px]]</p></li>
<li><p>Then click the '''GPIO READALL''' button, you can see that the current pin 7 mode is '''OUT''', and the pin level is high</p>
<p>[[File:plus5-img656.png|552x259px]]</p></li>
<li><p>Click the '''CheckBox''' button in the figure below again to cancel the check status. Pin 11 will be set to low level. After setting, you can use a multimeter to measure the voltage value of the pin. If it is '''0v''', it means that the low level is set successfully.</p>
<p>[[File:plus5-img657.png|205x394px]]</p></li>
<li><p>Then click the '''GPIO READALL''' button, you can see that the current mode of pin 11 is OUT, and the pin level is low</p>
<p>[[File:plus5-img658.png|552x258px]]</p></li></ol>
<span id="pin-uart-test-2"></span>
<ol style="list-style-type: decimal;">
<li><p>'''UART3''' and '''UART8''' are enabled by default in Android. The position of the 40pin is shown in the figure below, and the corresponding device nodes are /dev/ttyS3 and /dev/ttyS8 respectively</p>
<p>[[File:plus5-img659.png|508x139px]]</p></li>
<li><p>First click on the wiringOP icon to open the wiringOP APP</p>
<p>[[File:plus5-img651.png|552x183px]]</p></li>
<li><p>The main interface of wiringOP APP is displayed as shown in the figure below, and then click the '''UART_TEST''' button to open the UART test interface</p>
<p>[[File:plus5-img660.png|552x123px]]</p></li>
<li><p>The serial port test interface of the APP is shown in the figure below</p></li>
[[File:plus5-img661.png|552x310px]]
</ol>
<ol start="5" style="list-style-type: decimal;">
<li>Take the test of '''UART3''' as an example below, select the '''/dev/ttyS3''' node in the selection box, enter the baud rate you want to set in the edit box, and then click the '''OPEN''' button to open the '''/dev/ttyS3''' node. After opening successfully, click the OPEN button becomes unselectable, and the '''CLOSE''' button and '''SEND''' button become selectable</li>
[[File:plus5-img662.png|552x154px]]
</ol>
<ol start="6" style="list-style-type: decimal;">
<li><p>Then use Dupont wire to short the RXD and TXD pins of uart3</p>
<p>[[File:plus5-img663.png|455x121px]]</p></li>
<li><p>Then you can enter a character in the send edit box below, and click the '''SEND''' button to start sending</p></li>
[[File:plus5-img664.png|553x155px]]
</ol>
<ol start="8" style="list-style-type: decimal;">
<li>If everything is normal, the received string will be displayed in the receiving box</li>
[[File:plus5-img665.png|553x290px]]
</ol>
<span id="pin-spi-test-3"></span>
<ol style="list-style-type: decimal;">
<li><p>From the table below, the available SPIs for Orange Pi 5 Plus are SPI0 and SPI4</p>
<p>[[File:plus5-img304.png|575x137px]]</p></li>
<li><p>The Android system opens the SPI0 configuration by default. Here is a demonstration to test the SPI0 interface through the w25q64 module. First, connect the w25q64 device to the SPI0 interface.</p>
<p>[[File:plus5-img666.png|195x164px]]</p></li>
<li><p>Then click the wiringOP icon to open the wiringOP APP</p>
<p>[[File:plus5-img651.png|552x183px]]</p></li>
<li><p>The main interface of wiringOP APP is displayed as shown in the figure below, click the '''SPI_TEST''' button to open the SPI test interface</p>
<p>[[File:plus5-img667.png|552x123px]]</p></li>
<li><p>Then click the '''OPEN''' button to initialize the SPI</p></li>
[[File:plus5-img668.png|552x155px]]
</ol>
<ol start="6" style="list-style-type: decimal;">
<li><p>Finally, the APP will display the read ID information</p></li>
[[File:plus5-img670.png|552x206px]]
</ol>
<ol start="8" style="list-style-type: decimal;">
<li><p>The MANUFACTURER ID of the w25q64 module is EFh, and the Device ID is 4017h, corresponding to the value read above (h stands for hexadecimal)</p>
<p>[[File:plus5-img671.png|374x126px]]</p></li></ol>
<span id="pin-pwm-test"></span>
<ol style="list-style-type: decimal;">
<li><p>Android enables '''PWM10''' and '''PWM14''' by default, and the corresponding pins are located at 40pin as shown in the figure below:</p>
<p>[[File:plus5-img672.png|431x130px]]</p></li>
<li><p>First click on the wiringOP icon to open the wiringOP APP</p>
<p>[[File:plus5-img651.png|552x183px]]</p></li>
<li><p>Then click the '''PWM_TEST''' button on the main interface of wiringOP to enter the PWM test interface</p>
<p>[[File:plus5-img673.png|553x125px]]</p></li>
<li><p>The base address corresponding to PWM10 is '''febe0020''', and the base address corresponding to PWM14 is '''febf0020'''. Here, '''fd8b0020.pwm''' is displayed on the right of pwmchip0. At this time, you need to click the drop-down option to select other pwmchips until '''febe0020''' or '''febf0020''' is displayed on the right.</p>
<p>[[File:plus5-img674.png|553x111px]]</p></li>
<li><p>When the drop-down option menu selects '''pwmchip2''', the corresponding base address of '''PWM10''' is '''febe0020''' on the right</p>
<p>[[File:plus5-img675.png|553x102px]]</p></li>
<li><p>When the drop-down option menu selects '''pwmchip4''', the corresponding base address of '''PWM14''' is '''febe0020''' on the right</p>
<p>[[File:plus5-img676.png|553x102px]]</p></li>
<li><p>Take the test of PWM10 as an example, we need to select '''pwmchip2'''</p>
<p>[[File:plus5-img675.png|553x102px]]</p></li>
<li><p>Then confirm the PWM period, the default configuration is '''50000ns''', converted to PWM frequency is '''20KHz''', you can modify it yourself, click the open button to export '''PWM10'''</p>
<p>[[File:plus5-img677.png|552x101px]]</p></li>
<li><p>Then drag the drag bar below to change the PWM duty cycle, and then check Enable to output the PWM waveform</p></li>
[[File:plus5-img678.png|575x116px]]
</ol>
<ol start="10" style="list-style-type: decimal;">
<li>Then use an oscilloscope to measure the 31st pin in the 40pin of the development board, and you can see the following waveform</li>
[[File:plus5-img679.png|460x276px]]
</ol>
<span id="how-to-use-adb-1"></span>
<ol style="list-style-type: decimal;">
<li><p>First prepare a good quality Type-C data cable</p>
<p>[[File:plus5-img21.png|122x97px]]</p></li>
<li><p>Then connect the development board and Ubuntu PC through the Type-C data cable. The position of the Type-C interface of the development board is shown in the figure below:</p>
<div class="figure">
[[File:plus5-img52.png|319x90px|C:\Users\orangepi\Desktop\用户手册插图\Pi5 Plus\未标题-2.jpg未标题-2]]
</div></li>
<ol style="list-style-type: lower-alpha;">
<li><p>Contains a remote control</p>
<p>[[File:plus5-img680.png|199x149px]]</p></li>
<li><p>A USB wireless receiver</p>
<p>[[File:plus5-img681.png|110x119px]]</p></li></ol>
</li>
<li><p>The Android Box system does not require any configuration, it can be used after plugging it in</p></li></ol>
<ol style="list-style-type: decimal;">
<li><p>The development board comes with an infrared receiver, and its location is shown in the figure below:</p>
<p>[[File:plus5-img682.png|435x124px]]</p></li>
<li><p>Before testing infrared reception, we need to prepare an infrared remote control</p>
<div class="figure">
[[File:plus5-img683.png|141x127px|6FBFE2FA-31A4-4a26-AC63-9A3E4E359FFF]]
</div>
<li><p>First connect the development board to the TV through the HDMI cable, then power on and start</p></li>
<li><p>Then turn on the HDMI CEC function in the TV settings. Different TVs may have different ways to turn it on. Here we take Xiaomi TV as an example. Press the menu button on the remote control, then select CEC remote control and press the confirmation button</p>
<p>[[File:plus5-img684.png|575x323px]]</p></li>
<li><p>Then select '''"On"''' to open the HDMI CEC remote control</p>
<p>[[File:plus5-img685.png|576x257px]]</p></li>
<li><p>At this point, you can control the Android Box system of the development board through the remote control of the TV</p></li></ol>
<ol style="list-style-type: decimal;">
<li><p>First download the Android 12 source code sub-volume compressed package from Google network disk</p>
<p>[[File:plus5-img686.png|575x138px]]</p></li>
<li><p>After downloading the sub-volume compression package of the Android 12 source code, please check whether the MD5 checksum is correct, if not, please download the source code again</p>
{| class="wikitable" style="width:800px;"
<ol style="list-style-type: decimal;">
<li><p>The location of the HDMI In interface on the development board is as follows:</p>
<p>[[File:plus5-img265.png|282x90px]]</p></li>
<li><p>Then use the HDMI to HDMI cable shown in the figure below to connect the HDMI output of other devices to the HDMI In interface of the development board</p>
<p>[[File:plus5-img11.png|136x88px]]</p></li>
<li><p>Make sure that the HDMI output of the device connected to the HDMI In interface is normal, and then open the HDMI In test APP</p>
<p>[[File:plus5-img687.png|395x222px]]</p></li>
<li><p>Then the window shown in the figure below will appear. At this time, the video input of HDMI In cannot be seen. You need to click the position marked in the red box in the figure below to enlarge it to full screen</p>
<p>[[File:plus5-img688.png|384x229px]]</p></li>
<li><p>Then you can see the video input of HDMI In, and the audio input of HDMI In will also be output from the HDMI TX interface or headphone interface of the development board. The figure below shows the desktop of the Linux system of the OPi5 development board input through HDMI In.</p>
<p>[[File:plus5-img689.png|400x238px]]</p></li></ol>
<span id="appendix"></span>