6. Android Application

6.1 Display

_images/LVDS%2BHDMI.jpg

Connect the board and monitor, then start up. EM3568 supports both lvds and HDMI dual-display. Audio output priority: Headset > HDMI > Speaker.

EM3568_Android_Display

6.2 SD Card

_images/Micro_SD.jpg

EM3568 supports SD Hot-plug.

_images/Android_SD.png

6.3 USB Host

_images/USB_Host.jpg

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

_images/Android_USB.png

USB3.0

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

6.5 Ethernet

_images/Ethernet.jpg

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. If two network ports are used at the same time, eth0 is connected to Internet, and eth1 is connected to LAN.

ifconfig
ping -I eth0 www.boardcon.com
ping -I eth1 192.168.0.2
_images/Android_ifconfig.png _images/Android_internet.png _images/Android_lan.png

6.6 Record

_images/Audio_IO.jpg

Step 1, plug the Microphone into the 3.5mm audio jack.

Step 2, open the APP Sound Recorder in Android.

Step 3, click Start button to start recording.

_images/Android_Recorder.png

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

6.7 RTC

If the network is connected, the RTC can synchronize with the network time. Execute the command hwclock at CRT terminal

hwclock
_images/Android_RTC.png

6.8 WiFi

_images/WiFi%2BBT.jpg

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/turn_on_wifi.png

6.9 Bluetooth

Click Settings -> Connected devices -> Pair new device

Select the available device in the list to pair.

_images/BT_avaliable_device.png

6.10 Camera

_images/camera_connect.jpg

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

_images/Android_back_camera.jpg

Click the button to switch the camera.

_images/Android_switch_camera.jpg

6.11 CAN

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

_images/EM3568_CAN.jpg _images/CAN_icon.jpg

Step 2, execute the commands on the serial terminal of board A and board B respectively.

ip link set can0 down
ip link set can0 type can bitrate 1000000 dbitrate 3000000 fd on
ip link set can0 up
candump can0                      //Set CAN0 as receive
cansend can0 123#DEADBEEF         //CAN0 send characters 0xDE 0xAD 0xBE 0xEF
_images/test_can.png

6.12 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.jpg _images/RS485_icon.jpg

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/ttyS7 115200 8 0 1

Step 4, input character to test RS485 communication.

_images/test_RS485.png

6.13 SATA

Connect the SATA0(6Gb/s) or SATA2(3Gb/s) and the SATA power before power on.

_images/SATA_connect.jpg _images/Android_test_SATA.png

6.14 4G

_images/4G_connect.jpg

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

Step 2, Connect antenna and insert SIM card.

Step 3, Power on.

The default network connection is 4G LTE.

_images/android_4G_LTE.png

6.15 UART

The UART 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 of file *com*
adb shell
chmod 777 /system/com            //Modify com properties

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

_images/UART.jpg

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

./system/com /dev/ttyS3 115200 8 0 1  //Test UART3
_images/Android_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/Android_Test_UART4.png
./system/com /dev/ttyS5 115200 8 0 1   //Test UART5
_images/Android_Test_UART5.png