6. Android Application

6.1 Display

Connect the board and monitor with a HDMI cable, then start up.

Compact3566_Android HDMI Display

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

Compact3566_Android 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
_images/android_record.png

6.3 SD Card

Compact3566 supports SD Hot-plug.

_images/android_sd.png

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

_images/Android_USB2.png

USB3.0

_images/Android_USB3.png

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
SSD device name

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
_images/image70.png

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.

_images/wifi_test_1.png _images/wifi_test_2.png _images/wifi_test_3.png

6.7 Bluetooth

Click Settings -> Connected devices -> Pair new device

Select the available device in the list to pair.

_images/bt_test_1.png _images/bt_test_2.png

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
_images/Ethernet_1.png _images/Ethernet_2.png

6.9 RTC

Execute the command hwclock at CRT terminal

hwclock
_images/RTC.png

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
_images/Test_UART3.png

Press Ctrl+C to exit UART3 testing, execute the command to test UART4.

./system/com /dev/ttyS4 115200 8 0 1   //Test UART4
_images/Test_UART4.png

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
_images/SPI_teat.png

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
IR test

6.14 Camera

Connect the camera module (OV13850) to the development board before power on, then click the camera APP to test.