GPS compatible modems.

Yegor Yefremov yegorslists at googlemail.com
Thu Nov 27 13:52:20 PST 2014


On Thu, Nov 27, 2014 at 10:49 PM, Marc Murphy <marcmltd at marcm.co.uk> wrote:
> I tried that before and it fails;
>
> # mmcli -m 0 --location-enable-gps-nmea --location-enable-gps-raw
> error: couldn't setup location gathering: 'GDBus.Error:org.freedesktop.ModemManager1.Error.Core.Unsupported: Cannot enable unsupported location sources: 'gps-raw, gps-nmea''
>
> I get that on all the modems.
>
> Marc
>
> -----Original Message-----
> From: Yegor Yefremov [mailto:yegorslists at googlemail.com]
> Sent: 27 November 2014 21:45
> To: Marc Murphy
> Cc: modemmanager-devel at lists.freedesktop.org
> Subject: Re: GPS compatible modems.
>
> On Thu, Nov 27, 2014 at 10:32 PM, Marc Murphy <marcmltd at marcm.co.uk> wrote:
>> I am using a BeagleBlack based platform and when I use the AT commands for MC8705 I have no problem getting a fix just cant do anything with MM.
>>
>> I think I am doing it right;
>>
>> # mmcli -L
>>
>> Found 1 modems:
>>         /org/freedesktop/ModemManager1/Modem/0 [Sierra Wireless, Incorporated] MC8705
>>
>> # mmcli -m 0 -e
>> successfully enabled the modem
>>
>> # mmcli -m 0 --location-status
>>
>> /org/freedesktop/ModemManager1/Modem/0
>>   ----------------------------
>>   Location | capabilities: '3gpp-lac-ci'
>>            |      enabled: '3gpp-lac-ci'
>>            |      signals: 'no'
>>
>> # mmcli -m 0 --location-get
>>
>> /org/freedesktop/ModemManager1/Modem/0
>>   -------------------------
>>   3GPP location   | Mobile country code: '234'
>>                   | Mobile network code: '30'
>>                   |  Location area code: '2089'
>>                   |             Cell ID: '27516'
>>   -------------------------
>>   GPS NMEA traces | Not available
>>   -------------------------
>>   Raw GPS         | Not available
>>   -------------------------
>>   CDMA BS         | Not available
>
> You are missing following commands:
>
> --location-enable-gps-nmea
> --location-enable-gps-raw
>
>> I should be able to enable the NEMA as I can via AT and my own app.
>
> Now try mmcli -m 0 --location-get and you should get your coordinates.
>
> Yegor

I don't know, if it matters, but what Linux distro do you use and what
kernel version? I have the latest Buildroot and kernel 3.15 and 3.18
both working as expected with MC7304. I'll post my output as soon as
I'm in office.

Yegor


More information about the ModemManager-devel mailing list