QUICK START GUIDE
AMOS-825Android EVK v5.0.3
1.00-051702018-120700
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.
AMOS-825 Android EVK v5.0.3 Quick Start Guide
Version Date Remarks1.00 05/17/2018 Initial release
Revision History
iii
AMOS-825 Android EVK v5.0.3 Quick Start Guide
Table of Contents1. Introduction ����������������������������������������������������������������������������������������������������������������������� 1
1�1 EVK Package Content ���������������������������������������������������������������������������������������������������������������������������� 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 BootingfromaMicroSDCard ������������������������������������������������������������������������������������������������������������� 3
3. HardwareFunction ����������������������������������������������������������������������������������������������������������� 53.1 SettingUpU-BootParameters ������������������������������������������������������������������������������������������������������������� 53.2 RestoringDefaultU-BootParameters �������������������������������������������������������������������������������������������������� 73.3 UsingtheAndroidConsole ������������������������������������������������������������������������������������������������������������������� 73.4 EnablingGPS ����������������������������������������������������������������������������������������������������������������������������������������� 83.5 EnablingWi-Fi ��������������������������������������������������������������������������������������������������������������������������������������� 83.6 EnablingBluetooth ������������������������������������������������������������������������������������������������������������������������������� 9
3.6.1 SettingUpBluetoothA2DPProfile������������������������������������������������������������������������������������������������� 93.6.2 SettingUpBluetoothSPPProfile ��������������������������������������������������������������������������������������������������� 9
3.7 SmartETK ������������������������������������������������������������������������������������������������������������������������������������������� 113.7.1 TestingWatchdogTimerFunction ����������������������������������������������������������������������������������������������� 123.7.2 TestingFlexCANFunction ������������������������������������������������������������������������������������������������������������� 13
4. Accessories ���������������������������������������������������������������������������������������������������������������������� 164.1 ConfiguringtheEMIO-2550miniPCIeMobileBroadbandModule ���������������������������������������������������� 16
4.1.1 ConnectingtotheInternet ���������������������������������������������������������������������������������������������������������� 16
iv
1
AMOS-825 Android EVK v5.0.3 Quick Start Guide
1� IntroductionThisQuickStartGuideprovidesanoverviewonhowtoboottheAndroidEVKsystemimagefortheAMOS-825systemandconfigurethesupportedhardwarefunctionsinthebuild.
TheAMOS-825AndroidEVKv5.0.3isdevelopedbasedontheNXPandroid_m6.0.1_1.0.0-ga(Android6.0Marshmallow)andenablesthehardwarefeaturesoftheAMOS-825system.
1�1 EVK Package ContentTherearethreefoldersinthepackagelistedasbelow.
AMOS-825 Android EVK contents
1�1�1 Firmware Folder ContentsImages_autoinstall_sd.zip: containsinstallationscriptfilesandtheprecompiledU-bootandAndroidimageforevaluatingtheAMOS-825system.
1�1�2 Document Folder ContentsAMOS-825_Android_EVK_v5.0.3_Quick_Start_Guide _v1.00_20180517.pdf:ThisQuickStartGuideprovidesanoverviewonhowtoboottheAndroidEVKsystemimagefortheAMOS-825systemandconfigurethesupportedhardwarefunctionsinthebuild.
1�1�3 Tools Folder ContentsAMOS-825_Smart_ETK_Demo_v1.0.apk:isthedemoprogramoftheSmartETK.
BluetoothSPPTest.apk:isthetestingprogramoftheBluetoothSPPprofile.
Firmware folder DescriptionImages_autoinstall_sd.zip AndroidEVKsystemimageandinstallation
scriptfilesDocument folder DescriptionAMOS-825_Android_EVK_v5.0.3_Quick_Start_Guide_v1.00_20180517.pdf
QuickStartGuide
Tool folder DescriptionAMOS-825_Smart_ETK_Demo_v1.0.apk SmartETKdemoprogramBluetoothSPPTest.apk BluetoothSPPtestingprogram
2
AMOS-825 Android EVK v5.0.3 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
• Supports7”Projectivecapacitivetouchmonitor(800x480)throughI2Cinterface
• SupportsCOMasdebugport
• SupportstwoFlexCANTX/RX
• SupportsGigabitEthernet
• SupportsMic-in
• SupportsIEEE802.11b/g/nWi-Fi
• SupportsBluetooth4.0
κ A2DPandSPPprofile
• SupportsU-bloxMAX-7GPS/GNSSmodule
• SupportsEMIO-2550miniPCIeMobileBroadbandmodule
• SupportsSmartETKv1.00:WatchdogTimer,UART,andFlexCAN
• SupportsOTA(Over-The-Airtechnology)
• SupportsshutdownoptioninQuickSettings
• SupportsEthernetconfigurationinSettings
3
AMOS-825 Android EVK v5.0.3 Quick Start Guide
2� ImageInstallationTheAMOS-825AndroidsystemonlyprovidesbootingfromtheSPIROMwitheMMC.ThissectionexplainsthesetuprequirementsforbootingfromtheSPIROMandeMMC.
Theinstallationscriptfiles,theprecompiledU-bootandimageareprovidedinthe“Firmware”folder.
2�1 BootingfromaMicroSDCardTheImages_autoinstall_sd.zipincludestheAndroidEVKsystemimageandtheinstallationscriptsfiles.
ThefirststepistoextractImages_autoinstall_sd.zipfiletomakethebootableMicroSDcard.InsertaMicroSDcardintoyourLinuxhostmachineandmakesureitisnotmounted.Opentheterminalonyourhostmachine.Runthemk_android6_install_sd.shasshownbelow,replacing<devicename>withthecorrectvalueforthecard,forexample“sdb”.
Important:Makesureyouarewritingtothecorrectdeviceorthehostsystemenvironmentcouldbedamaged.
Next,ontheAMOS-825,settheMicroSD/SPIbootswitchtotheMicroSDpositionasshownbelow.
Micro SD/SPI boot switch diagram
InsertthepreparedMicroSDcardintotheAMOS-825,connectanHDMIdisplay,andpoweronthedevicetoinitiatetheupdateprocessautomatically.
$ sudo ./mk_android6_install_sd.sh /dev/<device name>
4
AMOS-825 Android EVK v5.0.3 Quick Start Guide
Update process screen
Whentheinstallprocessiscompleted,unplugthepowercableandremovetheMicroSDcard.
InordertobootfromtheSPIROMmakesuretheMicroSD/SPIbootswitchissettoSPIROMboot.
Micro SD/SPI boot switch diagram
Next,poweronthedevicetoinitiatethebootprocess.Whenthebootprocessiscompleted,youwillseetheAndroiddesktop.
5
AMOS-825 Android EVK v5.0.3 Quick Start Guide
3� HardwareFunctionThissectionexplainshowtoenableandtestthehardwarefunctionsprecompiledintheAMOS-825AndroidEVKincludingsettingU-Bootparameters,restoringdefaultU-Bootparameters,usingtheAndroidConsole,enablingGPS,enablingWi-Fi,enablingBluetooth,aswellasinstallingandapplyingthedifferentfunctionsincludedintheVIASmartETKsampleprogramwhicharetestingWatchdogtimerfunctionandtestingtheFlexCANfunction.
3�1 SettingUpU-BootParametersThefirststepistoconnectthehostmachineandtheAMOS-825throughtheCOMport.UseaserialportcommunicationprogramsuchasPuTTY,GtkTerm,orMinicom,toconfiguretheserialportsettingandconnecttothedebugconsole.ThereyouwillbeabletoseetheU-BootbootlogandadjustsettingsintheU-Bootconsole�
Serial port setting of host machine
COM port diagram
6
AMOS-825 Android EVK v5.0.3 Quick Start Guide
Next,powerontheAMOS-825toinitiatethebootprocess.Whenprompted,pressanykeytostopthebootprocess,andentertheU-Bootconsoleasillustratedbythescreenshotbelow.
Debug console view of boot process
TolistthecurrentU-Bootparameters,usethefollowingcommand:
Makesuretheprintoutmessageisasfollows:
U-Boot 2015.04 (Mar 7 2017 - 18:49:13)AMOS-825 ver:5.0.3
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
7
AMOS-825 Android EVK v5.0.3 Quick Start Guide
3�2 RestoringDefaultU-BootParametersIftheU-Bootparametershavebeenmodified,the“destroyenv”commandintheU-Bootconsolecanrestorethefactorydefaultsettings.
Torestartthedevice,usethe“reset”command.
3�3 UsingtheAndroidConsoleThefirststepistoconnectthehostmachineandtheAMOS-825throughtheCOMport.UseaserialportcommunicationprogramsuchasPuTTY,GtkTerm,orMinicom,toconnecttothedebugconsole.ThereyouwillbeabletoseetheU-BootbootlogandadjustsettingsintheU-Bootconsole.Next,powerontheAMOS-825toinitiatethebootprocess.Whenthebootprocessiscompletedyouwillbepromptedtologin.
COM port diagram
Whenthebootprocessiscompleted,youwillautomaticallylogintoanAndroidconsole.
=> destroyenv=> saveenv=> Reset
root@vab820_6dq:/ #
8
AMOS-825 Android EVK v5.0.3 Quick Start Guide
3�4 EnablingGPSClickSettings->Locationtoenabletheoption.
3�5 EnablingWi-FiNext,fromtheSettingsscreen,clickWi-Fi->OntoenableWi-Fifunction.
Whentheconnectioniscreated,connecttotheinternetthroughyourwebbrowser.
9
AMOS-825 Android EVK v5.0.3 Quick Start Guide
3�6 EnablingBluetoothThefollowingsectionsshowhowtoenabletheBluetoothAdvancedAudioDistributionProfile(A2DP)toallowaudioplaybackthroughaconnectedBluetoothdeviceaswellashowtoconfiguretheBluetoothSerialPortProfile(SPP).
3�6�1 SettingUpBluetoothA2DPProfileFirst,puttheaccessoryyouwanttouseintodiscoverymode.Theexactwaytodothisdependsontheaccessory.Ifyouhaveaheadset,youmayneedtoholdabuttondownontheheadsetforseveralsecondsuntilalightstartsflashing.Itwillonlystaydiscoverableforafewminutes.
Ifyouarenotsurehowtoputyouraccessoryintodiscoverymode,pleaserefertoitsmanual,checkthemanufacturer’swebsite,orperformawebsearchforinstructions.ToenabletheBluetoothA2DPfunction,gotoSettings->BluetoothandsettheswitchtoOn.
Alistoflocaldeviceswillappearonthescreen,selecttheappropriatedevicetocompletetheBluetoothpairing.
3�6�2 SettingUpBluetoothSPPProfileThefirststepistocopytheBluetoothSPPTest.apkontoamassstoragedevicesuchasUSBthumbdrive.Next,fromtheSettingsscreen,clickSecurity->Unknownsourcestoallowinstallationofnon-Marketapps.
TheAMOS-825implementstheBluetoothSerialPortProfileallowingserialportcommunicationbetweentwoAndroiddevices.
IncludedintheAMOS-825ToolsfolderistheBluetoothSPPTest.apkwhichisasimplecommunicationapplicationwhichutilizestheBluetoothSPPProfiletotransmitandreceivedatabetweentwopairedAndroiddevices�
ThefollowingexamplewilldemonstratehowtousetheBluetoothSPPTest.apktocommunicateovertheBluetoothSPPProfilebetweentwoAMOS-825systems.
First,the BluetoothSPPTest.apkmustbeinstalledontoeachAMOS-825system.FromtheSettingsscreen,clickSecurity->Unknownsourcesandallowtheinstallationofnon-Marketapps.Next,copytheBluetoothSPPTest.apkontoamassstoragedevice,suchasaUSBthumbdrive,andinstalltheBluetoothSPPTest.apkontobothAMOS-825systems.
10
AMOS-825 Android EVK v5.0.3 Quick Start Guide
Aftertheinstallationprocesshascompleted,gotoSettings->Bluetooth->OntoenabletheBluetoothfunctiononbothAMOS-825systems.Alistoflocaldeviceswillthenappearoneachscreen.Fromeitherscreen,selecttheAMOS-825systemfromthelisttocompletethepairingprocessasseeninthefigurebelow.
BluetoothSPPTest diagram
Afterthedeviceshavepaired,opentheBluetoothSPPTest.apkonbothAMOS-825systemsandconfigurethesettingsasfollowsinbothapps.
“Auto”–enabled
“ShowMessage”–enabled
SelectCONNECTfromeitherAMOS-825tocreatetheconnectionbetweenthetwo.BothAMOS-825cancommunicateovertheBluetoothSPPProtocol.
11
AMOS-825 Android EVK v5.0.3 Quick Start Guide
3�7 SmartETKTheAMOS-825SmartETKsupportsWatchdog,UARTandCANbusfunctions.PleasefollowtheproceduresbelowtoexperimentwiththeSmartETKfunctionsontheAMOS-825system.
ThefirststepistocopytheAMOS-825_Smart_ETK_Demo_v1.0.apkontoamassstoragedevicesuchasaUSBthumbdrive.Next,fromtheSettingsscreen,clickSecurity,andthenswitchonthe“Unknownsources”asshowninthediagrambelow.
Finally,inserttheUSBthumbdriveintotheAMOS-825anddoubleclickontheAMOS-825_Smart_ETK_Demo_v1.0.apkfiletoinstall.
Whentheinstallationprocesshascompleted,runtheAMOS-825_Smart_ETK_Demo_v1.0.apkandstarttotestthedifferentfunctionswithit.
Smart ETK SDK sample screen
12
AMOS-825 Android EVK v5.0.3 Quick Start Guide
3�7�1 TestingWatchdogTimerFunctionTheWatchdogTimerisanelectronictimerthatisusedtodetectandrecoverfromsystemmalfunctions.
TheWatchdogTimerincludesEnable/Disable,SetTimeout,KeepAliveandCountdownTimerfunctions.
Smart ETK Watchdog timer diagram
AlistofoptionswillappearontheSmartETKDemoProgrampage,selecttheappropriateoptiontostarttesting.
TotesttheWatchdogfunction,thefirststepistoenterthetimevalue(1~128seconds)intheTimeoutsetting.
ClickontheEnable/Disablebuttontostartthewatchdogtimerfunction.
ClickontheREFRESHbuttontorefreshthecountdowntimevaluebacktothebeginning.
ClickontheSTOPbuttontostopthewatchdogtimerfunction.
13
AMOS-825 Android EVK v5.0.3 Quick Start Guide
3�7�2 TestingFlexCANFunctionTheCOM/CANportoftheAMOS-825supportsdebug(COM)andtwoCANbus.TheCANbussupportsCANprotocolspecificationVersion2.0BwhiletheCOM2supportsTX/RXfordebuggingpurposesonly.
InordertoconnecttheCANdevicefortesting,youneedtoaddadditionaltransceivercircuit.PleasevisitTexasInstrumentswebsite(https://www.ti.com/)tosearchinformationon“TISN65HVD1050CANBusTransceiver”.
ThefirststepistomakesurethereisconnectionwithCAN1andCAN2.
COM/CAN port diagram
COM/CAN port pin definition table
Pin Signal1 CANH12 RX3 TX4 CANL25 GND6 CANL17 GND8 CANH29 VCC510 CANRX1
14
AMOS-825 Android EVK v5.0.3 Quick Start Guide
Smart ETK FlexCAN diagram
TheCANIDframestructureare32bits,oneframeincludes1-bitEFFflag,1-bitRTRflag,1-bitERRflag,an18-bitextension(“identifierextension”)and11-bitidentifier(“baseidentifier”).
Inordertousetheidentifierextension,youneedtoclick“EFF”.
Ifyouselect“RTR,theRTR-bitistransmittedasadominantbitintheDataFrameandtheDataFieldwillbeemptyintheRemoteField.
First,pleaseopentheSmartETKsampleprogram,thenfromtheleftsideoftheSmartETKsamplepage;selectCANtostarttesting.
Forbasetesting,settheBitRatevalueandclickontheConnectbutton.
PleasenotethatyouneedtodisabletheCANbusfirstthensettheCANbusbitrate.TheCANbusbitrateshouldbe5000<[BRT_value]<1000000.
Next,typetheIDanddataintheCAN1(whiteblockinthediagram)andclicktheSendbutton.
TheCAN1transfersdatatoCAN2,thedatashowsintheCAN2(redblockinthediagram).
ClickontheResetbuttontoresetthisCANbusfunction.
ClickontheDisconnectbuttontodisablethisfunction.
Foradvancedtesting,you’lluseFilter_IDandFilterMaskfunctions.
Thefiltermaskisusedtodeterminewhichbitsintheidentifierofthereceivedframearecomparedwiththefilter.Filter_IDandFilterMaskmustbetypedinhexadecimalvalues.
Note:Thefilterisusedtogetspecificinformation.Eachreceivermustsetthefiltertogettheinformationthatisneeded.
15
AMOS-825 Android EVK v5.0.3 Quick Start Guide
Ifamaskbitissettozero,thecorrespondingIDbitwillautomaticallybeaccepted,regardlessofthevalueofthefilterbit.
Ifamaskbitissettoone,thecorrespondingIDbitwillbecomparewiththevalueofthefilterbit.
Iftheymatch,itisacceptedotherwisetheframeisrejected.
Therearefourexamplesandthesevaluearehexadecimalvaluesbelow.
Note:Thefourexampleshavefourdifferentstatuses.
Example 1.
YouwishtoacceptonlyframeswithIDof00001567(hexadecimalvalues)
Setthefilterto00001567andmaskto1FFFFFFF.
Whenaframearrives,itsIDiscomparedwiththefilterandallbitsmustmatch;anyframethatdoesnotmatchID00001567isrejected
Example 2.
YouwishtoacceptonlyframeswithIDsof00001560thruto0000156F(hexadecimalvalues)
Setthefilterto00001560andmaskto1FFFFFF0.
Whenaframearrives,itsIDiscomparedwiththefilterandallbitsexceptbits0to3mustmatch;anyotherframeisrejected
Example 3.
YouwishtoacceptonlyframeswithIDsof00001560thruto00001567(hexadecimalvalues)
Setthefilterto00001560andmaskto1FFFFFF8.
WhenaframearrivesitsIDiscomparedwiththefilterandallbitsexceptbits0to2mustmatch;anyotherframeisrejected
Example 4.
Youwishtoacceptanyframe
Setthefilterto0andsetmaskto0.
Allframesareaccepted
16
AMOS-825 Android EVK v5.0.3 Quick Start Guide
4� AccessoriesThissectionexplainshowtoinstallandconfiguretheEMIO-2550miniPCIeMobileBroadbandModuleavailablefortheAMOS-825system.
4�1 ConfiguringtheEMIO-2550miniPCIeMobileBroadband ModuleTheEMIO-2550miniPCIeMobileBroadbandmodulesupports3Gfunctions.
4�1�1 ConnectingtotheInternetThefirststepistoinsertanactiveSIMcardintotheEMIO-2550module,andtheninserttheEMIO-2550moduleintotheminiPCIeslot.Afterinstallingthemodule,connecttheprovidedantennatothemodule.Next,makesuretounpluganyLANcablesorUSBWi-Fidonglesyouhaveinstalled.Finally,powerontheAMOS-825.
Inserting the EMIO-2550 module
TocheckthatthesystemhascorrectlydetectedtheEMIO-2550module,usethefollowingcommand:
Makesuretheprintoutmessageincludes“ppp0Linkencap:Point-to-PointProtocol”.
root@vab820_6dq:/ # busybox ifconfig
17
AMOS-825 Android EVK v5.0.3 Quick Start Guide
ClickSettings->Wireless&networks->More->Cellularnetwork->AccessPointNames.Next,clicktheplusbuttontoaddyourAPNssetting.
FillintherequiredfieldsforAPNssetting.Ifyouareunsureofwhattherequiredfieldsandvalueare,checkwithyourMobileBroadbandprovider.
WhentheAPNssettingiscompleted,clickyourAPNstoenablethe3Gnetwork.Next,openthebrowsertoconnecttotheInternet.
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