# Issue: GPS enable failed by using AT command line

**URL:** <https://forum.legato.io/t/issue-gps-enable-failed-by-using-at-command-line/2913>\
**Category:** Legato Application Framework\
**Created:** [December 26, 2017, 12:20am UTC](https://forum.legato.io/t/issue-gps-enable-failed-by-using-at-command-line/2913 "2017-12-26T00:20:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lumao](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/lumao/32/167_2.png) [@lumao](https://forum.legato.io/u/lumao)\
**Post date:** [December 26, 2017, 12:20am UTC](https://forum.legato.io/t/issue-gps-enable-failed-by-using-at-command-line/2913/1 "2017-12-26T00:20:54Z")

</div>

Hi forum,  
Today I was trying to get GPS location by using a command line

`"AT!GPSLOC?"`

, however, it return data inactive . Then I tried to enable the GPS by using

```
"AT!CUSTOM=”GPSENABLE”

```

it return “ERROR”

 ![image](https://us1.discourse-cdn.com/flex019/uploads/legato1/original/1X/7d26b1a89b810f42ad5e028a0eca1d0c8d4f45bc.png)

Reference to the datasheet.

Can you give me any advise, why it return “ERROR” after I enter AT command “AT!CUSTOM=”GPSENABLE”

How can I enable the GPS by using a AT command.

My module information: WP8548

```
§ Device: WP8548

§ IMEI: 35937706004XXXX

§ FSN: LL65230010XXXX

§ Firmware: SWI9X15Y_07.12.09.00 r34123 CARMD-EV-FRMWR1 2017/04/26 23:34:19

§ Bootloader: SWI9X15Y_07.12.09.00 r34123 CARMD-EV-FRMWR1 2017/04/26 23:34:19

§ priIdPn: 9906351

§ priIdRev: 01.00

§ skuId: 1103113

```

Legato version:

```
  16.10.3_7776bb75a488e0db67b0d24975b46dd0

```

Please advise, thank you!

Best Regards!

---

<div class="post-metadata">

**Author:** ![klin](https://avatars.discourse-cdn.com/v4/letter/k/4491bb/32.png) [@klin](https://forum.legato.io/u/klin)\
**Post date:** [December 28, 2017, 7:37am UTC](https://forum.legato.io/t/issue-gps-enable-failed-by-using-at-command-line/2913/2 "2017-12-28T07:37:43Z")

</div>

Hi,

To enable the GPS, please try the following:  
AT!ENTERCND=“A710”  
AT!CUSTOM=“OATENABLE”,1

BR,  
Kaiying

---

<div class="post-metadata">

**Author:** ![lumao](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/lumao/32/167_2.png) [@lumao](https://forum.legato.io/u/lumao)\
**Post date:** [December 28, 2017, 7:51am UTC](https://forum.legato.io/t/issue-gps-enable-failed-by-using-at-command-line/2913/3 "2017-12-28T07:51:47Z")

</div>

klin,

It works, thank you!
