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 output > HDMI output
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.
LVDS display
6.2 Record
Recording priority: headphone recording > MIC
Switch headphone recording to MIC
tinymix -D 1 14 0
tinymix -D 1 15 0
Switch MIC recording to headphone
tinymix -D 1 14 1
tinymix -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.
USB2.0
USB3.0
6.5 M.2 NVMe SSD
Compact3566 only supports ext4 format. Format SSD to ext4 file system on ubuntu system
Step 1, view the SSD device name
ls /dev/block
Step 2, format SSD on ubuntu system.
mke2fs -t ext4 /dev/block/nvme0n1
Step 3, mount SSD
mkdir /data/ssd
mount -t ext4 /dev/block/nvme0n1 /data/ssd
ls /data/ssd
If the SSD is auto-mounted, execute the command to test:
ls /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.
ifconfig
ping www.boardcon.com
6.9 RTC
Execute the command hwclock at CRT terminal
hwclock
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.
echo peripheral > /sys/devices/platform/fe8a0000.usb2-phy/otg_mode //Switch to ADB
echo host > /sys/devices/platform/fe8a0000.usb2-phy/otg_mode //Switch to HOST
6.11 UART
The UART loopback test is for reference only.
Step 1, push the file com
to the compact3566 via ADB
adb root
adb remount
adb push \xx\com /system //\xx\ is the absolute path of 'com'
chmod 777 /system/com //Modify com properties
Step 2, connect the transmit (TX) pin to the receive (RX) pin of UART
Step 3, after executes the command, input character to test UART.
./system/com /dev/ttyS3 115200 8 0 1 //Test UART3
Press Ctrl+C to exit UART3 testing, execute the command to test UART4.
./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.
adb root
adb remount
adb push \xx\spidev_test /system //\xx\ is the absolute path to store spidev_test
adb shell
chmod 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
./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.
echo 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.