# Sample gpsApp usage

**URL:** <https://forum.legato.io/t/sample-gpsapp-usage/6518>\
**Category:** Legato Application Framework\
**Created:** [May 30, 2023, 4:25pm UTC](https://forum.legato.io/t/sample-gpsapp-usage/6518 "2023-05-30T16:25:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahmedakifhekimoglu](https://avatars.discourse-cdn.com/v4/letter/a/838e76/32.png) [@ahmedakifhekimoglu](https://forum.legato.io/u/ahmedakifhekimoglu)\
**Post date:** [May 30, 2023, 4:25pm UTC](https://forum.legato.io/t/sample-gpsapp-usage/6518/1 "2023-05-30T16:25:59Z")

</div>

Hey I have a magOh yellow device which has `21.05.0_0e0fd5f3fc5f6169e2516f22304da11c_modified` in it. On development environment I have got `legato version 21.05` as well. I can build and run the sample gpsApp without any errors but it doesnt do anything in the documentation it says I can use `map locate` function I tried to use it and couldn’t. I need help there and also I tried to check if the app gets stuck or not using `LE_INFO()` function It didnt print even hello World. I am confused about gpsApp and how to use it please help. Thanks in advance.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [May 30, 2023, 4:30pm UTC](https://forum.legato.io/t/sample-gpsapp-usage/6518/2 "2023-05-30T16:30:27Z")

</div>

have you tried with AT!GPSFIX command first?  
Or have you tried with gnss command first?

---

<div class="post-metadata">

**Author:** ![ahmedakifhekimoglu](https://avatars.discourse-cdn.com/v4/letter/a/838e76/32.png) [@ahmedakifhekimoglu](https://forum.legato.io/u/ahmedakifhekimoglu)\
**Post date:** [May 30, 2023, 4:36pm UTC](https://forum.legato.io/t/sample-gpsapp-usage/6518/3 "2023-05-30T16:36:19Z")

</div>

gnss get loc2d and 3d works fine I havent tried at!gpsfix should I try it? And maybe I am using map locate function wrong any guidelines would be great other than the one on the documentation.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [May 30, 2023, 4:40pm UTC](https://forum.legato.io/t/sample-gpsapp-usage/6518/4 "2023-05-30T16:40:53Z")

</div>

if gnss command is working fine for you, you can refer to the source code of gnss command here:

> <https://github.com/legatoproject/legato-af/blob/master/apps/tools/gnss/gnss.c>

For the gpsApp, did you build the whole system by the .sdef file?  
here says:

> **[GPS - Legato Docs](https://docs.legato.io/latest/sampleApps_gpsApp.html)**
>
> legato™ is an open source Linux-based embedded platform designed to simplify connected IoT application development

 ![image](https://us1.discourse-cdn.com/flex019/uploads/legato1/original/2X/d/d6881bb8c8cc59c8d988accb8c2ab45f4df112e2.png)

---

<div class="post-metadata">

**Author:** ![ahmedakifhekimoglu](https://avatars.discourse-cdn.com/v4/letter/a/838e76/32.png) [@ahmedakifhekimoglu](https://forum.legato.io/u/ahmedakifhekimoglu)\
**Post date:** [May 30, 2023, 4:51pm UTC](https://forum.legato.io/t/sample-gpsapp-usage/6518/5 "2023-05-30T16:51:16Z")

</div>

Oooh so that means I have to use mksys I was using mkapp to build my applications.
