MC7304 - Couldn't enable GPS

Hi,
I’ve bought some MC7304 modems, and with one off them I’ve a problem enabling GPS data gathering. I’m using ModemManger 1.6.2 which uses (QMI) over usb.

mmcli -m 0 --location-enable-gps-nmea --location-enable-gps-raw

error: couldn’t setup location gathering: ‘GDBus.Error:org.freedesktop.libqmi.Error.Protocol.Disabled: Couldn’t enable location ‘gps-raw’ gathering: Couldn’t set auto-tracking state: QMI protocol error (69): ‘Disabled’’

mmcli -m 0 --location-enable-gps-nmea

error: couldn’t setup location gathering: ‘GDBus.Error:org.freedesktop.libqmi.Error.Protocol.Disabled: Couldn’t enable location ‘gps-nmea’ gathering: Couldn’t set auto-tracking state: QMI protocol error (69): ‘Disabled’’

What’s wrong?

Could you go into the AT command port (usually /dev/ttyUSB2) with mincom and send the below commands?

ati
at!custom?

and send the response back?

Regards

Matt

Here’s the response: I intentionally removed the FULL IMEI.
What i’ve discovered after running this command on diffrent modems i have is diffrent answer +GCAP,
On modems which work fine the answer is:
+GCAP: +CGSM,+DS,+ES

ATI
Manufacturer: Sierra Wireless, Incorporated
Model: MC7304
Revision: SWI9X15C_05.05.58.00 r27038 carmd-fwbuild1 2015/03/04 21:30:23
IMEI: 35685305222XXXX
IMEI SV: 18
FSN: J3612206330210
+GCAP: +CGSM,+FCLASS,+DS

OK
AT!CUSTOM?
!CUSTOM:
GPIOSARENABLE 0x01
GPSLPM 0x01
NMEAENABLE 0x01
GOBIIMEN 0x01
USBSERIALENABLE 0x02

OK

Execute the following AT commands:

AT!ENTERCND="A710"
AT!CUSTOM="GPSENABLE",1

Thanks for your reply,
I’ve enabled gps, and it gave Ok status.
But modem doesn’t send any NMEA data nor shows location-position. Is it possible, that there’s no GPS modem in MC7304? Or there’s sth more to configure?

AT!GPSSTATUS?
Current time: 2016 11 07 0 13:26:18

2016 11 07 0 13:25:10 Last Fix Status = FAIL, FAILCODE = 43947
2016 11 07 0 13:25:10 Fix Session Status = FAIL, FAILCODE = 43947

No TTFF available

OK

ATI
Manufacturer: Sierra Wireless, Incorporated
Model: MC7304
Revision: SWI9X15C_05.05.58.00 r27038 carmd-fwbuild1 2015/03/04 21:30:23
IMEI: 356853052224435
IMEI SV: 18
FSN: J3612206330210
+GCAP: +CGSM,+DS,+ES

OK
AT!CUSTOM?
!CUSTOM:
GPIOSARENABLE 0x01
GPSENABLE 0x01
GPSLPM 0x01
NMEAENABLE 0x01
GOBIIMEN 0x01
USBSERIALENABLE 0x02

OK

Now I have ErrCode=17, when i try to enable GPS:

AT!ENTERCND="A710"
OK
AT!CUSTOM="GPSENABLE",1
OK
AT!CUSTOM="GPSSEL",0
OK
AT!GPSSTATUS?
Current time: 2016 11 08 1 06:18:08

2016 11 07 0 13:25:10 Last Fix Status    = FAIL,  FAILCODE = 43947
2016 11 07 0 13:25:10 Fix Session Status = FAIL,  FAILCODE = 43947

No TTFF available


OK
AT!GRESET
OK
AT!GPSSTATUS?
Current time: 2016 11 08 1 06:26:51

2016 11 08 1 06:26:51 Last Fix Status    = NONE
2016 11 08 1 06:26:51 Fix Session Status = NONE

No TTFF available


OK
AT!ENTERCND="A710"
OK
AT!GPSTRACK=1,255,1000,30,1
ErrCode = 17

OK

AT!GPSAUTOSTART=1,1,180,100,1
OK
AT!GPSSTATUS?
Current time: 2016 11 08 1 06:31:05

2016 11 08 1 06:31:05 Last Fix Status    = NONE
2016 11 08 1 06:31:05 Fix Session Status = NONE

No TTFF available

AT!GRESET
OK
AT!GPSSTATUS?
Current time: 2016 11 08 1 06:31:05

2016 11 08 1 06:31:05 Last Fix Status    = NONE
2016 11 08 1 06:31:05 Fix Session Status = NONE

No TTFF available


OK

AT!GPSSTATUS?
Current time: 2016 11 08 1 06:35:04

2016 11 08 1 06:35:04 Last Fix Status    = NONE
2016 11 08 1 06:35:04 Fix Session Status = NONE

No TTFF available


OK
AT!ENTERCND="A710"
AT!CUSTOM?
!CUSTOM:
            GPIOSARENABLE       0x01
            GPSENABLE           0x01
            GPSLPM              0x01
            NMEAENABLE          0x01
            GOBIIMEN            0x01
            USBSERIALENABLE     0x02


OK
AT!GPSSTATUS?
Current time: 2016 11 08 1 06:36:35

2016 11 08 1 06:36:35 Last Fix Status    = NONE
2016 11 08 1 06:36:35 Fix Session Status = NONE

No TTFF available


OK


AT!GPSTRACK=1,255,1000,1000,1
ErrCode = 17

OK
AT!GPSSTATUS?
Current time: 2016 11 08 1 06:43:51

2016 11 08 1 06:43:51 Last Fix Status    = NONE
2016 11 08 1 06:43:51 Fix Session Status = NONE

No TTFF available


OK

First of all, check if your module is not in LPM:

AT!PCINFO?

Or simply set GPSLPM customization variable to 0:

AT!ENTERCND="A710"
AT!CUSTOM="GPSLPM",0

Second step is to setup GNSS subsystem working mode. More clear, to enable the set of available modes. I’d suggest you to enable, for the first time, all of supported modes (according to documentation), i.e.

AT!GPSPOSMODE=7F

Next step is to select a proper GNSS antenna connector. If you have an active antenna, you should connect it to dedicated “GPS” connector and enable antenna power supply with

AT+WANT=1

For passive antenna, connected to “GPS”, power supply, of course, should be disabled:

AT+WANT=0

But if you choose a combined, shared DRX/GNSS antenna and “AUX” connector, you have to switch GNSS RF path with

AT!ENTERCND="A710"
AT!CUSTOM="GPSSEL",1

Thank You so much! Now my GPS is enabled and works perfectly:)

Dumb question - how do i get to the AT command port from Terminal

Thanks

@marcus.riley

So you need to use a terminal program such as minicom, microcom, etc to open up to to it.

Regards

Matt

Ok i have got that far now, but i get no reply from those commands.
I have enabled local echo

@gglowack

So it looks like GPS is enabled. I would send the below

at!gpsstatus?
at!gpsfix=1,255,1
at!gpsstatus?

This will tell you if the GPS is now running then you can focus on the mmicli starting it.

Regards

Matt