DW5560 (Ericsson F5321) - GPS capability not available

Marek Sebera marek.sebera at gmail.com
Fri Aug 4 14:03:40 UTC 2017


Hey Aleksander,

thank you very much, this is correct solution, I've just tested.

After steps you recommended and enabling the modem:

# mmcli -m 0 --location-status

/org/freedesktop/ModemManager1/Modem/0
  ----------------------------
  Location |   capabilities: '3gpp-lac-ci, gps-raw, gps-nmea, gps-unmanaged'
           |        enabled: '3gpp-lac-ci'
           |        signals: 'no'
  ----------------------------
  GPS      |  refresh rate: '30'

# mmcli -m 0 --location-enable-gps-nmea
successfully setup location gathering

# mmcli -m 0 --location-enable-gps-raw
successfully setup location gathering

# mmcli -m 0 --location-status

/org/freedesktop/ModemManager1/Modem/0
  ----------------------------
  Location |   capabilities: '3gpp-lac-ci, gps-raw, gps-nmea, gps-unmanaged'
           |        enabled: '3gpp-lac-ci, gps-raw, gps-nmea'
           |        signals: 'no'
  ----------------------------
  GPS      |  refresh rate: '30'

# mmcli -m 0 --location-get

/org/freedesktop/ModemManager1/Modem/0
  -------------------------
  3GPP location   | Mobile country code: 'xxx'
                  | Mobile network code: 'xxx'
                  |  Location area code: 'xxxxx'
                  |             Cell ID: 'xxxxxxxx'
  -------------------------
  GPS NMEA traces | $GPGGA,,,,,,0,0,,,M,,,,*1B
                  | $GPGLL,,,,,000120.000,V,N*79
                  | $GPGST,000120.000,,,,0,,,*7A
                  | $GPGSV,1,1,00,,,,,,,,,,,,,,,,*79
                  | $GPGSA,A,1,,,,,,,,,,,,,,,*1E
                  | $GPRMC,000120.000,V,,,,,,,,,,N*4E
  -------------------------
  Raw GPS         | Not available
  -------------------------
  CDMA BS         | Not available

After changes in my distribution udev rules it looks like this:

-------
# Dell 5560
ATTRS{idVendor}=="413c", ATTRS{idProduct}=="818e",
ENV{ID_MM_ERICSSON_MBM}="1"

ATTRS{idVendor}=="413c", ATTRS{idProduct}=="818e",
ENV{.MM_USBIFNUM}=="09", ENV{ID_MM_ERICSSON_MBM_GPS_PORT}="1"
-----

Cheers!
MS

On 08/04/2017 03:00 PM, Aleksander Morgado wrote:
> Hey,
> 
>>
>> on Dell E6430 with DW5560 (Ericsson F5321) card installed, I can use
>> mmcli to correctly connect to the internet, it works pretty nice :)
>>
>> However I am not able to control modem GPS capabilities through MM.
>> Previously I enabled GPS NMEA stream through wvdial conf like this:
>>
>> [Dialer gps]
>> Modem = /dev/ttyACM0
>> Init1 = AT*E2GPSCTL=1,2,1
>> Init2 = AT*E2GPSNPD
>>
>> After I could read the stream on /dev/ttyACM0 and hook ie. gpsd to it.
>>
>> However mmcli does not show the GPS capabilities before or after running
>> this command (or running the wvdial gps and restarting/reruning-search
>> in mmcli), also I've tried to switch modes by "options cdc_ncm
>> prefer_mbim=N" (or =Y), without success.
>>
>> # mmcli -m 0 --location-status
>>
>> /org/freedesktop/ModemManager1/Modem/0
>>   ----------------------------
>>   Location |   capabilities: '3gpp-lac-ci'
>>            |        enabled: '3gpp-lac-ci'
>>            |        signals: 'no'
>>
>> Device is identified as "Bus 004 Device 003: ID 413c:818e Dell Computer
>> Corp." Revision (by mmcli -m 0) is "R3C11" (R3C11/R4D02 i suppose)
>> Partial device identification as follows:
>>
>> # mmcli -m 0
>>
>> /org/freedesktop/ModemManager1/Modem/0 (device id '--censored--')
>>   -------------------------
>>   Hardware |   manufacturer: 'Dell'
>>            |          model: 'DW5560'
>>            |       revision: 'R3C11'
>>            |      supported: 'gsm-umts'
>>            |        current: 'gsm-umts'
>>            |   equipment id: '--censored--'
>>   -------------------------
>>   System   |         device:
>> '/sys/devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.6'
>>            |        drivers: 'cdc_acm, cdc_ncm, cdc_wdm'
>>            |         plugin: 'Ericsson MBM'
>>            |   primary port: 'ttyACM1'
>>            |          ports: 'ttyACM1 (at), cdc-wdm0 (at), cdc-wdm1
>> (at), wwp0s29u1u6i6 (net), ttyACM2 (at), ttyACM0 (at)'
>>
>> Can you advise on how to get the gps capability shown and enabled?
>>
>> I'm using these versions of packages (Debian Stretch with sid aptitude
>> list):
>>
>> 1.18.0-2        libqmi-glib5:amd64
>> 1.18.0-2        libqmi-proxy
>> 1.18.0-2        libqmi-utils
>> 1.10.2-2        libqmi-glib1:amd64
>> 1.6.8-1         gir1.2-modemmanager-1.0:amd64
>> 1.6.8-1         modemmanager
>> 1.6.8-1         modemmanager-dev:amd64
>>
> 
> The 1.6.8 version should support GPS management as long as the GPS
> data port is flagged correctly via udev rules.
> 
> Try to edit this file and add the GPS_PORT rule (look for the 5560
> section and just add one line below)
> $ vim /lib/udev/rules.d/77-mm-ericsson-mbm.rules
>   # Dell 5560
>   ATTRS{idVendor}=="413c", ATTRS{idProduct}=="818e", ENV{ID_MM_ERICSSON_MBM}="1"
>   ATTRS{idVendor}=="413c", ATTRS{idProduct}=="818e",
> ENV{.MM_USBIFNUM}=="09", ENV{ID_MM_ERICSSON_MBM_GPS_PORT}="1"
> 
> Then:
> $ sudo udevadm control --reload
> $ sudo udevadm trigger
> And restart ModemManager
> 
> I have no idea if the "09" interface is the one for the GPS port, but
> all the other Dell modems seem to use that one.
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 851 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/modemmanager-devel/attachments/20170804/27d5db9a/attachment.sig>


More information about the ModemManager-devel mailing list