6. Android Application

6.1 Display

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

Compact3566_Android HDMI Display

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

Compact3566_Android LVDS Display

LVDS display

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

Recording

6.3 SD Card

Compact3566 supports SD Hot-plug.

_images/android_sd.png

SD

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.

_images/Android_USB2.png

USB Device

The USB3.0 default supports Superspeed.

_images/Android_USB3.png

USB3.0 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
SSD device name

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

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.

_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.

1ifconfig
2ping www.boardcon.com
_images/Ethernet_1.png
_images/Ethernet_2.png

6.9 RTC

Execute the command hwclock at CRT terminal

1hwclock
_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.

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

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

1./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.

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
_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.

1echo 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.