# Location plugin AT cmd interface

**URL:** <https://forum.sierrawireless.com/t/location-plugin-at-cmd-interface/5159>\
**Category:** Open AT\
**Created:** [July 25, 2011, 3:04pm UTC](https://forum.sierrawireless.com/t/location-plugin-at-cmd-interface/5159 "2011-07-25T15:04:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jorn](https://avatars.discourse-cdn.com/v4/letter/j/a6a055/32.png) [@Jorn](https://forum.sierrawireless.com/u/Jorn)\
**Post date:** [July 25, 2011, 3:04pm UTC](https://forum.sierrawireless.com/t/location-plugin-at-cmd-interface/5159/1 "2011-07-25T15:04:25Z")

</div>

Hello people, I recently got into OpenAT.  
I am trying to fool around with the XM0110. I understand that there is an AT command interface so I downloaded an empty project with the “Location” plugin included into the Q26 CPU.  
I thought this would allow me to send AT commands like “AT+GPSINIT=1” over the serial interface, to my openAT application in order to start up the GPS functionality. The CPU responds with “ERROR” on any GPS command.

Is there something that I misunderstood?

---

<div class="post-metadata">

**Author:** ![tomridl](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/tomridl/32/2704_2.png) [@tomridl](https://forum.sierrawireless.com/u/tomridl)\
**Post date:** [July 26, 2011, 6:44am UTC](https://forum.sierrawireless.com/t/location-plugin-at-cmd-interface/5159/2 "2011-07-26T06:44:51Z")

</div>

Hi

You need to include the location plug-in, and then select the GPS\_AT\_cmd sample in the Sample Selection section when creating the new project. This will give you all the AT commands, they are not included in the plug-in its self.

Don’t forget to start the application (AT+WOPEN=1) after downloading it to the module.

---

<div class="post-metadata">

**Author:** ![Jorn](https://avatars.discourse-cdn.com/v4/letter/j/a6a055/32.png) [@Jorn](https://forum.sierrawireless.com/u/Jorn)\
**Post date:** [July 26, 2011, 7:23am UTC](https://forum.sierrawireless.com/t/location-plugin-at-cmd-interface/5159/3 "2011-07-26T07:23:37Z")

</div>

Thank you Tom, that is the answer I needed.

I am trying to rework an OpenAT application for it to work with the XM0110 GPS instead of a third party GPS module. I hope I can easily get it to send NMEA messsages so that I have to change the least possible because this code is a horror ;\_;

The code that my company got me working on could as well have been written by the author of this article:  
[thc.org/root/phun/unmaintain.html](http://thc.org/root/phun/unmaintain.html)

Have fun

---

<div class="post-metadata">

**Author:** ![tomridl](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/tomridl/32/2704_2.png) [@tomridl](https://forum.sierrawireless.com/u/tomridl)\
**Post date:** [July 26, 2011, 9:04am UTC](https://forum.sierrawireless.com/t/location-plugin-at-cmd-interface/5159/4 "2011-07-26T09:04:28Z")

</div>

There are a couple of things to watch when using the XM0110, mainly to do with stack sizes. This is what I use:

```auto
{ Task_GPS_COM, 32768, "GPS_DATA_TASK", 16 },
{ Task_GPS_CORE, 65536, "GPS_CORE", 15 },
{ Task_GPS_AIDING_AEE, 15360, "GPS_AEE", 1 },
```

If you are using the AT command sample code, getting NMEA strings is as easy as initialising the GPS (AT+GPSINIT=1), Configure the NMEA string (AT+GPSNMEA=1,1,FFFF) and start the GPS (AT+GPSSTART). Assuing you have everything wired up correctly, you should start receiving stanard NMEA strings (Described in the Location Plug-in AT command docs.
