Hi Matt,
We tried your suggestion. This gave us enough to figure out that the PDP contexts were not being activated. Using the at+cgdcont? command - we saw that we weren’t obtaining an the IP addresses. We then figured out that we needed to activate the PDP contexts. Below is the output from one of my sessions with the modem. This one appeared to work properly. That is after starting the GPS within a minute the modem was able to obtain a fix. This is what I expected.
The output below starts off with the microcontroller issuing a few commands and then starting the GPS. I manually stop the GPS and issue a few commands +CGATT, +CGACT, +CGDCONT and then start the GPS again.
However, subsequent attempts at doing the same thing do not work and the TTFF of the modem ranges from 3 minutes to 6 minutes. There must something different that I’m missing. The output from the attempts that did not get a fix within a couple of minutes are identical to the output below - they just didn’t get a fix.
Since it worked once (or so I think it did), I think I’m close but I can’t pin down the variables affecting the results.
..Canopy Tracker - Oct 7 2016 13:28:50
+PBREADY
at+cfun=1,0
OK
Issuing GSN
at+gsn
359516050200734
OK
359516050200734
Issuing gpspvt.
at+gpspvt=4,1,1
OK
info: at cmtlr
at+cmtlr=1
OK
at+cmtlra=1,0
+CME ERROR: 3
CMTLRA
at+cmolr=2,1
OK
at+gpsstart=1
OK
+GPSEVINIT: 1
+GPSEVSTART: 1
+GPSPVT:0,00:00:00,00/00/0000,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
+GPSEVPOS: 0
OK
+GPSPVT:0,00:00:00,00/00/0000,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
:0,00:00:00,00/00/0000,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
at+GPSPVT:0,00:00:00,00/00/0000,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
+g+GPSPVT:0,00:00:00,00/00/0000,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
psstop+GPSPVT:0,00:00:00,00/00/0000,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
OK
+GPSPVT:0,00:00:00,00/00/0000,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
:0,00:00:00,00/00/0000,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
+GPSEVSTOP: 1
+GPSEVPOS: 0
atiHL8548-G
OK
at+cgmrRHL85xx.5.5.14.0.201502091756.x6250_1
OK
at+gpssuplcfg?+GPSSUPLCFG: 0,"supl.google.com",7276,1,0
+GPSSUPLCFG: 1,0,2,1
OK
at+gpsconf?+GPSCONF: 0,0
+GPSCONF: 1,2
+GPSCONF: 10,1
+GPSCONF: 11,200,200
OK
at+gpssaid?ERROR
at+gpsaid?ERROR
atat+gpsautoinit?+CME ERROR: 3
at+gpsautoinit?+GPSAUTOINIT: 0
OK
atOK
at+at+cgdcont?ERROR
at+cgdcont?+CGDCONT: 1,"IP","epc.tmobile.com","0.0.0.0",0,0
+CGDCONT: 4,"IP","epc.tmobile.com","0.0.0.0",0,0
OK
at+cgatt?+CGATT: 1
OK
at+cgact?+CGACT: 1,0
+CGACT: 4,0
OK
at+cgact=1,1,4OK
at+cdgERROR
at+cgdcont?+CGDCONT: 1,"IP","epc.tmobile.com","21.230.233.168",0,0
+CGDCONT: 4,"IP","epc.tmobile.com","33.225.238.158",0,0
OK
at+gpspvt=4,1,1OK
at+cmtlr=1OK
at+cmtlra=1,0+CME ERROR: 3
at+cmolr=2,1OK
at+cgdcont?+CGDCONT: 1,"IP","epc.tmobile.com","21.230.233.168",0,0
+CGDCONT: 4,"IP","epc.tmobile.com","33.225.238.158",0,0
OK
at+gpsstart=1OK
+GPSEVSTART: 1
+GPSPVT:0,00:00:00,00/00/0000,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
+GPSEVPOS: 0
+GPSPVT:0,00:00:00,00/00/0000,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
:0,00:00:00,00/00/0000,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
+GPSPVT:0,00:00:00,00/00/0000,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
:0,00:00:00,00/00/0000,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
+GPSPVT:0,00:00:00,00/00/0000,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
:0,00:00:00,00/00/0000,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
+GPSPVT:0,00:00:00,00/00/0000,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
:0,00:00:00,00/00/0000,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
+GPSPVT:0,00:00:00,00/00/0000,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
:0,00:00:00,00/00/0000,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
+GPSPVT:0,00:00:00,00/00/0000,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
:0,00:00:00,00/00/0000,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
+GPSPVT:0,00:00:00,00/00/0000,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
:0,00:00:00,00/00/0000,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
+GPSPVT:0,00:00:00,00/00/0000,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
:0,00:00:00,00/00/0000,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
+GPSPVT:0,00:00:00,00/00/0000,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
:0,00:00:00,00/00/0000,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
+GPSPVT:0,23:35:33,28/06/2012,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
:0,23:35:33,28/06/2012,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
+GPSPVT:0,23:35:34,28/06/2012,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
:0,23:35:34,28/06/2012,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
+GPSPVT:0,23:35:36,28/06/2012,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
:0,23:35:36,28/06/2012,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
+GPSPVT:0,23:35:37,28/06/2012,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
:0,23:35:37,28/06/2012,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
+GPSPVT:0,23:35:38,28/06/2012,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
:0,23:35:38,28/06/2012,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
+GPSPVT:0,23:35:40,28/06/2012,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
:0,23:35:40,28/06/2012,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
+GPSPVT:0,23:35:41,28/06/2012,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
:0,23:35:41,28/06/2012,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
+GPSPVT:0,23:35:42,28/06/2012,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
:0,23:35:42,28/06/2012,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
+GPSPVT:0,23:35:43,28/06/2012,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
:0,23:35:43,28/06/2012,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
+GPSPVT:0,23:35:44,28/06/2012,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
:0,23:35:44,28/06/2012,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
+GPSPVT:0,23:35:46,28/06/2012,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
:0,23:35:46,28/06/2012,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
+GPSPVT:0,23:35:46,28/06/2012,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
:0,23:35:46,28/06/2012,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
+GPSPVT:0,23:35:48,28/06/2012,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
:0,23:35:48,28/06/2012,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
+GPSPVT:0,23:35:49,28/06/2012,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
:0,23:35:49,28/06/2012,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
+GPSPVT:0,23:35:50,10/11/2016,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
:0,23:35:50,10/11/2016,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
+GPSPVT:0,23:35:51,10/11/2016,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
:0,23:35:51,10/11/2016,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
+GPSPVT:0,23:35:53,10/11/2016,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
:0,23:35:53,10/11/2016,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
+GPSPVT:0,23:35:54,10/11/2016,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
:0,23:35:54,10/11/2016,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
+GPSPVT:0,23:35:55,10/11/2016,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
:0,23:35:55,10/11/2016,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
+GPSPVT:0,23:35:57,10/11/2016,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
:0,23:35:57,10/11/2016,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
+GPSPVT:0,23:35:58,10/11/2016,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
:0,23:35:58,10/11/2016,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
+GPSPVT:0,23:36:00,10/11/2016,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
:0,23:36:00,10/11/2016,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
+GPSPVT:0,23:36:01,10/11/2016,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
:0,23:36:01,10/11/2016,NO FIX,N 000 00'00.00",E 000 00'00.00",+0000m
+GPSEVPOS: 2
+GPSPVT:0,23:36:03,10/11/2016,2D FIX,N 045 27'44.44",W 122 47'57.43",+0019m
:0,23:36:03,10/11/2016,2D FIX,N 045 27'44.44",W 122 47'57.43",+0019m
+GPSPVT:0,23:36:04,10/11/2016,2D FIX,N 045 27'44.44",W 122 47'57.43",+0019m
:0,23:36:04,10/11/2016,2D FIX,N 045 27'44.44",W 122 47'57.43",+0019m
+GPSPVT:0,23:36:06,10/11/2016,2D FIX,N 045 27'44.47",W 122 47'56.96",+0019m
:0,23:36:06,10/11/2016,2D FIX,N 045 27'44.47",W 122 47'56.96",+0019m
+GPSPVT:0,23:36:07,10/11/2016,2D FIX,N 045 27'44.59",W 122 47'57.73",+0019m
:0,23:36:07,10/11/2016,2D FIX,N 045 27'44.59",W 122 47'57.73",+0019m
+GPSPVT:0,23:36:08,10/11/2016,2D FIX,N 045 27'44.47",W 122 47'56.85",+0019m
:0,23:36:08,10/11/2016,2D FIX,N 045 27'44.47",W 122 47'56.85",+0019m
+GPSPVT:0,23:36:10,10/11/2016,2D FIX,N 045 27'44.57",W 122 47'57.35",+0019m
:0,23:36:10,10/11/2016,2D FIX,N 045 27'44.57",W 122 47'57.35",+0019m
+GPSPVT:0,23:36:12,10/11/2016,2D FIX,N 045 27'44.21",W 122 47'56.69",+0019m
:0,23:36:12,10/11/2016,2D FIX,N 045 27'44.21",W 122 47'56.69",+0019m
+GPSPVT:0,23:36:13,10/11/2016,2D FIX,N 045 27'44.50",W 122 47'57.29",+0019m
:0,23:36:13,10/11/2016,2D FIX,N 045 27'44.50",W 122 47'57.29",+0019m
+GPSPVT:0,23:36:15,10/11/2016,2D FIX,N 045 27'44.55",W 122 47'57.76",+0019m
:0,23:36:15,10/11/2016,2D FIX,N 045 27'44.55",W 122 47'57.76",+0019m
Thanks,
Todd