6. Android Application
6.1 Display
Connect the board and monitor with a HDMI cable, then start up.
For 4K video files in H.265/H.264/VP9 format, both HDMI and LVDS can play streaming, but only HDMI can output 4K 60fps.
Audio output priority: headphone is higher than HDMI.
Note
HDMI and LVDS do not support simultaneous display. The Boardcon factory default HDMI display. If change to LVDS LCD, please reflash the corresponding boot.img
6.2 Record
Recording priority: headphone recording is higher than MIC.
1#Switch headphone recording to MIC
2tinymix -D 1 14 0
3tinymix -D 1 15 0
1#Switch MIC recording to headphone
2tinymix -D 1 14 1
3tinymix -D 1 15 1
6.3 SD Card
Compact3566 supports SD Hot-plug.
6.4 USB Host
The USB2.0/3.0 Host can be used to connect USB mouse, USB keyboard, U-Disk or other USB devices.
The USB3.0 default supports Superspeed.
6.5 M.2 NVMe SSD
Compact3566 only supports ext4 format. Format SSD to ext4 file system on ubuntu system
❶ view the SSD device name
ls /dev/block
❷ format SSD on ubuntu system.
mke2fs -t ext4 /dev/block/nvme0n1
❸ mount SSD
1mkdir /data/ssd
2mount -t ext4 /dev/block/nvme0n1 /data/ssd
3ls /data/ssd
If the SSD is auto-mounted, execute the command to test:
1ls /run/media/nvme0n1
6.6 WiFi
Connect the WiFi antenna, then click Settings > Network & internet > Wi-Fi > turn on, select the SSID from the list of available networks and enter the password.
After connected, user can ping URL/IP at terminal, or open the browser to test Network.
6.7 Bluetooth
Click Settings > Connected devices > Pair new device
Select the available device in the list to pair.
6.8 Ethernet
Connect the board and router with an Ethernet cable (default DHCP=Yes). User can ping URL/IP at terminal, or open the browser to test Network.
1ifconfig
2ping www.boardcon.com
6.9 RTC
Execute the command hwclock at CRT terminal
1hwclock
6.10 ADB
The default state of USB-AF is USB HOST after the development board runs normally. Execute the following commands in the terminal to switch ADB/Host.
1echo peripheral > /sys/devices/platform/fe8a0000.usb2-phy/otg_mode //switch to ADB
2echo host > /sys/devices/platform/fe8a0000.usb2-phy/otg_mode //switch to HOST
6.11 UART
The UART loopback test is for reference only.
❶ push the file com
to the compact3566 via ADB
1adb root
2adb remount
3adb push \xx\com /system //\xx\ is the absolute path of 'com'
4chmod 777 /system/com //Modify com properties
❷ connect the transmit (TX) pin to the receive (RX) pin of UART
❸ after executes the command, input character to test UART.
1./system/com /dev/ttyS3 115200 8 0 1 //Test UART3
❹ press Ctrl + C to exit UART3 testing, execute the command to test UART4.
1./system/com /dev/ttyS4 115200 8 0 1 //Test UART4
The test methods for UART5(ttyS5) and UART9(ttyS9) are also similar.
6.12 SPI
Push the file spidev_test
to the Compact3566 with ADB.
1adb root
2adb remount
3adb push \xx\spidev_test /system //\xx\ is the absolute path to store spidev_test
4adb shell
5chmod 777 /system/spidev_test //Modify spidev_test properties
short circuit SPI0_MOSI_M0 and SPI0_MISO_M0 of SPI0
Execute the command to test SPI0
1./system/spidev_test
6.13 IR
Connect IR receiver to the IR port. Operate the IR controller and view the received data after execute the command.
1echo 1 > /sys/module/rockchip_pwm_remotectl/parameters/code_print
6.14 Camera
Connect the camera module (OV13850) to the development board before power on, then click the camera APP to test.