Re: SIM7100E
Hi Aleksander, On Fri, Apr 8, 2016 at 1:08 PM, Aleksander Morgadowrote: > On Wed, Apr 6, 2016 at 4:54 PM, Dan Williams wrote: >> >>> What do you guys think? I believe the Telit plugin has the same >>> 'issue', it doesn't explicitly support QMI and falls back to the >>> generic plugin for the LN920. >> >> Plugin-specific handling for QMI/MBIM is fine with me. I can't get to >> that patch before next week though. > > Will try to add it this weekend myself, will let you know. Could you make any progress? Yegor ___ ModemManager-devel mailing list ModemManager-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel
Re: SIM7100E
On Wed, Apr 6, 2016 at 4:54 PM, Dan Williamswrote: > >> What do you guys think? I believe the Telit plugin has the same >> 'issue', it doesn't explicitly support QMI and falls back to the >> generic plugin for the LN920. > > Plugin-specific handling for QMI/MBIM is fine with me. I can't get to > that patch before next week though. Will try to add it this weekend myself, will let you know. -- Aleksander https://aleksander.es ___ ModemManager-devel mailing list ModemManager-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel
Re: SIM7100E
On Wed, Apr 6, 2016 at 9:01 AM, Yegor Yefremov <yegorsli...@googlemail.com> wrote: >>> I have a problem with SIM7100E. Though kernel creates wwan0 device, >>> it >>> is not visible in ModemManager. >> >> Try the following patch if you can; also ensure you are building >> ModemManager with QMI support (which is the default). Basically, we've >> never seen a QMI SimTech device before, and the SimTech plugin is only >> built to work with PPP-style devices. So it may work but just not use >> the wwan0 port. This patch will move your device to the generic QMI >> plugin: >> >> diff --git a/plugins/simtech/mm-plugin-simtech.c >> b/plugins/simtech/mm-plugin-simtech.c >> index a38942d..941e2db 100644 >> --- a/plugins/simtech/mm-plugin-simtech.c >> +++ b/plugins/simtech/mm-plugin-simtech.c >> @@ -113,6 +113,7 @@ mm_plugin_create (void) >> static const gchar *subsystems[] = { "tty", NULL }; >> static const guint16 vendor_ids[] = { 0x1e0e, /* A-Link (for now) */ >>0 }; >> +static const gchar *forbidden_drivers[] = { "qmi_wwan", "cdc_mbim", >> NULL }; >> >> return MM_PLUGIN ( >> g_object_new (MM_TYPE_PLUGIN_SIMTECH, >> @@ -121,6 +122,7 @@ mm_plugin_create (void) >>MM_PLUGIN_ALLOWED_VENDOR_IDS, vendor_ids, >>MM_PLUGIN_ALLOWED_AT, TRUE, >>MM_PLUGIN_ALLOWED_QCDM, TRUE, >> + MM_PLUGIN_FORBIDDEN_DRIVERS, forbidden_drivers, >>NULL)); >> } > > Thanks for the fix. Everything is working as expected. Tested with > SIM5360E and SIM7100E. > > Will this change be included into upcoming 1.6.0 release? I was targeting to have the vendor-specific plugins provide QMI support themselves, instead of always falling back to the generic plugin looking for QMI support. The main reasoning is that the probing will be quicker if there's a VID-based filter that grabs the plugin right away, instead of falling back to generic, which among other things may try the vendor/product string probing, which is slower. Not sure if this idea is good or bad, but I think it makes sense. What do you guys think? I believe the Telit plugin has the same 'issue', it doesn't explicitly support QMI and falls back to the generic plugin for the LN920. -- Aleksander https://aleksander.es ___ ModemManager-devel mailing list ModemManager-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel
Re: SIM7100E
On Tue, 2016-04-05 at 10:56 +0200, Yegor Yefremov wrote: > I have a problem with SIM7100E. Though kernel creates wwan0 device, > it > is not visible in ModemManager. Try the following patch if you can; also ensure you are building ModemManager with QMI support (which is the default). Basically, we've never seen a QMI SimTech device before, and the SimTech plugin is only built to work with PPP-style devices. So it may work but just not use the wwan0 port. This patch will move your device to the generic QMI plugin: diff --git a/plugins/simtech/mm-plugin-simtech.c b/plugins/simtech/mm-plugin-simtech.c index a38942d..941e2db 100644 --- a/plugins/simtech/mm-plugin-simtech.c +++ b/plugins/simtech/mm-plugin-simtech.c @@ -113,6 +113,7 @@ mm_plugin_create (void) static const gchar *subsystems[] = { "tty", NULL }; static const guint16 vendor_ids[] = { 0x1e0e, /* A-Link (for now) */ 0 }; +static const gchar *forbidden_drivers[] = { "qmi_wwan", "cdc_mbim", NULL }; return MM_PLUGIN ( g_object_new (MM_TYPE_PLUGIN_SIMTECH, @@ -121,6 +122,7 @@ mm_plugin_create (void) MM_PLUGIN_ALLOWED_VENDOR_IDS, vendor_ids, MM_PLUGIN_ALLOWED_AT, TRUE, MM_PLUGIN_ALLOWED_QCDM, TRUE, + MM_PLUGIN_FORBIDDEN_DRIVERS, forbidden_drivers, NULL)); } Dan > # mmcli -m 5 > > /org/freedesktop/ModemManager1/Modem/5 (device id > '3c942a37f458697974838e1226b26ded4c5644d6') > - > Hardware | manufacturer: 'SIMCOM INCORPORATED' > | model: 'SIMCOM_SIM7100E' > | revision: '4534B03SIM7100E' > | supported: 'gsm-umts, lte' > |current: 'gsm-umts, lte' > | equipment id: '866802020078228' > - > System | device: > '/sys/devices/platform/4400.ocp/4a064000.usbhshost/4a064c00.ehci/ > usb1/1-1/1-1.2' > |drivers: 'qmi_wwan, option1' > | plugin: 'SimTech' > | primary port: 'ttyUSB2' > | ports: 'ttyUSB0 (qcdm), ttyUSB2 (at), ttyUSB3 > (at)' > - > Numbers | own : '+491781364987' > - > Status | lock: 'none' > | unlock retries: 'unknown' > | state: 'disabled' > |power state: 'on' > |access tech: 'unknown' > | signal quality: '0' (cached) > - > Modes| supported: 'allowed: 2g; preferred: none > | allowed: 3g; preferred: none > | allowed: 2g, 3g; preferred: none > | allowed: 2g, 3g; preferred: 2g > | allowed: 2g, 3g; preferred: 3g > | allowed: 2g, 3g, 4g; preferred: none' > |current: 'allowed: any; preferred: none' > - > Bands| supported: 'unknown' > |current: 'unknown' > - > IP | supported: 'ipv4, ipv6, ipv4v6' > - > 3GPP | imei: '866802020078228' > | enabled locks: 'none' > |operator id: 'unknown' > | operator name: 'unknown' > | subscription: 'unknown' > | registration: 'unknown' > - > SIM | path: '/org/freedesktop/ModemManager1/SIM/2' > > - > Bearers | paths: 'none' > > If I unload option driver and restart MM, then it sees wwan0 > interface > and I can connect and get IP via DHCP. > > I've attached MM's debug log. > > This commit added SIM7100E [1] > > [1] https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/c > ommit/drivers/usb/serial/option.c?id=3158a8d416f4e1b79dcc867d67cb5001 > 3140772c > > Yegor > ___ > ModemManager-devel mailing list > ModemManager-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel ___ ModemManager-devel mailing list ModemManager-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel
SIM7100E
I have a problem with SIM7100E. Though kernel creates wwan0 device, it is not visible in ModemManager. # mmcli -m 5 /org/freedesktop/ModemManager1/Modem/5 (device id '3c942a37f458697974838e1226b26ded4c5644d6') - Hardware | manufacturer: 'SIMCOM INCORPORATED' | model: 'SIMCOM_SIM7100E' | revision: '4534B03SIM7100E' | supported: 'gsm-umts, lte' |current: 'gsm-umts, lte' | equipment id: '866802020078228' - System | device: '/sys/devices/platform/4400.ocp/4a064000.usbhshost/4a064c00.ehci/usb1/1-1/1-1.2' |drivers: 'qmi_wwan, option1' | plugin: 'SimTech' | primary port: 'ttyUSB2' | ports: 'ttyUSB0 (qcdm), ttyUSB2 (at), ttyUSB3 (at)' - Numbers | own : '+491781364987' - Status | lock: 'none' | unlock retries: 'unknown' | state: 'disabled' |power state: 'on' |access tech: 'unknown' | signal quality: '0' (cached) - Modes| supported: 'allowed: 2g; preferred: none | allowed: 3g; preferred: none | allowed: 2g, 3g; preferred: none | allowed: 2g, 3g; preferred: 2g | allowed: 2g, 3g; preferred: 3g | allowed: 2g, 3g, 4g; preferred: none' |current: 'allowed: any; preferred: none' - Bands| supported: 'unknown' |current: 'unknown' - IP | supported: 'ipv4, ipv6, ipv4v6' - 3GPP | imei: '866802020078228' | enabled locks: 'none' |operator id: 'unknown' | operator name: 'unknown' | subscription: 'unknown' | registration: 'unknown' - SIM | path: '/org/freedesktop/ModemManager1/SIM/2' - Bearers | paths: 'none' If I unload option driver and restart MM, then it sees wwan0 interface and I can connect and get IP via DHCP. I've attached MM's debug log. This commit added SIM7100E [1] [1] https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/drivers/usb/serial/option.c?id=3158a8d416f4e1b79dcc867d67cb50013140772c Yegor simcom7100e.log Description: Binary data ___ ModemManager-devel mailing list ModemManager-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel