# GPS related issue

**URL:** <https://mangoh.discourse.group/t/gps-related-issue/9722>\
**Category:** mangOH Green\
**Created:** [October 18, 2021, 5:40am UTC](https://mangoh.discourse.group/t/gps-related-issue/9722 "2021-10-18T05:40:22Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![pallavibathala](https://avatars.discourse-cdn.com/v4/letter/p/9f8e36/32.png) [@pallavibathala](https://mangoh.discourse.group/u/pallavibathala)\
**Post date:** [October 18, 2021, 5:40am UTC](https://mangoh.discourse.group/t/gps-related-issue/9722/1 "2021-10-18T05:40:22Z")

</div>

Hi Team,

We have created an application which will fetch GPS co-ordinates and continuously publish the location of the device using MQTT publish.  
The issue is we are not able to get location details, see below snippet

```auto
le_pos_GetFixState();
le_pos_sample_Get2DLocation()

```

Here, the FixState() api is returning -3 as error. Which means the position is not fixed.

Then we tried using `gnss` commands and tried to get position.  
`gnss get posInfo` is returning Position not fixed  
Then tried: `gnss fix` is returning **TTFF not calculated**.

Tried also with at commands: AT!GPSTRACK, AT!GPSSTATUS, AT!GPSSATINFO…  
**at!gpssatinfo?  
Satellites in view: 2 (1980 01 06 6 00:00:00)**

 
 **- SV:255 ELEV: 0 AZI: 0 SNR: 27**
 - **SV:255 ELEV: 0 AZI: 0 SNR: 28**

We got to know minimum of 3 to 4 SATS are required for getting fixed location.

I am not able to resolve this issue.

Please help me with this?

Thanks,  
Pallavi B.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [October 18, 2021, 7:38am UTC](https://mangoh.discourse.group/t/gps-related-issue/9722/2 "2021-10-18T07:38:10Z")

</div>

In MS-based mode in AT!GPSFIX, 4 or more SVs are required to generate a fix.

---

<div class="post-metadata">

**Author:** ![pallavibathala](https://avatars.discourse-cdn.com/v4/letter/p/9f8e36/32.png) [@pallavibathala](https://mangoh.discourse.group/u/pallavibathala)\
**Post date:** [October 18, 2021, 7:59am UTC](https://mangoh.discourse.group/t/gps-related-issue/9722/3 "2021-10-18T07:59:39Z")

</div>

Can I know what are all the different ways to get device position info other than GNSS???

Regards,  
Pallavi.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [October 18, 2021, 8:08am UTC](https://mangoh.discourse.group/t/gps-related-issue/9722/4 "2021-10-18T08:08:19Z")

</div>

I remember I can get positioning data via SUPL in indoor environment

---

<div class="post-metadata">

**Author:** ![pallavibathala](https://avatars.discourse-cdn.com/v4/letter/p/9f8e36/32.png) [@pallavibathala](https://mangoh.discourse.group/u/pallavibathala)\
**Post date:** [October 18, 2021, 8:43am UTC](https://mangoh.discourse.group/t/gps-related-issue/9722/5 "2021-10-18T08:43:29Z")

</div>

can you suggest some docs that support SUPL for MangoH Green. How can i use SUPL on MangoH Green?

Thanks,  
Pallavi.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [October 18, 2021, 9:13am UTC](https://mangoh.discourse.group/t/gps-related-issue/9722/6 "2021-10-18T09:13:48Z")

</div>

do you have a SUPL server?

you need to use AT!GPSSUPLURL to set up  
after that you need to use “MS-assisted only” mode in AT!GPSFIX

---

<div class="post-metadata">

**Author:** ![pallavibathala](https://avatars.discourse-cdn.com/v4/letter/p/9f8e36/32.png) [@pallavibathala](https://mangoh.discourse.group/u/pallavibathala)\
**Post date:** [October 18, 2021, 9:50am UTC](https://mangoh.discourse.group/t/gps-related-issue/9722/7 "2021-10-18T09:50:50Z")

</div>

Hi jyijyi,

we have [supl.google.com](http://supl.google.com) server or [supl.nokia.com](http://supl.nokia.com) server. Can we use those?

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [October 18, 2021, 10:04am UTC](https://mangoh.discourse.group/t/gps-related-issue/9722/8 "2021-10-18T10:04:27Z")

</div>

I used google SUPL server before, but later, it cannot be used publicly.

You need to do some testing.

Good luck!

---

<div class="post-metadata">

**Author:** ![pallavibathala](https://avatars.discourse-cdn.com/v4/letter/p/9f8e36/32.png) [@pallavibathala](https://mangoh.discourse.group/u/pallavibathala)\
**Post date:** [October 18, 2021, 10:10am UTC](https://mangoh.discourse.group/t/gps-related-issue/9722/9 "2021-10-18T10:10:15Z")

</div>

Before using this command “AT!GPSSUPLURL”, do we need to set any other commands.

Thanks and Regards,  
Pallavi

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [October 18, 2021, 10:19am UTC](https://mangoh.discourse.group/t/gps-related-issue/9722/10 "2021-10-18T10:19:12Z")

</div>

Check “GPSENABLE” in AT!CUSTOM?  
Also check “AT!GPSSUPLVER” and AT!GPSTRANSSEC

---

<div class="post-metadata">

**Author:** ![pallavibathala](https://avatars.discourse-cdn.com/v4/letter/p/9f8e36/32.png) [@pallavibathala](https://mangoh.discourse.group/u/pallavibathala)\
**Post date:** [October 18, 2021, 1:10pm UTC](https://mangoh.discourse.group/t/gps-related-issue/9722/11 "2021-10-18T13:10:48Z")

</div>

Hello,

I have used the below AT Commands and got the below responses.

**AT!CUSTOM?**  
!CUSTOM:  
ISVOICEN 0x01  
GPIOSARENABLE 0x01  
GPSENABLE 0x01  
WAKEHOSTEN 0x83  
NMEAENABLE 0x01  
GOBIIMEN 0x01  
USBECMRNDISOPTION 0x01  
HSICENABLE 0x01  
SINGLEAPNSWITCH 0x01  
SIMLPM 0x01  
BOOTQUIETDISABLE 0x01  
FASTBOOTEN 0x01

OK

**AT!GPSSUPLURL="[supl.google.com:7275](http://supl.google.com:7275)"**  
OK  
**at!gpssuplver?**  
!GPSSUPLVER: 2

OK  
**at!gpsfix=3,200,10**  
ERROR

While trying to fix the GPS as MS-assisted mode, we are getting error.

Can you please help out with the reason for the error??

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [October 18, 2021, 1:22pm UTC](https://mangoh.discourse.group/t/gps-related-issue/9722/12 "2021-10-18T13:22:02Z")

</div>

I don’t see problem with my module:

```auto
at!entercnd="A710"
OK
AT!GPSSUPLURL="supl.google.com:7275"
OK
at!gpssuplver?
!GPSSUPLVER: 2

OK
at!gpsfix=3,200,10
OK
at!gpsend=0
OK
at!gstatus?
!GSTATUS:
Current Time: 126 Temperature: 45
Modem Mitigate Level: 0 ModemProc Mitigate Level: 0
Reset Counter: 1 Mode: ONLINE
System mode: LTE PS state: Attached
IMS reg state: NOT REGISTERED IMS mode: Normal
IMS Srv State: NO SMS,NO VoIP
LTE band: B7 LTE bw: 20 MHz
LTE Rx chan: 2850 LTE Tx chan: 20850
LTE CA state: INACTIVE
EMM state: Registered Normal Service
RRC state: RRC Connected

PCC RxM RSSI: -75 RSRP (dBm): -103
PCC RxD RSSI: -89 RSRP (dBm): -133
Tx Power: 0 TAC: 0003 (3)
RSRQ (dB): -10 Cell ID: 04BB6102 (79388930)
SINR (dB): 2.6

OK
at+cgpaddr=1
+CGPADDR: 1,10.105.153.16

OK
ati3
Manufacturer: Sierra Wireless, Incorporated
Model: WP7609
Revision: SWI9X07Y_02.28.03.05 000000 jenkins 2019/07/08 11:04:16
IMEI: 359782080100399
IMEI SV: 6
FSN: WA803370010610
+GCAP: +CGSM

OK
at!gpsend=0
OK
at!gpsfix=3,200,10
OK

```

---

<div class="post-metadata">

**Author:** ![pallavibathala](https://avatars.discourse-cdn.com/v4/letter/p/9f8e36/32.png) [@pallavibathala](https://mangoh.discourse.group/u/pallavibathala)\
**Post date:** [October 18, 2021, 1:59pm UTC](https://mangoh.discourse.group/t/gps-related-issue/9722/13 "2021-10-18T13:59:08Z")

</div>

Then what am I missing, any pre-requirements to be enabled? What might be the issue. Please help me?

Thanks  
Pall

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [October 18, 2021, 2:17pm UTC](https://mangoh.discourse.group/t/gps-related-issue/9722/14 "2021-10-18T14:17:43Z")

</div>

are we using same FW R13.3?  
Does it work after typing at!gpsend=0 ?  
did your module register network and obtain IP address?

---

<div class="post-metadata">

**Author:** ![pallavibathala](https://avatars.discourse-cdn.com/v4/letter/p/9f8e36/32.png) [@pallavibathala](https://mangoh.discourse.group/u/pallavibathala)\
**Post date:** [October 19, 2021, 6:57am UTC](https://mangoh.discourse.group/t/gps-related-issue/9722/15 "2021-10-19T06:57:09Z")

</div>

Hi jyijyi,

Please refer below **AT** commands for my device responses.

```auto
at!entercnd="A710"
OK
at!gpssuplurl="supl.google.com:7275"
OK
at!fps
ERROR

ERROR
at!gpsfix=3,200,10
ERROR
at+cgpaddr=1
+CGPADDR: 1,25.34.26.46

OK
ati3
Manufacturer: Sierra Wireless, Incorporated
Model: WP7504
Revision: SWI9X15Y_07.12.09.00 r34123 CARMD-EV-FRMWR1 2017/04/26 23:34:19
MEID: 35620707004710
ESN: 12805302987, 8050EACB
IMEI: 356207070047106
IMEI SV: 45
FSN: P1646200180503
+GCAP: +CGSM

OK
at!gpssend=
ERROR
at!gpsend=0
OK
at!gpsfix=3,200,10
ERROR

```

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [October 19, 2021, 7:14am UTC](https://mangoh.discourse.group/t/gps-related-issue/9722/16 "2021-10-19T07:14:08Z")

</div>

I am currently using WP76 module

---

<div class="post-metadata">

**Author:** ![pallavibathala](https://avatars.discourse-cdn.com/v4/letter/p/9f8e36/32.png) [@pallavibathala](https://mangoh.discourse.group/u/pallavibathala)\
**Post date:** [October 19, 2021, 1:33pm UTC](https://mangoh.discourse.group/t/gps-related-issue/9722/17 "2021-10-19T13:33:42Z")

</div>

Any Idea about the issue with WP7504 module??

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [October 19, 2021, 1:41pm UTC](https://mangoh.discourse.group/t/gps-related-issue/9722/18 "2021-10-19T13:41:18Z")

</div>

Does at!gpsfix work on  
• 1=Standalone (not supported by a mobile station)  
• 2=MS-based only

???

---

<div class="post-metadata">

**Author:** ![pallavibathala](https://avatars.discourse-cdn.com/v4/letter/p/9f8e36/32.png) [@pallavibathala](https://mangoh.discourse.group/u/pallavibathala)\
**Post date:** [October 19, 2021, 2:47pm UTC](https://mangoh.discourse.group/t/gps-related-issue/9722/19 "2021-10-19T14:47:07Z")

</div>

No, even for Standalone and MS-based also I am getting Error.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [October 19, 2021, 2:55pm UTC](https://mangoh.discourse.group/t/gps-related-issue/9722/20 "2021-10-19T14:55:40Z")

</div>

You better take another module for testing

[Next page](https://mangoh.discourse.group/t/gps-related-issue/9722.md?page=2)
