Open main menu

Wiki-Orange Pi β

Changes

Orange Pi 5 detail

3,630 bytes removed, 09:50, 24 April 2023
26pin's SPI test
== '''How to use Win32Diskimager to burn Linux image ''' ==
1) First prepare a TF card with a capacity of 16GB or more. The transmission speed of the TF card must be class 10 or above. It is recommended to use a TF card of SanDiskand other brands<br><br>
2) Then use the card reader to insert the TF card into the computer<br><br>
c. After the image writing is completed, click the "Exit" button to exit, and then you can pull out the TF card and insert it into the development board to start<br><br>
== '''Linux system instructions ''' ==
=== Supported Linux image types and kernel versions ===
{| class="wikitable" style="width:800px;"
LMP Version: 5.1 (0xa) Subversion: 0x1111 Manufacturer: Broadcom Corporation (15)
|}
5) For the wifi connection and test method, please refer to <span style="color:#0066CC;">[[Orange Pi 5 detail#WIFI connection test | the section of WIFI connection test]]</span>, which will not be repeated here<br><br>
6) For the test method of Bluetooth, please refer to the section on Bluetooth usage, so I won’t go into details here<br><br>
|orangepi@orangepi:~$ '''dmesg'''
|}
4) Then you can see the device node of RTL8723BU WIFI through the '''sudo ifconfig''' command. For the connection and test method of WIFI, please refer to '''<span style="color:#0066CC;">[[Orange Pi 5 detail#WIFI connection test | the section of WIFI connection test''']]</span>, which will not be repeated here<br>
{| class="wikitable" style="width:800px;"
|-
3) There are a total of 17 GPIO ports in the 26pin interface, and the voltage of all GPIO ports is '''<span style="color:#FF0000">3.3v</span>'''<br><br>
== '''Instructions for the use of the android 12 system ''' ==
=== How to use the use of wireless network card ===
1) At present, the USB wireless network card model that is adapted to the image is shown below:<br>
=== 26pin GPIO port test ===
1) First click the Wiringop icon to open the Wiringop App<br><br>
[[Image:Pi-5-details2-pic72pic32.png]]<br><br>2) wiringOP APP 的主界面显示如下图所示,然后点击 The main interface of the Wiringop app is displayed as shown in the figure below, and then click the '''GPIO_TEST''' 按钮打开 GPIO测试界面button to open the GPIO test interface<br><br>[[Image:Pi-5-details2-pic73pic33.png]]<br><br>3) The GPIO 测试界面如下图所示,左边的两排 test interface is shown in the figure below. The two rows of the '''CheckBox''' 按钮跟 26pin 引脚是一一对应的关系。当勾选 button on the left and the 26PIN pin are one -to -one relationship. When checking the '''CheckBox''' 按钮时,对应的 GPIO 引脚会被设置为 button, the corresponding pin will be set to '''OUT''' 模式,引脚电平设置为高电平;当取消勾选时,GPIO 引脚电平设置为低电平;当点击右边的 mode, the pin level settings will be set. For high levels, when the check -up is canceled, the pin level is set to a low level; when clicking the '''GPIO READALL''' 按钮时,可以获取到 wPi 号、GPIO 模式、引脚电平等信息。button on the right, you can get the WPI, GPIO mode, pin level information, etc.<br><br>[[Image:Pi-5-details2-pic74pic34.png]]<br><br>4) 然后点击 Then click the '''GPIO READALL''' 按钮,输出信息如下图所示:button, and the output information is shown in the figure below<br><br>[[Image:Pi-5-details2-pic75pic35.png]]<br><br>5) 开发板 26pin 中总共有 16 个 GPIO 口可以使用,下面以 7 号引脚——对应 GPIO 为 GPIO1_C6 ——对应 wPi 序号为 2——为例演示如何设置 GPIO 口的高低电平。首先点击 7 号引脚对应的 Taking the high and low level of the '''GPIO2_D4''' as an example, click the '''CheckBox''' 按钮,当按钮为选中状态时,7 号引脚会设置为高电平,设置完后可以使用万用表测量引脚的电压的数值,如果为 button in the figure below. When the button is selected, the '''GPIO2_D4''' is set to a high level. After setting, you can use the value of the voltage of the pins by the multimeter. If it is '''3.3v''',说明设置高电平成功, Explain that setting high -electricity is successful<br><br>[[Image:Pi-5-details2-pic76pic36.png]]<br><br>6) 然后点击 Then click the '''GPIO READALL''' 按钮,可以看到当前的 7 号引脚模式为 button to see that the pins mode of the current '''GPIO2_D4''' is '''OUT''',引脚电平为高电平, and the pin level is high level<br><br>[[Image:Pi-5-details2-pic77pic37.png]]<br><br>7) 再次点击下图的 Click the '''CheckBox''' 按钮取消勾选状态,7 号引脚会设置为低电平,设置完后可以使用万用表测量引脚的电压的数值,如果为 button in the figure below to cancel the check status. The '''GPIO2_D4''' pin is set to a low level. After setting, you can use the value of the voltage of the multimeter to measure the pins.If it is '''0v''',说明设置低电平成功, the low -power flat is set.<br><br>[[Image:Pi-5-details2-pic78pic38.png]]<br><br>8) 然后点击 Then click the '''GPIO READALL''' 按钮,可以看到当前的 7 号引脚模式为 OUT,引脚电平为低电平button to see that the pins mode of the current GPIO2_D4 is OUT, and the pin level is low<br><br>[[Image:Pi-5-details2-pic79pic39.png]]<br><br>
=== 26pin UART 测试 test ===1) In Android 中默认只打开了 default, the UART0 一个串口,UART0 在 serial port is only opened. The position of UART0 at 26pin 的位置如下图所示, 对应的设备节点是'''is shown in the figure below. The corresponding device node is/dev/ttyS0'''ttys0<br><br>[[Image:Pi-5-details2-pic80pic40.png]]<br><br>2) 首先点击 wiringOP 图标打开 wiringOP APPFirst click the WiringOP icon to open the Wiringop App<br><br>[[Image:Pi-5-details2-pic81pic41.png]]<br><br>3) wiringOP The main interface of the WiringOP APP 的主界面显示如下图所示,然后点击 is displayed as shown in the figure below, and then click the '''UART_TEST''' 按钮打开UART测试界面button to open the UART test interface<br><br>[[Image:Pi-5-details2-pic82pic42.png]]<br><br>4) The serial test interface of the APP 的串口测试界面如下图所示is shown in the figure below<br><br>[[Image:Pi-5-details2-pic83pic43.png]]<br><br>5) 接着在编辑框中输入想要设置的波特率,然后点击 Then enter the baud rate you want to set in the editing box, and then click the '''OPEN''' 按钮打开button to open the '''/dev/ttyS0''' 节点,打开成功后,node. After successful, the '''OPEN''' 按钮变为不可选中状态,button becomes an optional state.The '''CLOSE''' 按钮和 button and the '''SEND''' 按钮变为可选中状态button become an optional state<br><br>[[Image:Pi-5-details2-pic84pic44.png]]<br><br>6) 然后使用杜邦线短接 uart0 的 Then use the DuPont line to shorte the RXD and TXD 引脚pin of uart0<br><br>[[Image:Pi-5-details2-pic85pic45.png]]<br><br>7) 然后可以在下面的发送编辑框中输入一段字符,点击 Then you can enter a section of characters in the editing box below, click the '''SEND''' 按钮开始发送button to start sending<br><br>[[Image:Pi-5-details2-pic86pic46.png]]<br><br>8) 如果一切正常,接收框内会显示已接收到的字符串If everything is normal, the receiving string will be displayed in the receiving box<br><br>[[Image:Pi-5-details2-pic87pic47.png]]<br><br>
=== 26pin 的 SPI 测试 's PWM test ===1) 由 26pin 接口的原理图可知,Orange Pi 5B 可用的 spi 为 spi4Android only opened '''PWM15''' by default. The corresponding pins are at the position of 26Pin.<br><br>[[Image:Pi-5-details2-pic88pic48.png]]<br><br>2) 这里通过 w25q64 模块来测试 SPI 接口,首先在 SPI4 接口接入 w25q64 设备First click theWiringOP icon to open the Wiringop App<br><br>[[Image:Pi-5-details2-pic89pic49.png]]<br><br>3) 然后点击 wiringOP 图标打开 wiringOP APPThen click the '''PWM_TEST''' button to enter the PWM test interface at the main interface of WiringOP<br><br>[[Image:Pi-5-details2-pic90pic50.png]]<br><br>4) wiringOP APP 的主界面显示如下图所示,点击 SPI_TEST 按钮打开 SPI 的测试界面The corresponding address corresponding to the PWM15 is '''febf0030'''. The right side of PWMCHIP0 is exactly the '''febf0030.pwm'''. If the displayed base address is wrong, please click the drop -down option to select other PWMCHIP until the '''febf0030''' is displayed on the right.<br><br>[[Image:Pi-5-details2-pic91pic51.png]]<br><br>5) 然后点击 Then confirm the PWM cycle. The default configuration is '''OPEN50000ns''' 按钮初始化 SPI<br><br>[[Image:Pi-5-details2-pic92, and the PWM frequency is '''20KHz'''. You can modify it by yourself.png]]<br><br>6) 然后填充需要发送的字节,比如读取 w25q64 的 ID 信息,在 data[0]中填入地址0x9f,然后点击 Click on the button to export '''TRANSFERPWM15''' 按钮<br><br>[[Image:Pi-5-details2-pic93pic52.png]]<br><br>76) 最后 APP 会显示读取到的 ID 信息Then drag the drag below to change the PWM duty ratio, and then check the enable to output PWM<br><br>[[Image:Pi-5-details2-pic94pic53.png]]<br><br>8) w25q64 模块的 MANUFACTURER ID 为 EFh,Device ID 为 4017h,跟上面读取到的值是对应的(h 代表是 16 进制)<br><br>[[Image:Pi-5-details2-pic95pic54.png]]<br><br>
=== 26pin 的 PWM 测试 's SPI test ===1) Android 默认只开启了 '''PWM15''',对应的引脚在 From the schematic diagram of the 26pin 的所在位置如下图所示interface, the SPI available for Orange Pi 5 is spi4<br><br>[[Image:Pi-5-details2-pic96pic55.png]]<br><br>2) 首先点击 wiringOP 图标打开 wiringOP APPHere is the w25q64 module to test the SPI interface, and first access the w25q64 device at the SPI4 interface.<br><br>[[Image:Pi-5-details2-pic97pic56.png]]<br><br>3) 然后在 wiringOP 的主界面点击 '''PWM_TEST''' 按钮进入 PWM 的测试界面Then click the WiringOP icon to open the WiringOP APP<br><br>[[Image:Pi-5-details2-pic98pic57.png]]<br><br>4) PWM15 对应的基地址是 '''febf0030''' , 这里 pwmchip0 右边显示的刚好就是'''febf0030.pwm''', 如果显示的基地址不对,请点击下拉选项选择其它的 pwmchip,直到右边显示 '''febf0030''' 为止The main interface of the WiringOP APP shows as shown in the figure below, click the SPI_TEST button to open the SPI test interface<br><br>[[Image:Pi-5-details2-pic99pic58.png]]<br><br>5) 然后确认 PWM 的周期,默认的配置是 Then click the '''50000ns''',转换为 PWM 频率是 '''20KHz''', 可自行修改,点击开启按钮导出 '''PWM15OPEN'''button to initialize SPI<br><br>[[Image:Pi-5-details2-pic100pic59.png]]<br><br>6) 然后拖动下面的拖动条,就可以改变 PWM 的占空比,然后勾选 Enable 就可以输出 PWM 波形了<br><br>[[Image:Pi-5-details2-pic101.png]]<br><br>7) 然后使用示波器测量开发板 26pin 中的第 7 号引脚就可以看到下面的波形了<br><br>[[Image:Pi-5-details2-pic102.png]]<br><br> === 使用数据线连接 adb 调试 ===1) 首先准备一根品质良好的 Type-C 数据线<br><br>[[Image:Pi-5-details2-pic103.png]]<br><br>2) 然后使用 Type-C 数据线将开发板连接到电脑的 USB 接口中(请同时使用 TypeC电源给开发板供电)<br><br>3) 在 Ubuntu PC 上安装 adb 工具<br>{| class="wikitable" style="width:800px;" |-|test@test:~$ '''sudo apt update'''<br>test@test:~$ '''sudo apt -y install adb'''|}4) 通过下面的命令可以查看识别到的 ADB 设备<br>{| class="wikitable" style="width:800px;" |-|test@test:~$ '''adb devices''' <br>List Then fill in bytes that need to be sent, such as reading the ID information of devices attached <br>S63QCF54CJ device <br>test@test:~$ '''lsusb'''<br>Bus 003 Device 006: ID 2207:0006|}5) 然后在 Ubuntu PC 上通过 adb shell 就可以登录到 android 系统了<br>{| class="wikitable" style="width:800px;" |-|test@test:~$ '''adb shell'''<br>console:/ $|}6) 执行命令重新挂载 Android 系统<br>{| class="wikitable" style="width:800px;" |-|test@test:~$ '''adb root'''<br>test@test:~$ '''adb remount''' |}7) 然后就可以传输文件到 Android 系统了<br>{| class="wikitable" style="width:800px;" |-|test@test:~$ '''adb push example.txt /system/'''|} === 使用网络连接 adb 调试 ==={| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <br><big>'''使用网络 adb 无需 USB Typc C 接口的数据线来连接电脑和开发板,而是通过网络来通信,所以首先请确保开发板的有线或者无线网络已经连接好了,然后获取开发板的 IP 地址,后面要用到。'''</big><br><br>|}1) 确保 Android 系统的 '''service.adb.tcp.port''' 设置为 5555 端口号<br>{| class="wikitable" style="width:800px;" |-|console:/ # '''getprop | grep "adb.tcp"'''<br>[service.adb.tcp.port]: W25Q64, fill in the address 0x9F in data [55550]|}2) 如果 '''service.adb.tcp.port, and then click the ''' 没有设置,可以使用下面的命令设置网络 adb 的端口号<br>{| class="wikitable" style="width:800px;" |-|console:/ # '''setprop service.adb.tcp.port 5555TRANSFER'''<br>console:/ # '''stop adbd'''<br>console:/ # '''start adbd'''|}3) 在 Ubuntu PC 上安装 adb 工具<br>{| class="wikitable" style="width:800px;" |-|test@test:~$ '''sudo apt update'''<br>test@test:~$ '''sudo apt install -y adb'''|}4) 然后在 Ubuntu PC 上连接网络 adb<br>{| class="wikitable" style="width:800px;" |-|test@test:~$ '''adb connect 192.168.1.xxx''' ('''IP''' 地址需要修改为开发板的 '''IP''' 地址)<br>daemon not running; starting now at tcp:5037<br>daemon started successfully <br>connected to 192.168.1.xxx:5555<br><br><br> test@test:~$ '''adb devices'''<br>List of devices attached <br>192.168.1.xxx:5555 device|}5) 然后在 Ubuntu PC 上通过 adb shell 就可以登录到 android 系统了<br>{| class="wikitable" style="width:800px;" |-|test@test:~$ '''adb shell'''<br>console:/ #|} === Android Box 测试过的 2.4G USB 遥控器 ===1) 目前测试过的一款 2.4G USB 遥控器如下图所示<br>a. 包含一个遥控器button<br><br>[[Image:Pi-5-details2-pic104pic60.png]]<br><br>b. 一个 USB 无线接收器7) The last app will display the ID information read<br><br>[[Image:Pi-5-details2-pic105pic61.png]]<br><br>28) Android Box 系统无需任何配置,插上就可以用了<br><br> === Android Box 系统 HDMI CEC 功能的使用方法 ==={| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''HDMI CEC 允许用户只用一个遥控器,就能通过 HDMI 控制所有连接的设备, 基于这个功能,我们用电视机的遥控器就可以控制开发板。'''</big><br><br><big>'''<span style="color:#FF0000">测试此功能前,请确保您的电视机是支持 HDMI CEC 的。</span>'''</big>|}1The MANUFACTURER ID of the w25q64 module is EFh, the Device ID is 4017h, and the value read above is corresponding (H represents hexadecimal) 首先将开发板通过 HDMI 线连接到电视,然后上电启动<br><br>2) 然后在电视的设置中开启 HDMI CEC 功能,不同电视开启方式可能有差异,这里以小米电视为例,按下遥控器的菜单键,然后选中 CEC 遥控并按下确认键<br><br>[[Image:Pi-5-details2-pic106.png]]<br><br>3) 然后选择“开”就可以打开 HDMI CEC 遥控<br><br>[[Image:Pi-5-details2-pic107pic62.png]]<br><br>4) 此时就可以通过电视的遥控器控制开发板的 Android Box 系统了<br><br>