25
QUICK START GUIDE ARTiGO A820 Linux EVK v4.0.1 1.00-08312018-092700

QUICK START GUIDE ARTiGO A820 - cdn.viaembedded.comcdn.viaembedded.com/products/docs/artigo-a820/linux_evaluation_guide/... · 1 ARTi A820 inu EVK v4 0 1 uick tart uide 1 Introduction

Embed Size (px)

Citation preview

Page 1: QUICK START GUIDE ARTiGO A820 - cdn.viaembedded.comcdn.viaembedded.com/products/docs/artigo-a820/linux_evaluation_guide/... · 1 ARTi A820 inu EVK v4 0 1 uick tart uide 1 Introduction

QUICK START GUIDE

ARTiGO A820Linux EVK v4.0.1

1.00-08312018-092700

Page 2: QUICK START GUIDE ARTiGO A820 - cdn.viaembedded.comcdn.viaembedded.com/products/docs/artigo-a820/linux_evaluation_guide/... · 1 ARTi A820 inu EVK v4 0 1 uick tart uide 1 Introduction

Copyright

Copyright ©2017-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 ARTiGO A820 - cdn.viaembedded.comcdn.viaembedded.com/products/docs/artigo-a820/linux_evaluation_guide/... · 1 ARTi A820 inu EVK v4 0 1 uick tart uide 1 Introduction

Version Date Remarks1.00 08/31/2018 Initial release

ARTiGO A820 Linux EVK v4.0.1 Quick Start Guide

Revision History

iii

Page 4: QUICK START GUIDE ARTiGO A820 - cdn.viaembedded.comcdn.viaembedded.com/products/docs/artigo-a820/linux_evaluation_guide/... · 1 ARTi A820 inu EVK v4 0 1 uick tart uide 1 Introduction

ARTiGO A820 Linux EVK v4.0.1 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 ������������������������������������������������������������������������������������������������������������� 32.2 BootingfromtheSPIROMwitheMMC ������������������������������������������������������������������������������������������������ 4

3. HardwareFunction ����������������������������������������������������������������������������������������������������������� 63.1 SettingUpU-BootParameters ������������������������������������������������������������������������������������������������������������� 63.2 RestoringDefaultU-BootParameters �������������������������������������������������������������������������������������������������� 83.3 UsingtheOpenEmbeddedConsole ������������������������������������������������������������������������������������������������������ 83.4 ConfiguringWatchdogTimer ��������������������������������������������������������������������������������������������������������������� 93.5 SettingUpGPIO ���������������������������������������������������������������������������������������������������������������������������������� 10

3.5.1 SettingUpDIOPortforGPIOFunctionality ��������������������������������������������������������������������������������� 113.5.2 SettingUpGPIMode�������������������������������������������������������������������������������������������������������������������� 113.5.3 SettingUpGPOMode ������������������������������������������������������������������������������������������������������������������ 11

3.6 ConfiguringRTC ���������������������������������������������������������������������������������������������������������������������������������� 12

4� Accessories ���������������������������������������������������������������������������������������������������������������������� 134.1 ConfiguringtheVNT9271USBWi-FiDongle �������������������������������������������������������������������������������������� 134.2 ConfiguringtheEMIO-1541miniPCIeWi-FiModule �������������������������������������������������������������������������� 144.3 ConfiguringtheEMIO-2531miniPCIeUSBWi-Fi&BluetoothModule ���������������������������������������������� 15

4.3.1 ConnectingtotheInternet ���������������������������������������������������������������������������������������������������������� 154.3.2 EnablingBluetooth ���������������������������������������������������������������������������������������������������������������������� 16

4.3.2.1 SettingUpBluetoothA2DPProfile 164.3.2.2 SettingUpBluetoothSPPProfile 17

4.4 ConfiguringtheEMIO-2550miniPCIeMobileBroadbandModule ���������������������������������������������������� 194.4.1 ConnectingtotheInternet ���������������������������������������������������������������������������������������������������������� 194.4.2 EnablingGPS �������������������������������������������������������������������������������������������������������������������������������� 20

iv

Page 5: QUICK START GUIDE ARTiGO A820 - cdn.viaembedded.comcdn.viaembedded.com/products/docs/artigo-a820/linux_evaluation_guide/... · 1 ARTi A820 inu EVK v4 0 1 uick tart uide 1 Introduction

1

ARTiGO A820 Linux EVK v4.0.1 Quick Start Guide

1� IntroductionThisQuickStartGuideprovidesanoverviewofhowtoboottheAndroidEVKsystemimageontheARTiGOA820systemandconfigurethesupportedhardwarefunctioninthebuild.

TheARTiGO-A820LinuxEVKv4.0.1isdevelopedbasedontheNXPfsl-yocto-L4.1.15_1.1.0-ga(Yocto2.0Jethro)andenablesthehardwarefeaturesoftheARTiGOA820system.

1�1 EVK Package ContentTherearethreefoldersinthepackagelistedasbelow.

ARTiGO-A820LinuxEVKcontents

1�1�1 Firmware Folder ContentsARTiGOA920_Yocto2.0_BIN_v4.0.1.tar.gz:containsinstallationscriptfilesandtheprecompiledU-bootandimageforevaluatingtheARTiGO820system.

1�1�2 Document Folder ContentsARTiGO-A820_Linux_BSP_v4.0.1_Quick_Start_Guide_v1.00_20180831.pdf:ThisQuickStartGuideprovidesanoverviewofhowtoboottheAndroidEVKsystemimageontheARTiGOA820systemandconfigurethesupportedhardwarefunctioninthebuild.

1�1�3 Tools Folder ContentsBT_Config.zip:containstheBluetoothA2DPconfiguringfile.

Firmware folder DescriptionARTiGOA820_Yocto2.0_BIN_v4.0.1.tar.gz YoctoEVKsystemimageandinstallation

scriptfilesDocument folder DescriptionARTiGO-A820_Linux_BSP_v4.0.1_Quick_Start_Guide_v1.00_20180831.pdf

QuickStartGuide

Tools folder DescriptionBT_Config.zip BluetoothA2DPconfiguringfile

Page 6: QUICK START GUIDE ARTiGO A820 - cdn.viaembedded.comcdn.viaembedded.com/products/docs/artigo-a820/linux_evaluation_guide/... · 1 ARTi A820 inu EVK v4 0 1 uick tart uide 1 Introduction

2

ARTiGO A820 Linux EVK v4.0.1 Quick Start Guide

1�2 VersionInformationandSupportedFeatures

• U-Bootversion:2015.04

• Kernelversion:4.1.15

• Evaluationimage:OpenEmbedded-corebuiltwithYocto2.0Jethro

• DevelopmentbasedonNXPfsl-yocto-L4.1.15_1.1.0-ga(Yocto2.0Jethro)

• SupportsSPIwitheMMCorMicroSDboot(default)

• SupportsHDMIdisplay

• SupportsHDMIaudiooutput

• SupportsCOM1(RS-232/RS-485),OnboardCOMasdebugport

• SupportsGigabitEthernet(LAN1)

• Supports10/100MpbsEthernet(LAN2)

• SupportsVNT9271USBWi-Fidongle

• SupportsEMIO-1541miniPCIeWi-Fimodule

• SupportsEMIO-2531miniPCIeWi-Fi&BTmodule

º SupportsBluetoothA2DPandSPPprofile

• SupportsEMIO-2550miniPCIeMobileBroadbandmodule

• SupportsWatchdogTimer,GPIOandRTC

Page 7: QUICK START GUIDE ARTiGO A820 - cdn.viaembedded.comcdn.viaembedded.com/products/docs/artigo-a820/linux_evaluation_guide/... · 1 ARTi A820 inu EVK v4 0 1 uick tart uide 1 Introduction

3

ARTiGO A820 Linux EVK v4.0.1 Quick Start Guide

2� ImageInstallationThissectionexplainsthesetuprequirementsforbootingfromaMicroSDcardortheSPIROMandeMMC.

Theinstallationscriptfiles,theprecompiledU-bootandimageareprovidedinthe“Firmware”folder.

2�1 BootingfromaMicroSDCardThefirststepistoinstallthisimageontoaMicroSDcard.InsertaMicroSDcardintoyourLinuxhostmachineandmakesureitisnotmounted.InstalltheSDcardimageontotheMicroSDcardwiththecommandsbelow,replacing<devicename>withthecorrectvalueforthecard.

*Important: Makesureyouarewritingtothecorrectdeviceorthehostsystemenvironmentcouldbedamaged�

Next,ontheARTiGO-A820,setthebootswitchtotheMicroSDpositionasshownbelow.

Micro SD / SPI boot switch diagram

InsertthepreparedMicroSDcardintotheARTiGOA820,connectanHDMIdisplay,andpowerontheARTiGOA820toinitiatethebootprocess.

Whenthebootprocessiscompleted,youwillseetheOpenEmbeddeddesktop.

$ tar xvf ARTiGOA820_Yocto2.0_BIN_v4.0.1.tar.gz$ cd sd_installer/$ sudo ./mk_sd_installer.sh /dev/<device name> --yocto

Page 8: QUICK START GUIDE ARTiGO A820 - cdn.viaembedded.comcdn.viaembedded.com/products/docs/artigo-a820/linux_evaluation_guide/... · 1 ARTi A820 inu EVK v4 0 1 uick tart uide 1 Introduction

4

ARTiGO A820 Linux EVK v4.0.1 Quick Start Guide

2�2 BootingfromtheSPIROMwitheMMCTheARTiGOA820supportsbootingfromtheSPIROMwhileloadingthekernelandrootfilesystemfromeMMC.

ThefirststepistoprepareaMicroSDcardasthesysteminstaller.InsertaMicroSDcardintoyourLinuxhostmachineandmakesureitisnotmounted.InstallthesysteminstallerontotheMicroSDcardwiththecommandbelow,replacing<devicename>withthecorrectvalueforthecard.

Next,ontheARTiGOA820,setthebootswitchtotheMicroSDpositionasshownbelow.

Micro SD / SPI boot switch diagram

InsertthepreparedMicroSDcardintotheARTiGOA820,andpowerontheARTiGOA820.ThesystemwillautomaticallystarttoinstallU-bootandtheimageintoSPIROMandeMMC.

Whentheinstallprocessiscompleted,unplugthepowercableandremovetheMicroSDcard.

$ tar xvf ARTiGOA820_Yocto2.0_BIN_v4.0.1.tar.gz$ cd sd_installer/$ sudo ./mk_sd_installer.sh /dev/<device name>

Page 9: QUICK START GUIDE ARTiGO A820 - cdn.viaembedded.comcdn.viaembedded.com/products/docs/artigo-a820/linux_evaluation_guide/... · 1 ARTi A820 inu EVK v4 0 1 uick tart uide 1 Introduction

5

ARTiGO A820 Linux EVK v4.0.1 Quick Start Guide

Next,inordertobootfromtheSPIROMmakesurethebootswitchissettoSPIROMboot.

MicroSD/SPIbootswitchdiagram

Next,connectanHDMIdisplay,andpoweronthedevicetoinitiatethebootprocess.Whenthebootprocessiscompleted,youwillseetheOpenEmbeddeddesktop.

Page 10: QUICK START GUIDE ARTiGO A820 - cdn.viaembedded.comcdn.viaembedded.com/products/docs/artigo-a820/linux_evaluation_guide/... · 1 ARTi A820 inu EVK v4 0 1 uick tart uide 1 Introduction

6

ARTiGO A820 Linux EVK v4.0.1 Quick Start Guide

3� HardwareFunctionThissectionexplainshowtoenableandtestthehardwarefunctionsprecompiledintheARTiGOA820LinuxEVKincludingsettingU-Bootparameters,configuringWatchdogTimer,settingupGPIO,andconfiguringRTC.

3�1 SettingUpU-BootParametersWhensettinguptheU-Bootparameters,thefirststepistoconnectthehostmachineandtheARTiGOA820throughtheOnboardCOMport.UseaserialportcommunicationprogramsuchasPuTTY,GtkTerm,orMinicomtoconfiguretheserialportsettingandconnecttothedebugconsole.ThereyouwillbeabletoseetheU-BootbootlogandadjustsettingsintheU-Bootconsole.

Serial port setting of host machine

Onboard COM port diagram

Page 11: QUICK START GUIDE ARTiGO A820 - cdn.viaembedded.comcdn.viaembedded.com/products/docs/artigo-a820/linux_evaluation_guide/... · 1 ARTi A820 inu EVK v4 0 1 uick tart uide 1 Introduction

7

ARTiGO A820 Linux EVK v4.0.1 Quick Start Guide

Next,powerontheARTiGOA820toinitiatethebootprocess.Whenprompted,pressanykeytostopthebootprocessandentertheU-Bootconsoleasillustratedbythescreenshotbelow.

Debug console view of boot process

TolistthecurrentU-Bootparameters,usethefollowingcommand:

Tohavemoreinformationmakesuretheprintoutmessageincludes“bootcmd=runbootcmd_auto”.

Thedefault“bootcmd”parameterissettoautodetectthesystemlocationbyfirstattemptingtoloadthekernelfromtheMicroSDcard.IfitisnotdetecteditcontinuestobootfromtheeMMC.

Toloadthekernelfromthespecifieddevice,refertothetwoexamplesbelow.

ToloadthekernelfromtheMicroSDcard,usethefollowingcommand:

ToloadthekernelfromtheeMMC,usethefollowingcommand:

U-Boot 2015.04-imx_v2015.04_4.1.15_1.0.0_ga+gd7d7c43 (Feb 20 2017 – 14:19:23)

CPU: Freescale i.MX6Q rev1.5 at 996 MHzCPU: Temperature 30 CReset cause: PORBoard: MX6DL-VAB820I2C: readyDRAM: 1 GiBMMC: FSL_SDHC: 0, FSL_SDHC: 1SF: Detected W25Q32BV with page size 256 Bytes, erase size

4 KiB, total 4 MiB

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

=> setenv bootcmd ‘run bootcmd_sd’=> saveenv=> boot

=> setenv bootcmd ‘run bootcmd_mmc’=> saveenv=> boot

Page 12: QUICK START GUIDE ARTiGO A820 - cdn.viaembedded.comcdn.viaembedded.com/products/docs/artigo-a820/linux_evaluation_guide/... · 1 ARTi A820 inu EVK v4 0 1 uick tart uide 1 Introduction

8

ARTiGO A820 Linux EVK v4.0.1 Quick Start Guide

3�2 RestoringDefaultU-BootParametersIftheU-Bootparametershavebeenmodified,the“destroyenv”commandintheU-Bootconsolecanrestorethefactorydefaultssettings.

Torestartthedevice,usethe“reset”command:

3�3 UsingtheOpenEmbeddedConsoleThefirststepistoconnectthehostmachineandtheARTiGOA820throughtheCOM2port.UseaserialportcommunicationprogramsuchasPuTTY,GtkTerm,orMinicomtoconnecttothedebugconsole.ThereyouwillbeabletoseetheU-BootbootlogandadjustsettingsintheU-Bootconsole.Next,powerontheARTiGO-A820toinitiatethebootprocess.Whenthebootprocessiscompletedyouwillbepromptedtologin.

On board COM port diagram

Thedefaultaccountis“root”,withnopasswordset(justpressEnterwhenpromptedforpassword).

=> destroyenv=> reset

...Freescale i.MX Release Distro 4.1.15_1.1.1 imx6qvab820 /dev/ttymxc1imx6qvab820 login: root

Page 13: QUICK START GUIDE ARTiGO A820 - cdn.viaembedded.comcdn.viaembedded.com/products/docs/artigo-a820/linux_evaluation_guide/... · 1 ARTi A820 inu EVK v4 0 1 uick tart uide 1 Introduction

9

ARTiGO A820 Linux EVK v4.0.1 Quick Start Guide

3�4 ConfiguringWatchdogTimerAWatchdogtimerisanelectronictimerthatisusedtodetectandrecoverfromsystemmalfunctions.

Thewdt_driver_test.outprovidesanapplicationtoconfiguretheWatchdogtimer.

ToenabletheWatchdogwiththedefaulttimeout(60seconds),usethefollowingcommand:

Tochangethetimeout<value>andthesystemreboot<value>(seconds),usethefollowingcommand:

Tosendkeep-aliverequeststotheWatchdog<value>(seconds),usethefollowingcommand:

Whenthevalueof“set_keep_alive”issmallerthanthevalueof“set_timeout”,thesystemwillnotreboot.

TodisabletheWatchdog,usethefollowingcommand:

$ /unit_tests/wdt_driver_test.out enable wdt

$ /unit_tests/wdt_driver_test.out set_timeout <value>

$ /unit_tests/ wdt_driver_test.out set_keep_alive <value>

$ /unit_tests/wdt_driver_test.out disable wdt

Page 14: QUICK START GUIDE ARTiGO A820 - cdn.viaembedded.comcdn.viaembedded.com/products/docs/artigo-a820/linux_evaluation_guide/... · 1 ARTi A820 inu EVK v4 0 1 uick tart uide 1 Introduction

10

ARTiGO A820 Linux EVK v4.0.1 Quick Start Guide

3�5 SettingUpGPIOTheDIOportontheARTiGOA820consistsof9pins.Thefollowingsectionexplainssettingupthesepinsforinput/outputcommunication

DIO port diagram

J7 pin header pinout table

Pin Signal Pin Signal1 RESET_N 2 P_LED+3 GND 4 P_LED-5 I2C3_SCL 6 W_LED+7 I2C3_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 15: QUICK START GUIDE ARTiGO A820 - cdn.viaembedded.comcdn.viaembedded.com/products/docs/artigo-a820/linux_evaluation_guide/... · 1 ARTi A820 inu EVK v4 0 1 uick tart uide 1 Introduction

11

ARTiGO A820 Linux EVK v4.0.1 Quick Start Guide

3�5�1 SettingUpDIOPortforGPIOFunctionalityTheechovalueofGPIOpinsarelistedbelow:

GPIO port pinout table

SetthemultifunctionpinasaGPIOpin.HereistheexampleforGPIOpin1:

3�5�2 SettingUpGPIModeTosetapinto“input”mode(GPI),usethefollowingcommand(hereistheexampleforGPIOpin1):

ToreadtheGPIinputvalue,usethefollowingcommand:

3�5�3 SettingUpGPOModeTosetapinto“output”mode(GPO),usethefollowingcommand(hereistheexampleforGPIOpin1):

Tooutputa“Low”valueontheGPOpin,usethefollowingcommand:

Tooutputa“High”valueontheGPOpin,usethefollowingcommand:

$ echo “in” > /sys/class/gpio/gpio7/direction

$ echo 7 > /sys/class/gpio/export

$ cat /sys/class/gpio/gpio203/value

$ echo “out” > /sys/class/gpio/gpio7/direction

$ echo 1 > /sys/class/gpio/gpio7/value

Pin Signal GPIO echo value1 GPIO_7 72 GPIO_1 13 GPIO_8 84 GPIO_2 25 GPIO_9 96 GPIO_4 47 GPIO_16 2038 GPIO_5 59 GND

$ echo 0 > /sys/class/gpio/gpio7/value

Page 16: QUICK START GUIDE ARTiGO A820 - cdn.viaembedded.comcdn.viaembedded.com/products/docs/artigo-a820/linux_evaluation_guide/... · 1 ARTi A820 inu EVK v4 0 1 uick tart uide 1 Introduction

12

ARTiGO A820 Linux EVK v4.0.1 Quick Start Guide

3�6 ConfiguringRTCTheRTC(Real-TimeClock)keepstrackofthecurrenttimevalues.Thetimevaluesincludetheyear,month,date,hours,minutesandseconds.ToconfiguretheRTContheARTiGOA820,setthesystemtimewiththeLinuxdatecommandasintheexampleshownbelow:

Time value table

Forexample,thevalue061110072013meansJune11201310:07.Thedatecommandalsoacceptsothertimeformats.Formoreinformation,usethefollowingcommand:

TowritethesystemtimetotheRTC,usethefollowingcommand:

ToreadtheRTCtime,usethefollowingcommand:

Time Valuemm 2-digitmonthdd 2-digitdayHH 2-digithoursin24hsystemMM 2-digitminutesYYYY 4-digityear

$ date --help

$ date mmddHHMMYYYY

$ hwclock -w -f /dev/rtc0

$ hwclock -r

Page 17: QUICK START GUIDE ARTiGO A820 - cdn.viaembedded.comcdn.viaembedded.com/products/docs/artigo-a820/linux_evaluation_guide/... · 1 ARTi A820 inu EVK v4 0 1 uick tart uide 1 Introduction

13

ARTiGO A820 Linux EVK v4.0.1 Quick Start Guide

4� AccessoriesThissectionexplainshowtoinstallandconfigurethevariousUSBdongleandminiPCIemodulesavailablefortheARTiGOA820system.

4�1 ConfiguringtheVNT9271USBWi-FiDongle

TheVNT9271USBWi-FidonglesupportsWi-FifunctionalitythroughUSBportconnection.

ThefirststepistoinserttheVNT9271USBWi-FidongleintoaUSBport.Next,makesuretounpluganyLANcablesorotherWi-Fi/3Gmodulesyouhaveinstalled.Finally,powerontheARTiGOA820.

Inserting the VNT9271 USB Wi-Fi dongle

Whenthebootprocessiscompleted,clickonthe“ConnectionManager”icontoconfigureWLAN.

Connection Manager icon diagram

Whentheconnectioniscreated,connecttotheinternetthroughyourwebbrowser.

Page 18: QUICK START GUIDE ARTiGO A820 - cdn.viaembedded.comcdn.viaembedded.com/products/docs/artigo-a820/linux_evaluation_guide/... · 1 ARTi A820 inu EVK v4 0 1 uick tart uide 1 Introduction

14

ARTiGO A820 Linux EVK v4.0.1 Quick Start Guide

4�2 ConfiguringtheEMIO-1541miniPCIeWi-FiModuleTheEMIO-1541modulesupportsWi-FithroughtheonboardminiPCIeslot.

ThefirststepistoinserttheEMIO-1541moduleintotheminiPCIeslot.Afterinstallingthemodule,connecttheprovidedantennatothemodule.Next,makesuretounpluganyLANcablesorUSBWi-Fidonglesyouhaveinstalled.Finally,powerontheARTiGOA820.

Inserting the EMIO-1541 module

Whenthebootprocessiscompleted,clickonthe“Connection Manager”icontoconfigureWLAN.

Connection Manager icon diagram

Whentheconnectioniscreated,connecttotheinternetthroughyourwebbrowser.

Page 19: QUICK START GUIDE ARTiGO A820 - cdn.viaembedded.comcdn.viaembedded.com/products/docs/artigo-a820/linux_evaluation_guide/... · 1 ARTi A820 inu EVK v4 0 1 uick tart uide 1 Introduction

15

ARTiGO A820 Linux EVK v4.0.1 Quick Start Guide

4�3 ConfiguringtheEMIO-2531miniPCIeUSBWi-Fi& BluetoothModuleTheEMIO-2531modulesupportsUSBWi-FiandBluetoothfunctionalitythroughminiPCIeconnections.

4�3�1 ConnectingtotheInternetThefirststepistoinserttheEMIO-2531moduleintotheminiPCIeslot.Afterinstallingeithermoduleconnecttheprovidedantennatothemodule.Next,makesuretounpluganyLANcablesorotherWi-Fi/3Gmodulesyouhaveinstalled.Finally,powerontheARTiGOA820.

Inserting the EMIO-2531 module

Whenthebootprocessiscompleted,clickonthe“Connection Manager”icontoconfigureWLAN.

Connection Manager icon diagram

Whentheconnectioniscreated,connecttotheinternetthroughyourwebbrowser.

Page 20: QUICK START GUIDE ARTiGO A820 - cdn.viaembedded.comcdn.viaembedded.com/products/docs/artigo-a820/linux_evaluation_guide/... · 1 ARTi A820 inu EVK v4 0 1 uick tart uide 1 Introduction

16

ARTiGO A820 Linux EVK v4.0.1 Quick Start Guide

4�3�2 EnablingBluetoothThefollowingsectionexplainssettinguptheAdvancedAudioDistributionProfile(A2DP)andSerialPortProfile(SPP).

4�3�2�1 SettingUpBluetoothA2DPProfileToaddA2DPsupporttotheARTiGOA820,firstcopyandreplacethepulseaudio-system.conf,bluetooth.conf tothe/etc/dbus-1/system.dfolder.Next,copyandreplacethesystem.pafilestothe/etc/pulse/folder.ThesefilesarelocatedintheEVK/BT_ConfigfolderoftheBSP.

ToenabletheBluetoothservice,usethefollowingcommand:

Usethefollowingcommandstorunthe“bluetoothctl”toshowtheBluetoothMACaddressandsetuppairingmodefortheEMIO-2531module.

ToenableBluetoothdevice,usethefollowingcommands:

$ rfkill unblock bluetooth$ hciconfig hci0 up$ hciconfig hci0 piscan$ /usr/lib/bluez5/bluetooth/bluetoothd -C -d &

$ bluetoothctl[NEW] Controller 5C:F3:70:24:4B:2E[bluetooth]#[bluetooth]# showController 5C:F3:70:24:4B:2E Name: BlueZ 5.25 Alias: BlueZ 5.25 …..[bluetooth]# select 5C:F3:70:24:4B:2E[bluetooth]# power onChanging power on succeeded[bluetooth]# agent onAgent registered[bluetooth]# default-agentDefault agent request successful[bluetooth]# discoverable onChanging discoverable on succeeded[CHG] Controller 5C:F3:70:24:4B:2E Discoverable: yes[bluetooth]# pairable onChanging pairable on succeeded[bluetooth]# scan onDiscovery started[CHG] Controller 5C:F3:70:24:4B:2E Discovering: yes[NEW] Device 00:1D:82:BC:C1:C4 Jabra BT-530…[bluetooth]# scan off[bluetooth]# devicesDevice 00:1D:82:BC:C1:C4 Jabra BT-530Device …[bluetooth]# pair 00:1D:82:BC:C1:C4[bluetooth]# trust 00:1D:82:BC:C1:C4

[bluetooth]# connect 00:1D:82:BC:C1:C4[bluetooth]# info 00:1D:82:BC:C1:C4[bluetooth]# quit

Page 21: QUICK START GUIDE ARTiGO A820 - cdn.viaembedded.comcdn.viaembedded.com/products/docs/artigo-a820/linux_evaluation_guide/... · 1 ARTi A820 inu EVK v4 0 1 uick tart uide 1 Introduction

17

ARTiGO A820 Linux EVK v4.0.1 Quick Start Guide

ThedefaultaudiooutputsettingfortheARTiGOA820isHDMIdevice.

Tolistalltheavailableaudiooutputdevices,usethefollowingcommand:

Fromtheoutput,wecanseethefollowing:

• 0=HDMIdevice

• 1=Line-out

• 2=Bluetoothdevice

TosetuptheaudiooutputtoaBluetoothdevice,usethefollowingcommand:

*Note:IfyouwouldliketochangeaudiooutputafterenablingaBluetoothdevice,usethecommandsbelow:

TosetuptheaudiooutputtoLine-out,usethefollowingcommand:

TosetuptheaudiooutputtoHDMIdevice,usethefollowingcommand:

4�3�2�2 SettingUpBluetoothSPPProfileTheARTiGOA820supportsSPPservermodeandSPPclientmode.

ToenabletheBluetoothservice,usethefollowingcommand:

Usethefollowingcommandstorunthe“bluetoothctl”toshowtheBluetoothMACaddressandsetuppairingmodefortheEMIO-2531 module�

$ pactl list short sinks0 alsa_output.platform-sound-hdmi.23.analog-stereo module-alsa-card.c s16le 2ch 48000Hz

SUSPENDED1 alsa_output.platform-sound.22.analog-stereo module-alsa-card.c s16le 2ch 48000Hz

SUSPENDED2 bluez_sink.00_1D_82_BC_C1_C4 module-bluez5-device.c s16le 2ch 48000Hz IDLE

$ pacmd set-default-sink 2

$ pacmd set-default-sink 1

$ pacmd set-default-sink 0

$ rfkill unblock bluetooth$ hciconfig hci0 up$ hciconfig hci0 piscan$ /usr/lib/bluez5/bluetooth/bluetoothd -C -d &

$ bluetoothctl[NEW] Controller 5C:F3:70:24:4B:2E[bluetooth]# scan onDiscovery started[CHG] Controller 5C:F3:70:24:4B:2E Discovering: yes[NEW] Device 5C:F3:70:25:DD:33 BlueZ 5.25…[bluetooth]# scan off[bluetooth]# devicesDevice 5C:F3:70:25:DD:33 BlueZ 5.25Device …[bluetooth]# pair 5C:F3:70:25:DD:33[bluetooth]# trust 5C:F3:70:25:DD:33[bluetooth]# quit

Page 22: QUICK START GUIDE ARTiGO A820 - cdn.viaembedded.comcdn.viaembedded.com/products/docs/artigo-a820/linux_evaluation_guide/... · 1 ARTi A820 inu EVK v4 0 1 uick tart uide 1 Introduction

18

ARTiGO A820 Linux EVK v4.0.1 Quick Start Guide

SPP server mode:

Ifyoudonotchangethelistenchannelnumber,theservicewillautomaticallyusethedefaultchannelnumber.Makesuretheserverorclientmodeisusingthesamebluetoothchannelnumber.

TosetuptheSPPservermodeandallowotherdevicestoconnect,usethefollowingcommands:

SPP client mode:

Ifyoudonotchangethelistenchannelnumber,theservicewillautomaticallyusethedefaultchannelnumber.Makesuretheserverorclientmodeisusingthesamelistenchannelnumber.

UsethefollowingcommandstosetuptheSPPclientmodeandrequestaconnectiontoSPPserver.

UsethefollowingcommandstosetuptheSPPclientmodeandrequestaconnectiontoSPPserver.

Toopentheminicomserialcommunicationprogram,usethefollowingcommand:

Connecttothe/dev/rfcomm0serialdevicewiththefollowingsettings:

Serial port setting of EMIO-2531 module

StartaserialcommunicationprogramonthehostmachinewiththesamecommunicationsettingsusingtheappropriateBluetoothSPPdevice.AfterwardstheBluetoothSPPdeviceandtheARTiGOA820willbeabletocommunicatethroughtheprograms(forexamplesendingakeypressononemachineshouldbeshownontheothermachine).

$ sdptool add SPSerial Port service registered$ rfcomm listen hci0Waiting for connection on channel 1Connection from 5C:F3:70:25:DD:33 to /dev/rfcomm0Press CTRL-C for hangup

$ sdptool add SPSerial Port service registered$ rfcomm connect hci0 5C:F3:70:24:4B:2EConnected /dev/rfcomm0 to 5C:F3:70:24:4B:2E on channel 1Press CTRL-C for hangup

# minicom -s

Page 23: QUICK START GUIDE ARTiGO A820 - cdn.viaembedded.comcdn.viaembedded.com/products/docs/artigo-a820/linux_evaluation_guide/... · 1 ARTi A820 inu EVK v4 0 1 uick tart uide 1 Introduction

19

ARTiGO A820 Linux EVK v4.0.1 Quick Start Guide

4�4 ConfiguringtheEMIO-2550miniPCIeMobileBroadband ModuleTheEMIO-2550miniPCIeMobileBroadbandmodulesupports3GandGPSfunctions.

4�4�1 ConnectingtotheInternetThefirststepistoinsertanactiveSIMcardintotheEMIO-2550module,andtheninserttheEMIO-2550moduleintotheminiPCIeslot.Afterinstallingthemoduleconnecttheprovidedantennatothemodule.Next,makesuretounpluganyLANcablesorUSBWi-Fidonglesyouhaveinstalled.Finally,powerontheARTiGOA820�

Inserting the EMIO-2550 module

TocheckthatthesystemhascorrectlydetectedtheEMIO-2550module,usethefollowingcommand:

Makesuretheprintoutmessageincludes“Bus001Device004:ID1545:1102U-BloxAG”.

Configurethe3GfunctionbycreatingaPPPconnectionwithrootprivilege.

OncethePPPconnectionhasbeencreated,connecttotheinternetthroughyourwebbrowser.

$ lsusb

$ pppd call Module-ZU200

Page 24: QUICK START GUIDE ARTiGO A820 - cdn.viaembedded.comcdn.viaembedded.com/products/docs/artigo-a820/linux_evaluation_guide/... · 1 ARTi A820 inu EVK v4 0 1 uick tart uide 1 Introduction

20

ARTiGO A820 Linux EVK v4.0.1 Quick Start Guide

4�4�2 EnablingGPSToconfiguretheGPSfunctionofthemodulerequirestheuseoftheMinicomserialcommunicationprogram.OpentheMinicomserialcommunicationprogramwiththefollowingcommand:

Connecttothe/dev/ttyUSB1serialdevicewiththefollowingsettings:

Serial port setting of EMIO-2550

Whenthesetupiscomplete,typethefollowingGPSATcommandsintoMinicom:AT+UGPRF=1,AT+UGRMC=1,AT+UGGSV=1,AT+UGZDA=1,andAT+UGPS=1,0

Waitforthe“OK”messagebeforesendingthenextATcommand.

UsetheMinicomtosettheserialdevice/dev/ttyUSB7inanotherterminalanditwilloutputthedatareceivedfromtheGPSmoduleasillustratedinthescreenshotbelow.

GPS NMEA message

$ minicom -s

+--------------------------------------------------------------+| A - Serial Device : /dev/ttyUSB1 || 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 |+--------------------------------------------------------------+

AT+UGPRF=1OKAT+UGRMC=1OKAT+UGGSV=1OKAT+UGZDA=1OKAT+UGPS=1,0OK

$GPRMC,142015,00,A,2501.93961,N,12133.66111,E,0.068,,030314,,,A*73$GPGSV,4,1,13,01,34,184,29,03,49,023,47,06,26,042,41,07,44,317,26*75$GPGSV,4,2,13,08,13,323,,11,60,192,,13,29,242,38,16,33,071,16*79$GPGSV,4,3,13,19,65,356,44,23,18,208,12,27,35,034,27,30,37,145,29*7B$GPGSV,4,4,13,32,01,154,*4B$GPZDA,142015.00,03,03,2014,00,00*62

Page 25: QUICK START GUIDE ARTiGO A820 - cdn.viaembedded.comcdn.viaembedded.com/products/docs/artigo-a820/linux_evaluation_guide/... · 1 ARTi A820 inu EVK v4 0 1 uick tart uide 1 Introduction

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