Top Banner
QUICK START GUIDE VIA VAB-820 Android EVK v5.0.9 1.00-12202018-115700
32

QUICK START GUIDE VIA VAB-820cdn.viaembedded.com › products › docs › vab-820 › Android_Quick_St… · VAB-820_Android_EVK_v5.0.9_Quick_Start_Guide _v1.00_20181220.pdf: The

Jun 23, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: QUICK START GUIDE VIA VAB-820cdn.viaembedded.com › products › docs › vab-820 › Android_Quick_St… · VAB-820_Android_EVK_v5.0.9_Quick_Start_Guide _v1.00_20181220.pdf: The

QUICK START GUIDE

VIA VAB-820Android EVK v5.0.9

1.00-12202018-115700

Page 2: QUICK START GUIDE VIA VAB-820cdn.viaembedded.com › products › docs › vab-820 › Android_Quick_St… · VAB-820_Android_EVK_v5.0.9_Quick_Start_Guide _v1.00_20181220.pdf: The

Copyright

Copyright © 2018 VIA Technologies Incorporated. All rights reserved.

No part of this document may be reproduced, transmitted, transcribed, stored in a retrieval system, or translated into any language, in any form or by any means, electronic, mechanical, magnetic, optical, chemical, manual or otherwise without the prior written permission of VIA Technologies, Incorporated.

Trademarks

All brands, product names, company names, trademarks and service marks are the property of their respective holders.

Disclaimer

VIA Technologies makes no warranties, implied or otherwise, in regard to this document and to the products described in this document. The information provided in this document is believed to be accurate and reliable as of the publication date of this document. However, VIA Technologies assumes no responsibility for the use or misuse of the information (including use or connection of extra device/equipment/add-on card) in this document and for any patent infringements that may arise from the use of this document. The information and product specifications within this document are subject to change at any time, without notice and without obligation to notify any person of such change.

VIA Technologies, Inc. reserves the right the make changes to the products described in this manual at any time without prior notice.

Page 3: QUICK START GUIDE VIA VAB-820cdn.viaembedded.com › products › docs › vab-820 › Android_Quick_St… · VAB-820_Android_EVK_v5.0.9_Quick_Start_Guide _v1.00_20181220.pdf: The

VIA VAB-820 Android EVK v5.0.9 Quick Start Guide

Version Date Remarks1.00 12/20/2018 Initial release

Revision History

iii

Page 4: QUICK START GUIDE VIA VAB-820cdn.viaembedded.com › products › docs › vab-820 › Android_Quick_St… · VAB-820_Android_EVK_v5.0.9_Quick_Start_Guide _v1.00_20181220.pdf: The

VIA VAB-820 Android EVK v5.0.9 Quick Start Guide

Table of Contents1. Introduction ����������������������������������������������������������������������������������������������������������������������� 1

1�1 EVK Package Contents �������������������������������������������������������������������������������������������������������������������������� 11�1�1 Firmware Folder Contents ������������������������������������������������������������������������������������������������������������� 11�1�2 Document Folder Contents ������������������������������������������������������������������������������������������������������������ 11�1�3 Tools Folder Contents �������������������������������������������������������������������������������������������������������������������� 1

1.2 VersionInformationandSupportedFeatures �������������������������������������������������������������������������������������� 2

2. ImageInstallation ������������������������������������������������������������������������������������������������������������� 32.1 BootingfromtheSPIROMwitheMMC ����������������������������������������������������������������������������������������������� 3

3. HardwareFunction ����������������������������������������������������������������������������������������������������������� 53.1 SettingUpU-BootParameters ������������������������������������������������������������������������������������������������������������� 53.2 RestoringDefaultU-BootParameters �������������������������������������������������������������������������������������������������� 73.3 UsingtheAndroidConsole ������������������������������������������������������������������������������������������������������������������� 73.4 ConfiguringDisplayParameters ����������������������������������������������������������������������������������������������������������� 8

3.4.1 SettingUptheHDMIU-BootDisplayParameter���������������������������������������������������������������������������� 83.4.2 SettingUptheLVDSU-BootDisplayParameter ����������������������������������������������������������������������������� 93.4.3 SettingUptheDualDisplayU-BootDisplayParameter ����������������������������������������������������������������� 9

3.5 SettingUpVideo-in ����������������������������������������������������������������������������������������������������������������������������� 103.6 SmartETK ������������������������������������������������������������������������������������������������������������������������������������������� 11

3.6.1 InstallingSmartETK ��������������������������������������������������������������������������������������������������������������������� 113.6.2 TestingWatchdogTimerFunction ����������������������������������������������������������������������������������������������� 123.6.3 TestingGPIOFunction ������������������������������������������������������������������������������������������������������������������ 123.6.4 TestingUARTFunction ����������������������������������������������������������������������������������������������������������������� 143.6.5 TestingFlexCANFunction ������������������������������������������������������������������������������������������������������������� 15

3.6.5.1 BasicCANBusFunctionTesting ����������������������������������������������������������������������������������������� 163.6.5.2 AdvancedCANBusFunctionTesting ��������������������������������������������������������������������������������� 17

4. Accessories ���������������������������������������������������������������������������������������������������������������������� 184.1 ConfiguringtheVIAVNT9271USBWi-FiDongle/VIAEMIO-1533USBWi-FiModule ����������������������� 184.2 ConfiguringtheVIAEMIO-1541MiniPCIeWi-FiModule ������������������������������������������������������������������� 204.3 ConfiguringtheVIAEMIO-2531MiniPCIe/VIAEMIO-5531USBWi-Fi&BluetoothModule ������������� 21

4.3.1 ConnectingtotheInternet ���������������������������������������������������������������������������������������������������������� 214.3.2 EnablingBluetooth ���������������������������������������������������������������������������������������������������������������������� 22

4.3.2.1 SettingUpBluetoothA2DPProfile ������������������������������������������������������������������������������������ 224.3.2.2 SettingUpBluetoothSPPProfile ��������������������������������������������������������������������������������������� 23

4.4 ConfiguringtheVIAEMIO-2550MiniPCIeMobileBroadbandModule ���������������������������������������������� 254.4.1 ConnectingtotheInternet ���������������������������������������������������������������������������������������������������������� 254.4.2 EnablingGPS �������������������������������������������������������������������������������������������������������������������������������� 26

iv

Page 5: QUICK START GUIDE VIA VAB-820cdn.viaembedded.com › products › docs › vab-820 › Android_Quick_St… · VAB-820_Android_EVK_v5.0.9_Quick_Start_Guide _v1.00_20181220.pdf: The

1

VIA VAB-820 Android EVK v5.0.9 Quick Start Guide

1� IntroductionThisQuickStartGuideprovidesanoverviewofhowtoboottheAndroidEVKsystemimagefortheVIAVAB-820boardandconfigurethesupportedhardwarefunctioninthebuild.

TheVIAVAB-820AndroidEVKv5.0.9isdevelopedbasedontheNXPandroid_m6.0.1_1.0.0-ga(Android6.0Marshmallow)andenablesthehardwarefeaturesoftheVIAVAB-820board.

1�1 EVK Package ContentsTherearethreefoldersinthepackageaslistedbelow.

VIA VAB-820 Android EVK contents

1�1�1 Firmware Folder ContentsImages_autoinstall_sd.zip:containsinstallationscriptfilesandtheprecompiledU-BootandAndroidimageforevaluatingtheVIAVAB-820board.

1�1�2 Document Folder ContentsVAB-820_Android_EVK_v5.0.9_Quick_Start_Guide _v1.00_20181220.pdf:TheQuickStartGuideprovidesanoverviewofhowtoboottheAndroidEVKsystemimagefortheVIAVAB-820boardandconfigurethesupportedhardwarefunctionsinthebuild.

1�1�3 Tools Folder ContentsVAB-820_Smart_ETK_Demo_v1.0.apk:istheSmartETKdemoprogram.

BluetoothSPPTest.apk:istheBluetoothSPPprofiletestprogram.

Firmware folder DescriptionImages_autoinstall_sd.zip AndroidEVKsystemimageandinstallation

scriptfilesDocument folder DescriptionVAB-820_Android_EVK_v5.0.9_Quick_Start_Guide_v1.00_20181220.pdf

QuickStartGuide

Tools folder DescriptionVAB-820_Smart_ETK_Demo_v1.0.apk SmartETKdemoprogramBluetoothSPPTest.apk BluetoothSPPtestingprogram

Page 6: QUICK START GUIDE VIA VAB-820cdn.viaembedded.com › products › docs › vab-820 › Android_Quick_St… · VAB-820_Android_EVK_v5.0.9_Quick_Start_Guide _v1.00_20181220.pdf: The

2

VIA VAB-820 Android EVK v5.0.9 Quick Start Guide

1�2 VersionInformationandSupportedFeatures• U-Bootversion:2015.04

• Kernelversion:3.14.52

• Evaluationimage:AndroidMarshmallow6.0

• DevelopmentbasedonNXPandroid_M6.0.1_1.0.0-ga(Android6.0Marshmallow)

• SupportsSPIwitheMMCboot

• SupportsHDMIdisplay

• SupportsHDMIaudiooutput

• SupportsAUOLVDScapacitivetouchpanels(throughUSBinterface) º AUO10.4″G104XVN01.0(1024×768) º AUO7″G070VW01(800×480)

• SupportsDualDisplay(CloneMode)

• SupportsCVBS&S-Video

• SupportsCOM1DTEmode,COM2TX/RXonly

• SupportstwoFlexCANTX/RX

• SupportsGigabitEthernet

• SupportsLine-in,Line-out,andMic-in

• SupportsVIAVNT9271USBWi-Fidongle

• SupportsVIAEMIO-1533USBWi-Fimodule

• SupportsVIAEMIO-1541miniPCIeWi-Fimodule

• SupportsVIAEMIO-2531miniPCIeWi-Fi&Bluetoothmodule º SupportsBluetoothA2DPandSPPprofile

• SupportsVIAEMIO-5531USBWi-Fi&Bluetoothmodule º SupportsBluetoothA2DPandSPPprofile

• SupportsVIAEMIO-2550miniPCIeMobileBroadbandmodule

• SupportsSmartETKv1.0:Watchdogtimer,GPIO,UART,andFlexCAN

• SupportsOTA(Over-The-Airtechnology)

• SupportsshutdownoptioninQuickSettings

• SupportsEthernetconfigurationinSettings

Page 7: QUICK START GUIDE VIA VAB-820cdn.viaembedded.com › products › docs › vab-820 › Android_Quick_St… · VAB-820_Android_EVK_v5.0.9_Quick_Start_Guide _v1.00_20181220.pdf: The

3

VIA VAB-820 Android EVK v5.0.9 Quick Start Guide

2� ImageInstallationTheVIAVAB-820boardonlyprovidesbootingfromtheSPIROMwitheMMC.ThissectionexplainsthesetuprequirementsforbootingfromtheSPIROMandeMMC.

Theinstallationscriptfiles,theprecompiledU-Bootandimageareprovidedinthe"Firmware"folder.

2�1 BootingfromtheSPIROMwitheMMCTheImages_autoinstall_sd.zipincludestwoversionsoftheAndroidEVKsystemimage(NXPi.MX6Quadandi.MX6QuadPlus)andtheinstallationscriptsfiles.

ThefirststepistoextracttheImages_autoinstall_sd.zipfiletomakeabootableMicroSDcardintoyourLinuxhostmachineandmakesureitisnotmounted.Opentheterminalonyourhostmachine.SelectintotheiMX6QoriMX6QPfoldertorunthemk_android6_install_sd.shasshownbelow,replacing<devicename>withthecorrectvalueforthecard,forexample"sdb".

*Important: Makesureyouarewritingtothecorrectdeviceorthehostsystemenvironmentcouldbedamaged.

Next,ontheVIAVAB-820,setthebootflashjumper(J11)totheMicroSDpositionasshownbelow.

Boot flash jumper diagram

InsertthepreparedMicroSDcardintotheVIAVAB-820,connectanHDMIdisplay,andpowerontheVIAVAB-820toinitiatetheupdateprocessautomatically.

Update process screen

Whentheinstallprocessiscompleted,unplugthepowercableandremovetheMicroSDcard.

$ sudo ./mk_android6_install_sd.sh /dev/<device name>

VIA Technologies, Inc.

----------------------------------

iMX6_Android6.0.1

U-Boot Version : v2015.04-0.1.0Kernel Version : v3.14.52-0.1.0

Base File System Version : 0.1.0Reference File System Version : 0.1.0OtherInfo :

erasing spi flash (mtd0)

Warnings! Please don’t power off! Please wait...

30 %

Page 8: QUICK START GUIDE VIA VAB-820cdn.viaembedded.com › products › docs › vab-820 › Android_Quick_St… · VAB-820_Android_EVK_v5.0.9_Quick_Start_Guide _v1.00_20181220.pdf: The

4

VIA VAB-820 Android EVK v5.0.9 Quick Start Guide

InordertobootfromtheSPIROMmakesurethebootflashjumper(J11)issettoSPIROMboot.

Boot flash jumper diagram

Next,poweronthedevicetoinitiatethebootprocess.Whenthebootprocessiscompleted,youwillseetheAndroiddesktop.

Page 9: QUICK START GUIDE VIA VAB-820cdn.viaembedded.com › products › docs › vab-820 › Android_Quick_St… · VAB-820_Android_EVK_v5.0.9_Quick_Start_Guide _v1.00_20181220.pdf: The

5

VIA VAB-820 Android EVK v5.0.9 Quick Start Guide

3� HardwareFunctionThissectionexplainshowtoenableandtestthehardwarefunctionsprecompiledintheVIAVAB-820AndroidEVKincludingsettingupU-Bootparameters,restoringdefaultU-Bootparameters,usingtheAndroidconsole,configuringdisplayparameters,settingupthevideo-in,aswellasinstallingandapplyingthedifferentfunctionsincludedintheVIASmartETKsampleprogram.

3�1 SettingUpU-BootParametersWhensettinguptheU-Bootparameters,thefirststepistoconnectthehostmachineandtheVIAVAB-820throughtheonboardCOMconnector(J5).UseaserialportcommunicationprogramsuchasPuTTY,GtkTerm,orMinicomtoconfiguretheserialportsettingandconnecttothedebugconsole.ThereyouwillbeabletoseetheU-BootbootlogandadjustsettingsintheU-Bootconsole.

Serial port setting of host machine

COM connector (J5) diagram

+------------------------------------------------------------+| A - Serial Device : /dev/ttymxc0 || B - Lockfile Location : /var/lock || C - Callin Program : || D - Callout Program : || E - Bps/Par/Bits : 115200 8N1 || F - Hardware Flow Control : No || G - Software Flow Control : No |+------------------------------------------------------------+

Page 10: QUICK START GUIDE VIA VAB-820cdn.viaembedded.com › products › docs › vab-820 › Android_Quick_St… · VAB-820_Android_EVK_v5.0.9_Quick_Start_Guide _v1.00_20181220.pdf: The

6

VIA VAB-820 Android EVK v5.0.9 Quick Start Guide

Next,powerontheVIAVAB-820toinitiatethebootprocess.Whenprompted,pressanykeytostopthebootprocessandentertheU-Bootconsoleasillustratedbythescreenshotbelow.

Debug console view of boot process

TolistthecurrentU-Bootparameters,usethefollowingcommand:

Makesuretheprintoutmessageisasfollows:

U-Boot 2015.04 (Mar 7 2017 - 18:49:13)VAB820 ver:5.0.4

CPU: Freescale i.MX6Q rev1.2 at 996 MHzCPU: Temperature 30 C, calibration data: 0x5894f169Reset cause: PORBoard: iMX6Q-VAB820I2C: readyDRAM: 1 GiBMMC: FSL_SDHC: 0, FSL_SDHC: 1SF: Detected W25Q32BV with page size 256 Bytes, erase size 4 KiB, total 4 MiB*** Warning - bad CRC, using default environment

No panel detected: default to Hannstar-XGADisplay: Hannstar-XGA (1024x768)In: serialOut: serialErr: serialNet: FEC [PRIME]Warning: failed to set MAC address

Normal BootHit any key to stop autoboot: 0=>

=> printenv

=> printenv

baudrate=115200boot_emmc_root=mmc dev ${root_media_uboot};ext2load mmc ${root_media_uboot}:${root_partition} ${loadaddr} uImage;ext2load mmc ${root_media_uboot}:${root_partition} ${dtbaddr} imx6q-vab820.dtb;bootm ${loadaddr} -${dtbaddr};boot_media=booti mmc1

Page 11: QUICK START GUIDE VIA VAB-820cdn.viaembedded.com › products › docs › vab-820 › Android_Quick_St… · VAB-820_Android_EVK_v5.0.9_Quick_Start_Guide _v1.00_20181220.pdf: The

7

VIA VAB-820 Android EVK v5.0.9 Quick Start Guide

3�2 RestoringDefaultU-BootParametersIftheU-Bootparametershavebeenmodified,the"destroyenv"commandintheU-Bootconsolecanrestorethefactorydefaultsettings.

Torestartthedevice,usethe“reset"commands:

3�3 UsingtheAndroidConsoleThefirststepistoconnectthehostmachineandtheVIAVAB-820throughtheonboardCOMconnector(J5).UseaserialportcommunicationprogramsuchasPuTTY,GtkTerm,orMinicomtoconnecttothedebugconsole.

COM connector (J5) diagram

Next,powerontheVIAVAB-820toinitiatethebootprocess.Whenthebootprocessiscompleted,youwillautomaticallylogintoanAndroidconsole.

=> destroyenv=> saveenv=> reset

root@vab820_6dq:/ #

Page 12: QUICK START GUIDE VIA VAB-820cdn.viaembedded.com › products › docs › vab-820 › Android_Quick_St… · VAB-820_Android_EVK_v5.0.9_Quick_Start_Guide _v1.00_20181220.pdf: The

8

VIA VAB-820 Android EVK v5.0.9 Quick Start Guide

3�4 ConfiguringDisplayParametersTheVIAVAB-820AndroidEVKv5.0.9supportsthefollowingdisplaydevices:

• HDMImonitor(default)

• AUO10.4"G104XVN01.0LVDSpanel(1024x768)

• AUO7"G070VW01V0LVDSpanel(800x480)

3�4�1 SettingUptheHDMIU-BootDisplayParameterTosetHDMIasthedisplayoutput,usethefollowingcommands:

HDMIonlysupportsCEAmodesasshowninthetablebelow.

CEA modes table

Forexample,ifyouwouldliketosettheHDMIresolutionto1280x720@60Hz,usethefollowingcommands:

=> setenv hdmi_timing ‘1280x720M@60,bpp=32’=> saveenv

Width Height Frame rate640 480 60720 480 60

1280 720 601440 240 601440 480 601920 1080 60720 576 50

1280 720 501440 288 501440 576 501920 1080 501920 1080 241920 1080 251920 1080 301280 720 1001280 720 120

=> setenv display ‘run hdmi’=> saveenv

Page 13: QUICK START GUIDE VIA VAB-820cdn.viaembedded.com › products › docs › vab-820 › Android_Quick_St… · VAB-820_Android_EVK_v5.0.9_Quick_Start_Guide _v1.00_20181220.pdf: The

9

VIA VAB-820 Android EVK v5.0.9 Quick Start Guide

3�4�2 SettingUptheLVDSU-BootDisplayParameterBeforesettinganLVDSpanelasthedisplayoutput,makesuretheLVDSpowerjumperissetto+12VforLVDSinverter(backlight)powerand+3.3VforLVDSpanelpowerasshownbelow.

LVDS power jumper diagram

TosettheAUO10.4"G104XVN01.0LVDSpanelasthedisplayoutput,usethefollowingcommands:

Inordertoconfirmthatthesettingsarecorrect,usethefollowingcommandtolistthenewU-Bootparameters:

TosettheAUO7"G070VW01V0LVDSpanelasthedisplayoutput,usethefollowingcommands:

Inordertoconfirmthatthesettingsarecorrect,usethefollowingcommandtolistthenewU-Bootparameters:

3�4�3 SettingUptheDualDisplayU-BootDisplayParameterTheVIAVAB-820supportsclonemodewithanHDMImonitorandLVDSpanel.Clonemodewillallowthesamecontenttobeshownonbothdisplaydevices.

TosetanHDMImonitorandtheAUO10.4"G104XVN01.0(1024x768)LVDSpanel,usethefollowingcommands:

TosetanHDMImonitorandtheAUO7"G070VW01V0(800x480)LVDSpanel,usethefollowingcommands:

=> setenv display ‘run lvds_auo_g104’=> saveenv

=> printenv lvds_auo_g104lvds_auo_g104=video=mxcfb0:dev=ldb,LDB-XGA, if=RGB24 ldb=sin0

=> setenv display ‘run lvds_auo_g007’=> saveenv

=> printenv lvds_auo_g070lvds_auo_g070=video=mxcfb0:dev=ldb,480C60,if=RGB24 ldb=sep0

=> setenv display ‘run hdmi_lvds_g104’=> saveenv=> reset

=> setenv display ‘run hdmi_lvds_g007’=> saveenv=> reset

Inverter

Page 14: QUICK START GUIDE VIA VAB-820cdn.viaembedded.com › products › docs › vab-820 › Android_Quick_St… · VAB-820_Android_EVK_v5.0.9_Quick_Start_Guide _v1.00_20181220.pdf: The

10

VIA VAB-820 Android EVK v5.0.9 Quick Start Guide

3�5 SettingUpVideo-inTheVIAVAB-820supportstwovideoinputs.ThecompositeRCAjackisaCVBSsignalinputandtheS-VIDEO1pinheaderisanS-Videosignalinput.Thefollowingstepsareforvideo-infunctionverification.

Composite RCA jack diagram

S-Video pin header diagram

TheCVBSisthedefaultvideoinput.

TosettheCVBSasvideoinputsource,usethefollowingcommand:

TosettheS-Videoasvideoinputsource,usethefollowingcommand:

Pleasenotethatafterthesetupiscomplete,youwillneedtorestartthecameraprogramforthesettingstobeapplied.

root@vab820_6dq:/ # setprop adv7180_src 1

root@vab820_6dq:/ # setprop adv7180_src 2

Page 15: QUICK START GUIDE VIA VAB-820cdn.viaembedded.com › products › docs › vab-820 › Android_Quick_St… · VAB-820_Android_EVK_v5.0.9_Quick_Start_Guide _v1.00_20181220.pdf: The

11

VIA VAB-820 Android EVK v5.0.9 Quick Start Guide

3�6 SmartETKTheVIAVAB-820SmartETKsupportsWatchdogtimer,GPIO,UARTandCANbusfunctions.PleasefollowtheproceduresbelowtoexperimentwiththeSmartETKfunctionsontheVIAVAB-820board.

3�6�1 InstallingSmartETKThefirststepistocopytheVAB-820_Smart_ETK_Demo_v1.0.apkontoamassstoragedevicesuchasaUSBthumbdrive.Next,fromtheSettingsscreen,clickSecurity,andthenswitchonthe"Unknownsources"asshowninthediagrambelow.

Finally,inserttheUSBthumbdriveintotheVIAVAB-820anddoubleclickontheVAB-820_Smart_ETK_Demo_v1.0.apkfiletoinstall.

Whentheinstallationprocesshasbeencompleted,runtheVAB-820_Smart_ETK_Demo_v1.0.apkandstarttotestthedifferentfunctionswithit.

Smart ETK SDK sample screen

Page 16: QUICK START GUIDE VIA VAB-820cdn.viaembedded.com › products › docs › vab-820 › Android_Quick_St… · VAB-820_Android_EVK_v5.0.9_Quick_Start_Guide _v1.00_20181220.pdf: The

12

VIA VAB-820 Android EVK v5.0.9 Quick Start Guide

3�6�2 TestingWatchdogTimerFunctionTheWatchdogtimerisanelectronictimerthatisusedtodetectandrecoverfromsystemmalfunctions.

TheWatchdogtimerincludesEnable/Disable,SetTimeout,KeepAlive,andCountdownTimerfunctions.

Smart ETK Watchdog timer diagram

AlistofoptionswillappearontheSmartETKDemoProgrampage,selecttheappropriateoptiontostarttesting.

TotesttheWatchdogtimerfunction,thefirststepistoenterthetimevalue(1~128seconds)intheTimeoutsetting.

ClickontheEnable/DisablebuttontostarttheWatchdogtimerfunction.

ClickontheREFRESHbuttontorefreshthecountdowntimevaluebacktothebeginning.

ClickontheSTOPbuttontostoptheWatchdogtimerfunction.

3�6�3 TestingGPIOFunctionTheGPIOpinheader(J7)ontheVIAVAB-820consistsof19pins.Pins11~18areactive.Thefollowingsectionexplainshowtosetupthesepinsforinput/outputcommunication.

GPIO pin header diagram

Page 17: QUICK START GUIDE VIA VAB-820cdn.viaembedded.com › products › docs › vab-820 › Android_Quick_St… · VAB-820_Android_EVK_v5.0.9_Quick_Start_Guide _v1.00_20181220.pdf: The

13

VIA VAB-820 Android EVK v5.0.9 Quick Start Guide

GPIO pin header pinouts table

Smart ETK GPIO interface diagram

First,pleaseopentheSmartETKsampleprogram,thenfromtheleftsideselectGPIOtostarttesting.Inthedemoprogram,pins11~18havebeensetasprogrammableGPIOpins.

Thetogglesundereachpincanbeusedtosetthedesiredconfiguration.

Enable/Disable:Setswhetherthepinfunctionisenabledordisabled.

IN/OUT:Setswhetherthepinisdefinedasinput(in)oroutput(out).

IfyouhavesetaGPIOpinasaninput(in),theVoltagevaluewillshowwhethertheinputvoltagesignalishighor low�

Voltagelow:theinputvoltagesignalislow.

Voltagehigh:theinputvoltagesignalishigh.

IfyouhavesettheGPIOpinasanoutput(out),youcanthensettheoutputvoltagetohighorlowwiththeValuesetting.

Voltagelow:theoutputvoltagesignalislow.

Voltagehigh:theoutputvoltagesignalishigh.

Pin Signal Pin Signal1 RESET_N 2 P_LED+3 GND 4 P_LED-5 12C3_SCL 6 W_LED+7 12C3_SDA 8 W_LED-9 5VIN 10 GND

11 GPIO_1 12 GPIO_713 GPIO_2 14 GPIO_815 GPIO_4 16 GPIO_917 GPIO_5 18 GPIO_1619 GND 20 -

Page 18: QUICK START GUIDE VIA VAB-820cdn.viaembedded.com › products › docs › vab-820 › Android_Quick_St… · VAB-820_Android_EVK_v5.0.9_Quick_Start_Guide _v1.00_20181220.pdf: The

14

VIA VAB-820 Android EVK v5.0.9 Quick Start Guide

3�6�4 TestingUARTFunctionTheVIASmartETKUARTfunctionsupportsTX/RXcommunicationwithotherdevices.

ThefirststepistoconnectthehostmachinetotheCOMconnector(J4)ontheVIAVAB-820.NextonthehostmachinestartaserialcommunicationprogramsuchasPutty,GtkTermorMinicomwiththesameserialportsettingusingtheappropriateserialdevice.

COM connector (J4) diagram

Smart ETK UART diagram

Then,pleaseopentheSmartETKsampleprogram.FromtheleftsideoftheSmartETKsamplepage,selectUART.

Tobegin,select"ttymxc0"fromthedevicedrop-downmenuandaBaudrateof"115200"fortheBaudRatedrop-downmenu.TheVIAVAB-820onlysupports"RS-232"mode.

Next,clickontheConnectbuttontoenabletheUARTfunctionandstartcommunicationbetweenthehostmachineandVIAVAB-820board.

WhenthehostmachinetransfersdatatotheVIAVAB-820,thedatawillbedisplayedinsidetheredframe.

TosenddatafromthehostmachinetotheVIAVAB-820,youneedtotypethedatainsidethewhiteframeandclicktheSendbutton.

ClickontheDisconnectbuttontodisablethisfunction.

ClickontheResetbuttontoresetthisfunction.

Page 19: QUICK START GUIDE VIA VAB-820cdn.viaembedded.com › products › docs › vab-820 › Android_Quick_St… · VAB-820_Android_EVK_v5.0.9_Quick_Start_Guide _v1.00_20181220.pdf: The

15

VIA VAB-820 Android EVK v5.0.9 Quick Start Guide

3�6�5 TestingFlexCANFunctionTheCAN/COMconnector(J5)oftheVIAVAB-820supportstwoCANbusportswithFlexCANprotocolspecificationVersion2.0B.

CAN/COM connector (J5) diagram

CAN/COM connector (J5) pinouts table

Pin Signal1 5VIN2 COM2RX3 COM2TX4 NC5 NC6 GND7 CANRX28 CANTX29 CANTX1

10 CANRX1

Page 20: QUICK START GUIDE VIA VAB-820cdn.viaembedded.com › products › docs › vab-820 › Android_Quick_St… · VAB-820_Android_EVK_v5.0.9_Quick_Start_Guide _v1.00_20181220.pdf: The

16

VIA VAB-820 Android EVK v5.0.9 Quick Start Guide

Smart ETK FlexCAN diagram

Tobegin,opentheSmartETKsampleprogramandselectCANfromtheleftsidetoaccesstheSmartETKCANtest interface�

TheCANIDframestructureis32bits.Oneframeincludes:1-bitEFFflag,1-bitRTRflag,1-bitERRflag,an18-bitextension("identifierextension")and11-bitidentifier("baseidentifier").

Inordertousetheidentifierextension,youneedtoclick"EFF".

IfyouselectRTR,theRTR-bitistransmittedasadominantbitintheDataFrameandtheDataFieldwillbeemptyintheRemoteField.

3�6�5�1 BasicCANBusFunctionTestingInordertoconnecttheCANbusportfortesting,youneedtoaddanadditionaltransceivercircuit.PleasevisittheTexasInstrumentswebsite(https://www.ti.com)tosearchInformationon"TISN65HVD1050CANBusTransceiver".

Afteraddinganadditionaltransceivercircuit,thenextstepistoconnectthecorrespondingsignalsbetweenCAN1andCAN2asfollows:

CAN1LtoCAN2LandCAN1HtoCAN2H

Next,intheSmartETKprogram,setaBitratevaluebetween5000and1000000andthenpress"Connect"toestablishaconnection.

Totestifthedatacanbetransmitted,enteranIDintheCAN1_Send_IDblockanddataintheSend_Datablockandthenclick"Send".

WhenCAN1transfersdatatoCAN2,thedatawillbedisplayedintheredblockundertheCAN2RxScreensection.

ClickontheResetbuttontoresetthisCANbusfunction.

ClickontheDisconnectbuttontodisablethisfunction.

Page 21: QUICK START GUIDE VIA VAB-820cdn.viaembedded.com › products › docs › vab-820 › Android_Quick_St… · VAB-820_Android_EVK_v5.0.9_Quick_Start_Guide _v1.00_20181220.pdf: The

17

VIA VAB-820 Android EVK v5.0.9 Quick Start Guide

3�6�5�2 AdvancedCANBusFunctionTestingForadvancedtesting,youwillneedtousetheFilter_IDandFilterMaskfunctions.

TheFilterMaskisusedtodeterminewhichbitsintheidentifierofthereceivedframearecomparedwiththefilter.TheFilter_IDisusedtolimitthedatabeingsentandreceivedthroughtheCANbus.

*Note: TheFilter_IDandFilterMaskmustbetypedinhexadecimalvalues.

Ifamaskbitissettozero,thecorrespondingIDbitwillautomaticallybeaccepted,regardlessofthevalueofthefilterbit.

Ifamaskbitissettoone,thecorrespondingIDbitwillbecomparedwiththevalueofthefilterbit.

Iftheymatch,itisacceptedotherwisetheframeisrejected.

Therearefourexamplesusinghexadecimalvaluesbelow.

Example 1

YouwishtoonlyacceptframeswithanIDnumberof00001567.

SettheFilter_IDto00001567andtheFilterMaskto1FFFFFFF.

Whenaframearrives,itsIDiscomparedwiththefilterandallbitsmustmatch;anyframethatdoesnotmatchID00001567isrejected.

Example 2

YouwishtoonlyacceptframeswithIDnumbers00001560thruto0000156F.

SettheFilter_IDto00001560andtheFilterMaskto1FFFFFF0.

Whenaframearrives,itsIDiscomparedwiththefilterandallbitsexceptbits0to3mustmatch;anyotherframeisrejected.

Example 3

YouwishtoonlyacceptframeswithIDnumbers00001560thruto00001567.

SettheFilter_IDto00001560andtheFilterMaskto1FFFFFF8.

WhenaframearrivesitsIDiscomparedwiththefilterandallbitsexceptbits0to2

mustmatch;anyotherframeisrejected.

Example 4

Youwishtoacceptanyframe.

SettheFilter_IDto0andFIlterMaskto0.

Allframesareaccepted.

Page 22: QUICK START GUIDE VIA VAB-820cdn.viaembedded.com › products › docs › vab-820 › Android_Quick_St… · VAB-820_Android_EVK_v5.0.9_Quick_Start_Guide _v1.00_20181220.pdf: The

18

VIA VAB-820 Android EVK v5.0.9 Quick Start Guide

4� AccessoriesThissectionexplainshowtoinstallandconfigurethevariousUSBdongleandEMIOmodulesavailablefortheVIAVAB-820board.

4�1 ConfiguringtheVIAVNT9271USBWi-FiDongle/ VIAEMIO-1533USBWi-FiModuleTheVIAVNT9271dongleandVIAEMIO-1533modulesupportsWi-FifunctionalitythroughaUSBportoronboardUSBpinheaderconnectionrespectively.

ThefirststepistoinserttheVIAVNT9271dongleintoaUSBportorconnecttheVIAEMIO-1533moduletotheonboardUSBpinheader(J8)usingtheUSBcable(P/N:99G3-190042).Afterinstallingthemodule,connecttheprovidedantenna.Next,makesuretounpluganyLANcablesorotherWi-Fi/3Gmodulesyouhaveinstalled.Finally,powerontheVIAVAB-820.

Inserting the VIA VNT9271 dongle

Connecting the VIA EMIO-1533 module

1

2

Page 23: QUICK START GUIDE VIA VAB-820cdn.viaembedded.com › products › docs › vab-820 › Android_Quick_St… · VAB-820_Android_EVK_v5.0.9_Quick_Start_Guide _v1.00_20181220.pdf: The

19

VIA VAB-820 Android EVK v5.0.9 Quick Start Guide

ToenabletheWi-Fi,gotoSettings->Wi-Fi->On.

AlistofWi-Ficonnectionswillappearonthescreen.SelecttheappropriatedevicetocompletetheWi-Ficonnection.

Whentheconnectioniscreated,connecttotheinternetthroughyourwebbrowser.

Page 24: QUICK START GUIDE VIA VAB-820cdn.viaembedded.com › products › docs › vab-820 › Android_Quick_St… · VAB-820_Android_EVK_v5.0.9_Quick_Start_Guide _v1.00_20181220.pdf: The

20

VIA VAB-820 Android EVK v5.0.9 Quick Start Guide

4�2 ConfiguringtheVIAEMIO-1541MiniPCIeWi-FiModuleTheVIAEMIO-1541modulesupportsWi-FithroughtheonboardminiPCIeslot.

ThefirststepistoinserttheVIAEMIO-1541moduleintotheminiPCIeslot.Afterinstallingthemodule,connecttheprovidedantennatothemodule.Next,makesuretounpluganyLANcablesorUSBWi-Fidonglesyouhaveinstalled.Finally,powerontheVIAVAB-820.

Inserting the VIA EMIO-1541 module

ToenableWi-Fi,gotoSettings->Wi-Fi->On.

AlistofWi-Ficonnectionswillappearonthescreen.SelecttheappropriatedevicetocompletetheWi-Ficonnection.

Whentheconnectioniscreated,connecttotheinternetthroughyourwebbrowser

30

Page 25: QUICK START GUIDE VIA VAB-820cdn.viaembedded.com › products › docs › vab-820 › Android_Quick_St… · VAB-820_Android_EVK_v5.0.9_Quick_Start_Guide _v1.00_20181220.pdf: The

21

VIA VAB-820 Android EVK v5.0.9 Quick Start Guide

4�3 ConfiguringtheVIAEMIO-2531MiniPCIe/VIAEMIO-5531 USBWi-Fi&BluetoothModuleTheVIAEMIO-2531moduleandVIAEMIO-5531modulesupportsWi-FiandBluetoothfunctions.

4�3�1 ConnectingtotheInternetThefirststepistoinserttheVIAEMIO-2531moduleintotheminiPCIeslotorconnecttheVIAEMIO-5531moduletotheonboardUSBpinheader(J8)usingtheUSBcable(P/N:99G3-190042).Afterinstallingthemodule,connecttheprovidedantennatothemodule.Next,makesuretounpluganyLANcablesorotherWi-Fi/3Gmodulesyouhaveinstalled.Finally,powerontheVIAVAB-820.

Inserting the VIA EMIO-2531 module

Connecting the VIA EMIO-5531 module

30

1

2

Page 26: QUICK START GUIDE VIA VAB-820cdn.viaembedded.com › products › docs › vab-820 › Android_Quick_St… · VAB-820_Android_EVK_v5.0.9_Quick_Start_Guide _v1.00_20181220.pdf: The

22

VIA VAB-820 Android EVK v5.0.9 Quick Start Guide

ToenableWi-Fi,gotoSettings->Wi-Fi->On.

AlistofWi-Ficonnectionswillappearonthescreen.SelecttheappropriatedevicetocompletetheWi-Ficonnection.

Whentheconnectioniscreated,connecttotheinternetthroughyourwebbrowser.

4�3�2 EnablingBluetoothThefollowingsectionsshowhowtoenabletheBluetoothAdvancedAudioDistributionProfile(A2DP)toallowaudioplaybackthroughaconnectedBluetoothdeviceaswellashowtoconfiguretheBluetoothSerialPortProfile(SPP).

4�3�2�1 SettingUpBluetoothA2DPProfileFirst,puttheaccessoryyouwanttouseintodiscoverymode.Theexactwaytodothisdependsontheaccessory.Ifyouhaveaheadset,youmayneedtoholdabuttondownontheheadsetforseveralsecondsuntilalightstartsflashing.Itwillonlystaydiscoverableforafewminutes.

Ifyouarenotsurehowtoputyouraccessoryintodiscoverymode,pleaserefertoitsmanual,checkthemanufacturer’swebsite,orperformawebsearchforinstructions.ToenabletheBluetoothA2DPfunction,gotoSettings->BluetoothandsettheswitchtoOn.

Alistoflocaldeviceswillappearonthescreen.SelecttheappropriatedevicetocompletetheBluetoothpairing.

Page 27: QUICK START GUIDE VIA VAB-820cdn.viaembedded.com › products › docs › vab-820 › Android_Quick_St… · VAB-820_Android_EVK_v5.0.9_Quick_Start_Guide _v1.00_20181220.pdf: The

23

VIA VAB-820 Android EVK v5.0.9 Quick Start Guide

4�3�2�2 SettingUpBluetoothSPPProfileTheVIAVAB-820implementstheBluetoothSerialPortProfileallowingserialportcommunicationbetweentwoAndroiddevices.

IncludedintheVIAVAB-820ToolsfolderistheBluetoothSPPTest.apkwhichisasimplecommunicationapplicationwhichutilizestheBluetoothSPPProfiletotransmitandreceivedatabetweentwopairedAndroiddevices.

ThefirststepistocopytheBluetoothSPPTest.apkontoamassstoragedevicesuchasUSBthumbdrive.Next,fromtheSettingsscreen,clickSecurity->Unknownsourcestoallowinstallationofnon-Marketapps.

ThefollowingexamplewilldemonstratehowtousetheBluetoothSPPTest.apktocommunicateovertheBluetoothSPPProfilebetweentwoVIAVAB-820boards.

First,theBluetoothSPPTest.apkmustbeinstalledontoeachVIAVAB-820board.FromtheSettingsscreen,clickSecurity->Unknownsourcesandthenswitchonthe“Unknownsources".Next,copytheBluetoothSPPTest.apkontoamassstoragedevice,suchasUSBthumbdrive,andinstalltheBluetoothSPPTest.apkontobothVIAVAB-820 boards�

Aftertheinstallationprocesshasbeencompleted,gotoSettings->Bluetooth->OntoenabletheBluetoothfunctiononbothVIAVAB-820boards.

Alistoflocaldeviceswillthenappearoneachscreen.Fromeitherscreen,selecttheVIAVAB-820boardfromthelisttocompletethepairingprocessasseeninthefigurebelow.

Page 28: QUICK START GUIDE VIA VAB-820cdn.viaembedded.com › products › docs › vab-820 › Android_Quick_St… · VAB-820_Android_EVK_v5.0.9_Quick_Start_Guide _v1.00_20181220.pdf: The

24

VIA VAB-820 Android EVK v5.0.9 Quick Start Guide

Afterthedeviceshavepaired,opentheBluetoothSPPTest.apkonbothVIAVAB-820boardsandconfigurethesettingsasfollowsinbothapps.

"Auto"–enabled

"Show Message"–enabled

SelectCONNECT fromeitherVIAVAB-820boardtocreatetheconnectionbetweenthetwo.BothVIAVAB-820boardscancommunicateovertheBluetoothSPPProtocol.

BluetoothSPPTest diagram

Atthebottomofthescreen,enterthedatainsidethebar(highlightedintheyellowframeabove)andthenclicktheplaybutton(highlightedintheblueframeabove)tosendthedata.ThedatawillthenbereceivedanddisplayedontheotherVIAVAB-820board.

Page 29: QUICK START GUIDE VIA VAB-820cdn.viaembedded.com › products › docs › vab-820 › Android_Quick_St… · VAB-820_Android_EVK_v5.0.9_Quick_Start_Guide _v1.00_20181220.pdf: The

25

VIA VAB-820 Android EVK v5.0.9 Quick Start Guide

4�4 ConfiguringtheVIAEMIO-2550MiniPCIeMobile BroadbandModuleTheVIAEMIO-2550miniPCIeMobileBroadbandmodulesupports3GandGPSfunctions.

4�4�1 ConnectingtotheInternetThefirststepistoinsertanactiveSIMcardintotheVIAEMIO-2550module,andtheninserttheVIAEMIO-2550moduleintotheminiPCIeslot.Afterinstallingthemodule,connecttheprovidedantennatothemodule.Next,makesuretounpluganyLANcablesorUSBWi-Fidonglesyouhaveinstalled.Finally,powerontheVIAVAB-820.

Inserting the VIA EMIO-2550 module

TocheckthatthesystemhasbeencorrectlydetectedtheVIAEMIO-2550module,usethefollowingcommand:

Makesuretheprintoutmessageincludes"ppp0Linkencap:Point-to-PointProtocol".

Toenable3G,gotoSettings->Wireless&networks->More->Cellularnetwork->AccessPointNames.Next,clicktheplusbuttontoaddyourAPNssetting.

root@vab820_6dq:/ # busybox ifconfig

30

Page 30: QUICK START GUIDE VIA VAB-820cdn.viaembedded.com › products › docs › vab-820 › Android_Quick_St… · VAB-820_Android_EVK_v5.0.9_Quick_Start_Guide _v1.00_20181220.pdf: The

26

VIA VAB-820 Android EVK v5.0.9 Quick Start Guide

FillintherequiredfieldsfortheAPNssetting.Ifyouareunsureofwhattherequiredfieldsandvalueare,checkwithyourMobileBroadbandprovider.

WhentheAPNssettingiscompleted,clickyourAPNstoenablethe3Gnetwork.Next,openthebrowsertoconnecttotheinternet.

4�4�2 EnablingGPSToenableGPS,gotoSettings->Location->On.

Next,gotoSettings->Wireless&networks->More->RILOEMHookTest->API4Typecommand.Fullin"AT+UGPS=1.0"andclickRUNbutton.

Page 31: QUICK START GUIDE VIA VAB-820cdn.viaembedded.com › products › docs › vab-820 › Android_Quick_St… · VAB-820_Android_EVK_v5.0.9_Quick_Start_Guide _v1.00_20181220.pdf: The

27

VIA VAB-820 Android EVK v5.0.9 Quick Start Guide

Waitforthe"OK"messageandopentheGPSprogram.

Page 32: QUICK START GUIDE VIA VAB-820cdn.viaembedded.com › products › docs › vab-820 › Android_Quick_St… · VAB-820_Android_EVK_v5.0.9_Quick_Start_Guide _v1.00_20181220.pdf: The

1F, 531 Zhong-zheng Road,Xindian Dist., New Taipei City 231Taiwan

Tel: 886-2-2218-5452Fax: 886-2-2218-9860Email: [email protected]

940 Mission CourtFremont, CA 94539,USA

Tel: 1-510-687-4688Fax: 1-510-687-4654Email: [email protected]

Email: [email protected]

Taiwan Headquarters USA

Europe

Tsinghua Science Park Bldg. 7No. 1 Zongguancun East Road,Haidian Dist., Beijing, 100084China

Tel: 86-10-59852288Fax: 86-10-59852299Email: [email protected]

3-15-7 Ebisu MT Bldg. 6F,Higashi, Shibuya-kuTokyo 150-0011Japan

Tel: 81-3-5466-1637Fax: 81-3-5466-1638Email: [email protected]

ChinaJapan