ModemManager with Sierra EM7305 and GPS
Petr Kloc
petr_kloc at yahoo.com
Mon Jun 12 22:03:51 UTC 2017
Hi Dan
Thank you for the link. It allowed me to activate the NMEA port and to use my GPS capability. However I still need to find a way to activate the modem at the same time.
My device is Toshiba Z20T-C. I use the udev rules from https://wiki.archlinux.org/index.php/Toshiba_Portege_Z20t to switch the device configuration and to force-load the modules. Unfortunately I end up with either qcserial or qmi_wwan grabbing all the interfaces depending on the order specified in the .rules file. I have a feeling that is the root of the problem. Do you know, if qmi_wwan require AT command port to be accessible at the same time?
In an attachment you can find logs from ModemManager for qcserial an qmi_wwan respectively alongside the output of usb-devices.
Regards
Petr Kloc
--------------------------------------------
On Mon, 6/12/17, Dan Williams <dcbw at redhat.com> wrote:
Subject: Re: ModemManager with Sierra EM7305 and GPS
To: "Petr Kloc" <petr_kloc at yahoo.com>, modemmanager-devel at lists.freedesktop.org
Date: Monday, June 12, 2017, 8:27 PM
Yes, the MBIM standard does not define any kind of location API, so we are left with non-standard/proprietary mechanism when the modem supports MBIM. That could be via AT commands if the modem also exposes an AT port, or it could be that we have to reverse-engineer an MBIM proprietary device service.
Can you share ModemManager debug logs when the modem does not work correctly in this configuration? Assuming the modem is always connected, you can run ModemManager like so:
sudo ModemManager --debug &> /tmp/mm.log
and then attach mm.log to a reply (don't copy and paste into the mail, as that adds line breaks and makes it hard to read...).
If you want GPS, then a mode that includes QMI would be easiest for you. ModemManager will then read location details through QMI and provide those for you via the D-Bus interface, eg something like:
mmcli -m 0 --location-enable-gps-nmea
mmcli -m 0 --location-set-gps-refresh-rate=5 (refresh every 5 seconds)
mmcli -m 0 --location-get-gps-nmea (report NMEA traces)
Alternatively when you're in this mode, you may be able to use the NMEA port directly by doing what is suggested in:
http://www.thinkwiki.org/wiki/Qualcomm_Gobi_2000#GPS
Dan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mm_qcserial.log
Type: text/x-log
Size: 160224 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/modemmanager-devel/attachments/20170612/751429c6/attachment-0004.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: usb-devices_qcserial.log
Type: text/x-log
Size: 552 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/modemmanager-devel/attachments/20170612/751429c6/attachment-0005.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mm_qmi_wwan.log
Type: text/x-log
Size: 74719 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/modemmanager-devel/attachments/20170612/751429c6/attachment-0006.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: usb-devices_qmi_wwan.log
Type: text/x-log
Size: 552 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/modemmanager-devel/attachments/20170612/751429c6/attachment-0007.bin>
More information about the ModemManager-devel
mailing list