6. Android Application

6.1 Display

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

EM3566_Android_HDMI_Display

Note

The Boardcon factory default HDMI display. If change to LVDS/MIPI LCD, please reflash the corresponding boot.img.

10.1” LVDS LCD: boot_10.1inch_lvds.img

10.1” MIPI LCD: boot_10.1inch_mipi.img

7” LVDS LCD: boot_7inch_lvds.img

HDMI: boot_hdmi.img

_images/image044-1.png

Change the size of app icons in Android12:

wm density 240   //10.1-inch LVDS
wm density 180   //7-inch LVDS

6.2 SD Card

EM3566 supports SD Hot-plug.

_images/image045.png _images/image046.png

6.3 USB Host

The USB2.0/3.0 Host can be used to connect USB mouse, USB keyboard, U-Disk or other USB devices.

_images/image047.png

6.4 Video&Audio Player

Copy video file to SD_card/U-disk then insert it to the board. After system boot open SD_card/U-disk and click video file to play.

_images/image048.png

6.5 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/image050.png _images/image051.png

6.6 Record

Step 1, plug the Microphone into the appropriate port.

Step 2, open the APP Sound Recorder in Android.

_images/image053.png

Step 3, click Start button to start recording.

_images/image054.png

After finish recording, click Stop and Save to store file.

The default storage path is Internal Memory/Recordings

Play priority: Headphone output greater than HDMI out.

storage path

6.7 RTC

Execute the command hwclock at CRT terminal

date “2024-01-25 12:00:00”
hwclock -w
hwclock
_images/image056.png

6.8 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/image057.png _images/image058.png _images/image059.png _images/turn_on_wifi.png

6.9 Bluetooth

Click Settings -> Connected devices -> Pair new device

Select the available device in the list to pair.

_images/image060.png _images/image061.png _images/BT_avaliable_device.png

6.10 Camera

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

_images/image062.png

Click the button to switch the camera.

_images/image063.png

6.11 RS485

This test method is for reference only.

Step 1, Connect the RS485 ports of Board A and B with the test line.

_images/RS485.png

Step 2, push the file com into board A and board B via ADB.

adb root
adb remount
adb push \xx\com /system  //\xx\ is the absolute path to store com
adb shell
chmod 777 /system/com    //Modify com properties

Step 3, execute the command on the terminal serial ports of board A and board B respectively.

./system/com /dev/ttyS3 115200 8 0 1

Step 4, input character to test RS485 communication.

_images/test_RS485.png

6.12 RS232

The RS232 loopback test is for reference only.

Step 1, push the file com to the test board via ADB

adb root
adb remount
adb push \xx\com /system  //\xx\ is the absolute path to store com
adb shell
chmod 777 /system/com    //Modify com properties

Step 2, connect the transmit (TX) pin to the receive (RX) pin of RS232

Step 3, after executes the command, input character to test RS232.

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

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

./system/com /dev/ttyS5 115200 8 0 1   //Test UART5
_images/Test_UART5.png

6.13 M.2 NVMe SSD

EM3566 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.14 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.15 ADC

ADC test

Test SARADC_VIN2

cat /sys/devices/platform/fe720000.saradc/iio:device0/in_voltage2_raw
ADC test

Connect SARADC_VIN2 to VDDIO_18 execute command again

cat /sys/devices/platform/fe720000.saradc/iio:device0/in_voltage2_raw
ADC test

Connect SARADC_VIN2 to GND, then execute command

cat /sys/devices/platform/fe720000.saradc/iio:device0/in_voltage2_raw
ADC test

Test SARADC_VIN3

cat /sys/devices/platform/fe720000.saradc/iio:device0/in_voltage3_raw

6.16 4G

Step 1, Insert 4G module to PCIe slot (4G model: EC20).

Step 2, Connect antenna and insert SIM card.

Step 3, The default network connection is 4G LTE after power on.

_images/android_4G_LTE.png