background image

ARTiGO A820 Linux BSP v3.2.1 Quick Start Guide 

20

 

5.6.2.

 

Enabling GPS 

To configure the GPS functions of the module requires the use of the Minicom serial 
communication program. Open the Minicom serial communication program with the 
following command: 

$ minicom -s

 

 
Connect to the /dev/ttyUSB1 serial device with the following settings: 

+--------------------------------------------------------------+ 

|  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              | 

+--------------------------------------------------------------+

 

Serial port setting of ARTiGO A820 

When the setting is completed, type the following GPS AT commands into Minicom: 
AT+UGPRF=1, AT+UGRMC=1, AT+UGGSV=1, AT+UGZDA=1, and AT+UGPS=1,0 

Wait for the “OK” message before sending the next AT command. 

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

 

 
Use the Minicom to set serial device to /dev/ttyUSB7 in another terminal and it will 
output the data received from the GPS module as illustrated in the screenshot below. 

$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 
……… 

GPS NMEA message 

 

Summary of Contents for ARTiGO A820

Page 1: ...1 00 10262016 160700 QUICK START GUIDE ARTiGO A820 Linux BSP v3 2 1...

Page 2: ...se 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 docume...

Page 3: ...ARTiGO A820 Linux BSP v3 2 1 Quick Start Guide iii Revision History Version Date Remarks 1 00 10 26 2016 Initial release...

Page 4: ...4 3 Building an SD Card Image 9 5 Hardware Functions 10 5 1 Setting Up COM 1 10 5 1 1 Setting Up RS 232 Mode 10 5 1 2 Setting Up RS 485 Mode 11 5 2 Configuring Network Settings 12 5 3 Configuring the...

Page 5: ...nfiguring files ARTiGO A820 Linux BSP contents 1 1 1 BSP Folder Contents A820 yocto bsp v3 2 1 tar bz2 A complete and static Yocto BSP including the ARTiGO A820 meta files and all the pre downloaded r...

Page 6: ...rsion 3 14 28 Evaluation image OpenEmbedded core built with Yocto 1 7 Dizzy Development based on NXP fsl yocto 3 14 28_1 0 0 Yocto 1 7 Dizzy Supports SPI with eMMC or Micro SD boot default Supports HD...

Page 7: ...ge onto the Micro SD card with the command below replacing device name with the correct value for the card for example sdb Important Make sure you are writing to the correct device or the host system...

Page 8: ...ev mtdblock0 Please note that if you have previously saved U Boot parameters it is recommended to clear that area of the SPI ROM with the following command sudo dd if dev zero of dev mtdblock0 bs 512...

Page 9: ...configure serial port setting and connect to the debug console There you will be able to see the U Boot boot log and adjust settings in the U Boot console A Serial Device dev ttymxc0 B Lockfile Locat...

Page 10: ...o stop autoboot 0 Debug console view of boot process To list the current U Boot parameters use the following command printenv Make sure the printout message includes bootcmd run bootcmd_auto The defau...

Page 11: ...le There you will be able to see the U Boot boot log and adjust settings in the U Boot console Next power on the ARTiGO A820 to initiate the boot process When the boot process is completed you will be...

Page 12: ...e installed using the bash script below bin bash Install dependant packages sudo apt get install gawk wget git core diffstat unzip texinfo gcc multilib build essential chrpath socat sudo apt get insta...

Page 13: ...ild a820 in the command below cd a820 yocto bsp MACHINE imx6qvab820 source via setup release sh b build a820 4 3 Building an SD Card Image This BSP provides the via image gui Yocto image as default Us...

Page 14: ...RS 232 cable To start the Minicom serial communication program on the ARTiGO A820 use the following command minicom s Connect to the dev ttymxc0 serial device with the following settings A Serial Devi...

Page 15: ...am E Bps Par Bits 115200 8N1 F Hardware Flow Control No G Software Flow Control No Serial port setting of RS 485 mode Start a serial communication program on the host machine with the same communicati...

Page 16: ...mode and to use the WLAN select item 7 Enable and Disable Gateway and then select item 6 Reboot as illustrated by the screenshot below 1 Ethernet 5 Exit 2 WLAN Config 6 Reboot 3 Reset 7 Enable or Dis...

Page 17: ...271 USB Wi Fi dongle into the USB port Next remove the LAN cables Wi Fi miniPCIe or 3G miniPCIe module Finally power on the ARTiGO A820 Inserting the VNT9271 USB Wi Fi dongle When the boot process is...

Page 18: ...the EMIO 1541 module into the miniPCIe slot Next remove the LAN cables and USB Wi Fi dongle Finally power on the ARTiGO A820 Inserting the EMIO 1541 module When the boot process is completed click on...

Page 19: ...to insert the EMIO 2531 module into the miniPCIe slot Next remove the LAN cables and USB Wi Fi dongle Finally power on the ARTiGO A820 Inserting the EMIO 2531 module When the boot process is complete...

Page 20: ...ctl NEW Controller 5C F3 70 24 4B 2E EMIO 2531 Bluetooth MAC address bluetooth bluetooth show Controller 5C F3 70 24 4B 2E Name BlueZ 5 25 Alias BlueZ 5 25 bluetooth select 5C F3 70 24 4B 2E select co...

Page 21: ...nfig hci0 up hciconfig hci0 piscan usr lib bluez5 bluetooth bluetoothd C d Use the following commands to run the bluetoothctl to show the EMIO 2531 Bluetooth MAC address and set up pairing mode blueto...

Page 22: ...or hangup To open the minicom serial communication program use the following command minicom s Connect to the dev rfcomm0 serial device with the following settings A Serial Device dev rfcomm0 B Lockfi...

Page 23: ...lot Next remove the LAN cables and USB Wi Fi dongle Finally power on the ARTiGO A820 Inserting the EMIO 2550 module To check that the system has correctly detected the EMIO 2550 module use the followi...

Page 24: ...ompleted type the following GPS AT commands into Minicom AT UGPRF 1 AT UGRMC 1 AT UGGSV 1 AT UGZDA 1 and AT UGPS 1 0 Wait for the OK message before sending the next AT command AT UGPRF 1 OK AT UGRMC 1...

Page 25: ...nable wdt To change the timeout value and the system reboot value seconds use the following command unit_tests wdt_driver_test out set_timeout value To send keep alive requests to the Watchdog value s...

Page 26: ...O_16 203 8 GPIO_5 5 9 GND GPIO port pinout table Set the multifunction pin as a GPIO pin Here is the example for GPIO pin 1 echo 7 sys class gpio export 5 8 2 Setting Up GPI Mode To set a pin to input...

Page 27: ...ime with the Linux date command for example as date mmddHHMMYYYY Time Value mm 2 digit month dd 2 digit day HH 2 digit hours in 24h system MM 2 digit minutes YYYY 4 digit year Time value table For exa...

Page 28: ......

Reviews: