VIA Technologies AMOS-825 Quick start guide

  • Hello! I am an AI chatbot trained to assist you with the VIA Technologies AMOS-825 Quick start guide. I’ve already reviewed the document and can help you find the information you need or explain it in simple terms. Just ask your questions, and providing more details will help me assist you more effectively!
QUICK START GUIDE
AMOS-825
Android 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, transmied, transcribed, stored in a retrieval system, or translated into any language, in any
form or by any means, electronic, mechanical, magnec, opcal, chemical, manual or otherwise without the prior wrien permission of
VIA Technologies, Incorporated.
Trademarks
All brands, product names, company names, trademarks and service marks are the property of their respecve holders.
Disclaimer
VIA Technologies makes no warranes, implied or otherwise, in regard to this document and to the products described in this document.
The informaon provided in this document is believed to be accurate and reliable as of the publicaon date of this document. However,
VIA Technologies assumes no responsibility for the use or misuse of the informaon (including use or connecon 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 informaon
and product specicaons within this document are subject to change at any me, without noce and without obligaon to nofy any
person of such change.
VIA Technologies, Inc. reserves the right the make changes to the products described in this manual at any me without prior noce.
AMOS-825 Android EVK v5.0.3 Quick Start Guide
Version Date Remarks
1.00 05/17/2018 Inial release
Revision History
iii
AMOS-825 Android EVK v5.0.3 Quick Start Guide
Table of Contents
1. Introducon ����������������������������������������������������������������������������������������������������������������������� 1
1�1 EVK Package Content ��������������������������������������������������� ������������������������������������������������������������������������� 1
1�1�1 Firmware Folder Contents ������������������������������������������������������������������������������������������������������������� 1
1�1�2 Document Folder Contents ������������������������������������������������������������������������������������������������������������ 1
1�1�3 Tools Folder Contents �������������������������������������������������������������������������������������������������������������������� 1
1.2 VersionInformaonandSupportedFeatures �������������������������������������������������������������������������������������� 2
2. ImageInstallaon ������������������������������������������������������������������������������������������������������������� 3
2.1 BoongfromaMicroSDCard ������������������������������������������������������������������������������������������������������������� 3
3. HardwareFuncon ����������������������������������������������������������������������������������������������������������� 5
3.1 SengUpU-BootParameters ������������������������������������������������������������������������������������������������������������� 5
3.2 RestoringDefaultU-BootParameters �������������������������������������������������������������������������������������������������� 7
3.3 UsingtheAndroidConsole ������������������������������������������������������������������������������������������������������������������� 7
3.4 EnablingGPS ����������������������������������������������������������������������������������������������������������������������������������������� 8
3.5 EnablingWi-Fi ��������������������������������������������������������������������������������������������������������������������������������������� 8
3.6 EnablingBluetooth ������������������������������������������������������������������������������������������������������������������������������� 9
3.6.1 SengUpBluetoothA2DPProle������������������������������������������������������������������������������������������������� 9
3.6.2 SengUpBluetoothSPPProle ��������������������������������������������������������������������������������������������������� 9
3.7 SmartETK ������������������������������������������������������������������������������������������������������������������������������������������� 11
3.7.1 TesngWatchdogTimerFuncon ����������������������������������������������������������������������������������������������� 12
3.7.2 TesngFlexCANFuncon ��������������������������������������������������� ���������������������������������������������������������� 13
4. Accessories ���������������������������������������������������������������������������������������������������������������������� 16
4.1 ConguringtheEMIO-2550miniPCIeMobileBroadbandModule ���������������������������������������������������� 16
4.1.1 ConnecngtotheInternet ���������������������������������������������������������������������������������������������������������� 16
iv
1
AMOS-825 Android EVK v5.0.3 Quick Start Guide
1� Introducon
ThisQuickStartGuideprovidesanoverviewonhowtoboottheAndroidEVKsystemimagefortheAMOS-825
systemandcongurethesupportedhardwarefunconsinthebuild.
TheAMOS-825AndroidEVKv5.0.3isdevelopedbasedontheNXPandroid_m6.0.1_1.0.0-ga(Android6.0
Marshmallow)andenablesthehardwarefeaturesoftheAMOS-825system.
1�1 EVK Package Content
Therearethreefoldersinthepackagelistedasbelow.
AMOS-825 Android EVK contents
1�1�1 Firmware Folder Contents
Images_autoinstall_sd.zip: containsinstallaonscriptlesandtheprecompiledU-bootandAndroidimagefor
evaluangtheAMOS-825system.
1�1�2 Document Folder Contents
AMOS-825_Android_EVK_v5.0.3_Quick_Start_Guide _v1.00_20180517.pdf:ThisQuickStartGuideprovides
anoverviewonhowtoboottheAndroidEVKsystemimagefortheAMOS-825systemandcongurethe
supportedhardwarefunconsinthebuild.
1�1�3 Tools Folder Contents
AMOS-825_Smart_ETK_Demo_v1.0.apk:isthedemoprogramoftheSmartETK.
BluetoothSPPTest.apk:isthetesngprogramoftheBluetoothSPPprole.
Firmware folder Descripon
Images_autoinstall_sd.zip AndroidEVKsystemimageandinstallaon
scriptles
Document folder Descripon
AMOS-825_Android_EVK_v5.0.3_Quick_
Start_Guide_v1.00_20180517.pdf
QuickStartGuide
Tool folder Descripon
AMOS-825_Smart_ETK_Demo_v1.0.apk SmartETKdemoprogram
BluetoothSPPTest.apk BluetoothSPPtesngprogram
2
AMOS-825 Android EVK v5.0.3 Quick Start Guide
1�2 VersionInformaonandSupportedFeatures
U-Bootversion:2015.04
Kernelversion:3.14.52
Evaluaonimage:AndroidMarshmallow6.0
DevelopmentbasedonNXPandroid_M6.0.1_1.0.0-ga(Android6.0Marshmallow)
SupportsSPIwitheMMCboot
Supports7”Projecvecapacivetouchmonitor(800x480)throughI2Cinterface
SupportsCOMasdebugport
SupportstwoFlexCANTX/RX
SupportsGigabitEthernet
SupportsMic-in
SupportsIEEE802.11b/g/nWi-Fi
SupportsBluetooth4.0
κ A2DPandSPPprole
SupportsU-bloxMAX-7GPS/GNSSmodule
SupportsEMIO-2550miniPCIeMobileBroadbandmodule
SupportsSmartETKv1.00:WatchdogTimer,UART,andFlexCAN
SupportsOTA(Over-The-Airtechnology)
SupportsshutdownoponinQuickSengs
SupportsEthernetconguraoninSengs
3
AMOS-825 Android EVK v5.0.3 Quick Start Guide
2� ImageInstallaon
TheAMOS-825AndroidsystemonlyprovidesboongfromtheSPIROMwitheMMC.Thisseconexplainsthe
setuprequirementsforboongfromtheSPIROMandeMMC.
Theinstallaonscriptles,theprecompiledU-bootandimageareprovidedinthe“Firmware”folder.
2�1 BoongfromaMicroSDCard
TheImages_autoinstall_sd.zipincludestheAndroidEVKsystemimageandtheinstallaonscriptsles.
TherststepistoextractImages_autoinstall_sd.zipletomakethebootableMicroSDcard.InsertaMicroSD
cardintoyourLinuxhostmachineandmakesureitisnotmounted.Opentheterminalonyourhostmachine.
Runthemk_android6_install_sd.shasshownbelow,replacing<devicename>withthecorrectvalueforthe
card,forexample“sdb”.
Important:Makesureyouarewringtothecorrectdeviceorthehostsystemenvironmentcouldbedamaged.
Next,ontheAMOS-825,settheMicroSD/SPIbootswitchtotheMicroSDposionasshownbelow.
Micro SD/SPI boot switch diagram
InsertthepreparedMicroSDcardintotheAMOS-825,connectanHDMIdisplay,andpoweronthedeviceto
iniatetheupdateprocessautomacally.
$ sudo ./mk_android6_install_sd.sh /dev/<device name>
4
AMOS-825 Android EVK v5.0.3 Quick Start Guide
Update process screen
Whentheinstallprocessiscompleted,unplugthepowercableandremovetheMicroSDcard.
InordertobootfromtheSPIROMmakesuretheMicroSD/SPIbootswitchissettoSPIROMboot.
Micro SD/SPI boot switch diagram
Next,poweronthedevicetoiniatethebootprocess.Whenthebootprocessiscompleted,youwillseethe
Androiddesktop.
5
AMOS-825 Android EVK v5.0.3 Quick Start Guide
3� HardwareFuncon
ThisseconexplainshowtoenableandtestthehardwarefunconsprecompiledintheAMOS-825Android
EVKincludingsengU-Bootparameters,restoringdefaultU-Bootparameters,usingtheAndroidConsole,
enablingGPS,enablingWi-Fi,enablingBluetooth,aswellasinstallingandapplyingthedierentfuncons
includedintheVIASmartETKsampleprogramwhicharetesngWatchdogmerfunconandtesngthe
FlexCANfuncon.
3�1 SengUpU-BootParameters
TherststepistoconnectthehostmachineandtheAMOS-825throughtheCOMport.Useaserialport
communicaonprogramsuchasPuTTY,GtkTerm,orMinicom,toconguretheserialportsengandconnect
tothedebugconsole.ThereyouwillbeabletoseetheU-BootbootlogandadjustsengsintheU-Boot
console�
Serial port seng of host machine
COM port diagram
6
AMOS-825 Android EVK v5.0.3 Quick Start Guide
Next,powerontheAMOS-825toiniatethebootprocess.Whenprompted,pressanykeytostoptheboot
process,andentertheU-Bootconsoleasillustratedbythescreenshotbelow.
Debug console view of boot process
TolistthecurrentU-Bootparameters,usethefollowingcommand:
Makesuretheprintoutmessageisasfollows:
U-Boot 2015.04 (Mar 7 2017 - 18:49:13)AMOS-825 ver:5.0.3
CPU: Freescale i.MX6Q rev1.2 at 996 MHz
CPU: Temperature 30 C, calibration data: 0x5894f169
Reset cause: POR
Board: iMX6Q-VAB820
I2C: ready
DRAM: 1 GiB
MMC: FSL_SDHC: 0, FSL_SDHC: 1
SF: 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-XGA
Display: Hannstar-XGA (1024x768)
In: serial
Out: serial
Err: serial
Net: FEC [PRIME]
Warning: failed to set MAC address
Normal Boot
Hit any key to stop autoboot: 0
=>
=> printenv
=> printenv
baudrate=115200
boot_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 RestoringDefaultU-BootParameters
IftheU-Bootparametershavebeenmodied,the“destroyenv”commandintheU-Bootconsolecanrestore
thefactorydefaultsengs.
Torestartthedevice,usethe“reset”command.
3�3 UsingtheAndroidConsole
TherststepistoconnectthehostmachineandtheAMOS-825throughtheCOMport.Useaserialport
communicaonprogramsuchasPuTTY,GtkTerm,orMinicom,toconnecttothedebugconsole.Thereyouwill
beabletoseetheU-BootbootlogandadjustsengsintheU-Bootconsole.Next,powerontheAMOS-825to
iniatethebootprocess.Whenthebootprocessiscompletedyouwillbepromptedtologin.
COM port diagram
Whenthebootprocessiscompleted,youwillautomacallylogintoanAndroidconsole.
=> destroyenv
=> saveenv
=> Reset
root@vab820_6dq:/ #
8
AMOS-825 Android EVK v5.0.3 Quick Start Guide
3�4 EnablingGPS
ClickSengs->Locaontoenabletheopon.
3�5 EnablingWi-Fi
Next,fromtheSengsscreen,clickWi-Fi->OntoenableWi-Fifuncon.
Whentheconneconiscreated,connecttotheinternetthroughyourwebbrowser.
9
AMOS-825 Android EVK v5.0.3 Quick Start Guide
3�6 EnablingBluetooth
ThefollowingseconsshowhowtoenabletheBluetoothAdvancedAudioDistribuonProle(A2DP)toallow
audioplaybackthroughaconnectedBluetoothdeviceaswellashowtoconguretheBluetoothSerialPort
Prole(SPP).
3�6�1 SengUpBluetoothA2DPProle
First,puttheaccessoryyouwanttouseintodiscoverymode.Theexactwaytodothisdependsonthe
accessory.Ifyouhaveaheadset,youmayneedtoholdabuondownontheheadsetforseveralsecondsunl
alightstartsashing.Itwillonlystaydiscoverableforafewminutes.
Ifyouarenotsurehowtoputyouraccessoryintodiscoverymode,pleaserefertoitsmanual,checkthe
manufacturerswebsite,orperformawebsearchforinstrucons.ToenabletheBluetoothA2DPfuncon,go
toSengs->BluetoothandsettheswitchtoOn.
Alistoflocaldeviceswillappearonthescreen,selecttheappropriatedevicetocompletetheBluetooth
pairing.
3�6�2 SengUpBluetoothSPPProle
TherststepistocopytheBluetoothSPPTest.apkontoamassstoragedevicesuchasUSBthumbdrive.Next,
fromtheSengsscreen,clickSecurity->Unknownsourcestoallowinstallaonofnon-Marketapps.
TheAMOS-825implementstheBluetoothSerialPortProleallowingserialportcommunicaonbetweentwo
Androiddevices.
IncludedintheAMOS-825ToolsfolderistheBluetoothSPPTest.apkwhichisasimplecommunicaon
applicaonwhichulizestheBluetoothSPPProletotransmitandreceivedatabetweentwopairedAndroid
devices�
ThefollowingexamplewilldemonstratehowtousetheBluetoothSPPTest.apktocommunicateoverthe
BluetoothSPPProlebetweentwoAMOS-825systems.
First,the BluetoothSPPTest.apkmustbeinstalledontoeachAMOS-825system.FromtheSengsscreen,click
Security->Unknownsourcesandallowtheinstallaonofnon-Marketapps.Next,copytheBluetoothSPPTest.
apkontoamassstoragedevice,suchasaUSBthumbdrive,andinstalltheBluetoothSPPTest.apkontoboth
AMOS-825systems.
10
AMOS-825 Android EVK v5.0.3 Quick Start Guide
Aertheinstallaonprocesshascompleted,gotoSengs->Bluetooth->OntoenabletheBluetoothfuncon
onbothAMOS-825systems.Alistoflocaldeviceswillthenappearoneachscreen.Fromeitherscreen,select
theAMOS-825systemfromthelisttocompletethepairingprocessasseeninthegurebelow.
BluetoothSPPTest diagram
Aerthedeviceshavepaired,opentheBluetoothSPPTest.apkonbothAMOS-825systemsandcongurethe
sengsasfollowsinbothapps.
Auto”–enabled
“ShowMessage”–enabled
SelectCONNECTfromeitherAMOS-825tocreatetheconneconbetweenthetwo.BothAMOS-825can
communicateovertheBluetoothSPPProtocol.
11
AMOS-825 Android EVK v5.0.3 Quick Start Guide
3�7 SmartETK
TheAMOS-825SmartETKsupportsWatchdog,UARTandCANbusfuncons.Pleasefollowtheprocedures
belowtoexperimentwiththeSmartETKfunconsontheAMOS-825system.
TherststepistocopytheAMOS-825_Smart_ETK_Demo_v1.0.apkontoamassstoragedevicesuchasa
USBthumbdrive.Next,fromtheSengsscreen,clickSecurity,andthenswitchonthe“Unknownsources”as
showninthediagrambelow.
Finally,inserttheUSBthumbdriveintotheAMOS-825anddoubleclickontheAMOS-825_Smart_ETK_Demo_
v1.0.apkletoinstall.
Whentheinstallaonprocesshascompleted,runtheAMOS-825_Smart_ETK_Demo_v1.0.apkandstarttotest
thedierentfunconswithit.
Smart ETK SDK sample screen
12
AMOS-825 Android EVK v5.0.3 Quick Start Guide
3�7�1 TesngWatchdogTimerFuncon
TheWatchdogTimerisanelectronicmerthatisusedtodetectandrecoverfromsystemmalfuncons.
TheWatchdogTimerincludesEnable/Disable,SetTimeout,KeepAliveandCountdownTimerfuncons.
Smart ETK Watchdog mer diagram
AlistofoponswillappearontheSmartETKDemoProgrampage,selecttheappropriateopontostart
tesng.
TotesttheWatchdogfuncon,therststepistoenterthemevalue(1~128seconds)intheTimeoutseng.
ClickontheEnable/Disablebuontostartthewatchdogmerfuncon.
ClickontheREFRESHbuontorefreshthecountdownmevaluebacktothebeginning.
ClickontheSTOPbuontostopthewatchdogmerfuncon.
13
AMOS-825 Android EVK v5.0.3 Quick Start Guide
3�7�2 TesngFlexCANFuncon
TheCOM/CANportoftheAMOS-825supportsdebug(COM)andtwoCANbus.TheCANbussupportsCAN
protocolspecicaonVersion2.0BwhiletheCOM2supportsTX/RXfordebuggingpurposesonly.
InordertoconnecttheCANdevicefortesng,youneedtoaddaddionaltransceivercircuit.PleasevisitTexas
Instrumentswebsite(hps://www..com/)tosearchinformaonon“TISN65HVD1050CANBusTransceiver.
TherststepistomakesurethereisconneconwithCAN1andCAN2.
COM/CAN port diagram
COM/CAN port pin denion table
Pin Signal
1 CANH1
2 RX
3 TX
4 CANL2
5 GND
6 CANL1
7 GND
8 CANH2
9 VCC5
10 CANRX1
14
AMOS-825 Android EVK v5.0.3 Quick Start Guide
Smart ETK FlexCAN diagram
TheCANIDframestructureare32bits,oneframeincludes1-bitEFFag,1-bitRTRag,1-bitERRag,an18-
bitextension(“idenerextension”)and11-bitidener(“baseidener”).
Inordertousetheidenerextension,youneedtoclick“EFF”.
Ifyouselect“RTR,theRTR-bitistransmiedasadominantbitintheDataFrameandtheDataFieldwillbe
emptyintheRemoteField.
First,pleaseopentheSmartETKsampleprogram,thenfromthelesideoftheSmartETKsamplepage;select
CANtostarttesng.
Forbasetesng,settheBitRatevalueandclickontheConnectbuon.
PleasenotethatyouneedtodisabletheCANbusrstthensettheCANbusbitrate.TheCANbusbitrateshould
be5000<[BRT_value]<1000000.
Next,typetheIDanddataintheCAN1(whiteblockinthediagram)andclicktheSendbuon.
TheCAN1transfersdatatoCAN2,thedatashowsintheCAN2(redblockinthediagram).
ClickontheResetbuontoresetthisCANbusfuncon.
ClickontheDisconnectbuontodisablethisfuncon.
Foradvancedtesng,you’lluseFilter_IDandFilterMaskfuncons.
Theltermaskisusedtodeterminewhichbitsintheidenerofthereceivedframearecomparedwiththe
lter.Filter_IDandFilterMaskmustbetypedinhexadecimalvalues.
Note:
Thelterisusedtogetspecicinformaon.Eachreceivermustsettheltertogettheinformaonthatisneeded.
15
AMOS-825 Android EVK v5.0.3 Quick Start Guide
Ifamaskbitissettozero,thecorrespondingIDbitwillautomacallybeaccepted,regardlessofthevalueof
thelterbit.
Ifamaskbitissettoone,thecorrespondingIDbitwillbecomparewiththevalueofthelterbit.
Iftheymatch,itisacceptedotherwisetheframeisrejected.
Therearefourexamplesandthesevaluearehexadecimalvaluesbelow.
Note:
Thefourexampleshavefourdierentstatuses.
Example 1.
YouwishtoacceptonlyframeswithIDof00001567(hexadecimalvalues)
Setthelterto00001567andmaskto1FFFFFFF.
Whenaframearrives,itsIDiscomparedwiththelterandallbitsmustmatch;anyframethatdoesnotmatch
ID00001567isrejected
Example 2.
YouwishtoacceptonlyframeswithIDsof00001560thruto0000156F(hexadecimalvalues)
Setthelterto00001560andmaskto1FFFFFF0.
Whenaframearrives,itsIDiscomparedwiththelterandallbitsexceptbits0to3mustmatch;anyother
frameisrejected
Example 3.
YouwishtoacceptonlyframeswithIDsof00001560thruto00001567(hexadecimalvalues)
Setthelterto00001560andmaskto1FFFFFF8.
WhenaframearrivesitsIDiscomparedwiththelterandallbitsexceptbits0to2mustmatch;anyother
frameisrejected
Example 4.
Youwishtoacceptanyframe
Setthelterto0andsetmaskto0.
Allframesareaccepted
16
AMOS-825 Android EVK v5.0.3 Quick Start Guide
4� Accessories
ThisseconexplainshowtoinstallandconguretheEMIO-2550miniPCIeMobileBroadbandModuleavailable
fortheAMOS-825system.
4�1 ConguringtheEMIO-2550miniPCIeMobileBroadband
Module
TheEMIO-2550miniPCIeMobileBroadbandmodulesupports3Gfuncons.
4�1�1 ConnecngtotheInternet
TherststepistoinsertanacveSIMcardintotheEMIO-2550module,andtheninserttheEMIO-2550
moduleintotheminiPCIeslot.Aerinstallingthemodule,connecttheprovidedantennatothemodule.Next,
makesuretounpluganyLANcablesorUSBWi-Fidonglesyouhaveinstalled.Finally,powerontheAMOS-825.
Inserng the EMIO-2550 module
TocheckthatthesystemhascorrectlydetectedtheEMIO-2550module,usethefollowingcommand:
Makesuretheprintoutmessageincludes“ppp0Linkencap:Point-to-PointProtocol”.
root@vab820_6dq:/ # busybox ifcong
/