<div dir="ltr"><div><div><div>Ok I found new udev rules for my modem:<br>ACTION!="add|change", GOTO="mbim_to_qmi_rules_end"<br>SUBSYSTEM!="usb|drivers", GOTO="mbim_to_qmi_rules_end"<br><br># load qmi_wwan module<br>SUBSYSTEM=="usb", \<br>ATTR{idVendor}=="413c", ATTR{idProduct}=="81a31", \<br>RUN+="/sbin/modprobe -b qmi_wwan"<br><br># force Dell WWAN 5809e to configuration #1<br>SUBSYSTEM=="usb", \<br>ATTR{idVendor}=="413c", ATTR{idProduct}=="81a3", \<br>ATTR{bConfigurationValue}="1"<br><br># add the new id in the qmi_wwan driver<br>SUBSYSTEM=="drivers", \<br>ENV{DEVPATH}=="/bus/usb/drivers/qmi_wwan", \<br>ATTR{new_id}="413c 81a3"<br><br># load qcserial module<br>SUBSYSTEM=="usb", \<br>ATTR{idVendor}=="413c", ATTR{idProduct}=="81b1", \<br>RUN+="/sbin/modprobe -b qcserial"<br><br># add the new id in the qcserial driver<br>SUBSYSTEM=="drivers", \<br>ENV{DEVPATH}=="/bus/usb-serial/drivers/qcserial", \<br>ATTR{new_id}="413c 81a3"<br><br>LABEL="mbim_to_qmi_rules_end"<br><br></div>Now I have both, ttyUSB* and /dev/cdc-wdm0, but modem still won't register to network.<br><br></div>Regards<br></div>Bartosz Nitkiewicz<br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-07-13 20:37 GMT+02:00 Bartosz Nitkiewicz <span dir="ltr"><<a href="mailto:bartosz@nitkiewicz.eu" target="_blank">bartosz@nitkiewicz.eu</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">No. There is /dev/cdc-wdm0 on boot, but after a while it disappears.<br><br></div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">2015-07-13 19:57 GMT+02:00 Dan Williams <span dir="ltr"><<a href="mailto:dcbw@redhat.com" target="_blank">dcbw@redhat.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On Mon, 2015-07-13 at 19:46 +0200, Bartosz Nitkiewicz wrote:<br>
> Ok. I have almost working modem. It won't register to network. Power state<br>
> is always on:<br>
><br>
> /org/freedesktop/ModemManager1/Modem/0 (device id<br>
> '1ae86b07c8ac5ac1ce60dfa8021538c140b92646')<br>
> -------------------------<br>
> Hardware | manufacturer: 'Sierra Wireless, Incorporated'<br>
> | model: 'MC8805'<br>
> | revision: 'SWI9X15C_05.05.47.00 r24787 carmd-fwbuild1<br>
> 2014/09/25 08:39:40'<br>
> | supported: 'gsm-umts, lte'<br>
> | current: 'gsm-umts, lte'<br>
> | equipment id: '355605050324851'<br>
> -------------------------<br>
> System | device: '/sys/devices/pci0000:00/0000:00:14.0/usb2/2-7'<br>
> | drivers: 'qcserial'<br>
> | plugin: 'Gobi'<br>
> | primary port: 'ttyUSB2'<br>
> | ports: 'ttyUSB0 (qcdm), ttyUSB2 (at)'<br>
<br>
</span>This shows that the modem isn't actually using QMI, but the very, very<br>
limited AT-based "Gobi" plugin. I doubt that would really work... Do<br>
you have a /dev/cdc-wdm0 device at all?<br>
<span><font color="#888888"><br>
Dan<br>
</font></span><div><div><br>
> -------------------------<br>
> Numbers | own : '<a href="tel:%2B48666459757" value="+48666459757" target="_blank">+48666459757</a>'<br>
> -------------------------<br>
> Status | lock: 'none'<br>
> | unlock retries: 'unknown'<br>
> | state: 'enabled'<br>
> | power state: 'on'<br>
> | access tech: 'unknown'<br>
> | signal quality: '0' (cached)<br>
> -------------------------<br>
> Modes | supported: 'allowed: 2g, 3g, 4g; preferred: none'<br>
> | current: 'allowed: 2g, 3g, 4g; preferred: none'<br>
> -------------------------<br>
> Bands | supported: 'unknown'<br>
> | current: 'unknown'<br>
> -------------------------<br>
> IP | supported: 'ipv4, ipv6, ipv4v6'<br>
> -------------------------<br>
> 3GPP | imei: '355605050324851'<br>
> | enabled locks: 'none'<br>
> | operator id: 'unknown'<br>
> | operator name: 'unknown'<br>
> | subscription: 'unknown'<br>
> | registration: 'idle'<br>
> -------------------------<br>
> SIM | path: '/org/freedesktop/ModemManager1/SIM/0'<br>
><br>
> -------------------------<br>
> Bearers | paths: 'none'<br>
><br>
> When I try to;<br>
> mmcli -m 0 --simple-connect="apn=intenet"<br>
><br>
> I have error: couldn't connect the modem: 'Timeout was reached'<br>
><br>
> Any hint<br>
><br>
> 2015-07-11 20:16 GMT+02:00 Bjørn Mork <<a href="mailto:bjorn@mork.no" target="_blank">bjorn@mork.no</a>>:<br>
><br>
> > I'm semi-offline at the moment, having only occasional gsm edge access...<br>
> > And I see that the post I was thinking of only contains the least<br>
> > interesting part of the equation. It is focused on the (for me) new and<br>
> > exciting usb comp qmi messages.<br>
> ><br>
> > I do have more details on my laptop, but I won't have access to that for a<br>
> > few weeks.<br>
> ><br>
> > Anyway, here is a start (with a non obvious subject):<br>
> > <a href="http://lists.freedesktop.org/archives/libqmi-devel/2015-February/001104.html" rel="noreferrer" target="_blank">lists.freedesktop.org/archives/libqmi-devel/2015-February/001104.html</a><br>
> ><br>
> > Using the mbim service mentioned there to send the qmi fcc message<br>
> > Aleksander has documented in libqmi should make this modem work in mbim<br>
> > mode too.<br>
> ><br>
> > You might have more success than me googling.<br>
> ><br>
> ><br>
> > Bjørn<br>
> ><br>
> > On July 11, 2015 6:31:06 PM CEST, Bartosz Nitkiewicz <<br>
> > <a href="mailto:bartosz@nitkiewicz.eu" target="_blank">bartosz@nitkiewicz.eu</a>> wrote:<br>
> > >Very interesting. Could you paste a link? I don't know where to find<br>
> > >it.<br>
> > >This modem is very problematic. Working fine but after reboot not<br>
> > >working<br>
> > >at all. Another reboot and once again mm could "see" it...<br>
> > >10 lip 2015 7:40 PM "Bjørn Mork" <<a href="mailto:bjorn@mork.no" target="_blank">bjorn@mork.no</a>> napisał(a):<br>
> > ><br>
> > >> I'm pretty sure the fcc thing is possible with qmi embedded in mbim.<br>
> > >See<br>
> > >> my recent experments with the usb comp commands.<br>
> > >><br>
> > >> Testing it is pretty straight forward, since you only append your<br>
> > >prepared<br>
> > >> qmi messages to mbim. Or seeing it the other way:prepend an mbim<br>
> > >header to<br>
> > >> qmi messages.<br>
> > >><br>
> > >> It would be interesting to know whether this is the method used by<br>
> > >> windows, or if there is some more direct mbim service/cid for this.<br>
> > >So if<br>
> > >> anyone can snoop..<br>
> > >><br>
> > >><br>
> > >><br>
> > >> Bjørn<br>
> > >><br>
> > >> On July 10, 2015 6:00:05 PM CEST, Aleksander Morgado <<br>
> > >> <a href="mailto:aleksander@aleksander.es" target="_blank">aleksander@aleksander.es</a>> wrote:<br>
> > >> >On Fri, Jul 10, 2015 at 11:28 AM, Bartosz Nitkiewicz<br>
> > >> ><<a href="mailto:bartosz@nitkiewicz.eu" target="_blank">bartosz@nitkiewicz.eu</a>> wrote:<br>
> > >> >> I have problem with my modem. It can't connect or enable.<br>
> > >> >><br>
> > >> >> mmcli -m 0<br>
> > >> >><br>
> > >> >> /org/freedesktop/ModemManager1/Modem/0 (device id<br>
> > >> >> '5c7d03243a4f66003876aab95834e2bbb9ca67ca')<br>
> > >> >> -------------------------<br>
> > >> >> Hardware | manufacturer: 'Dell'<br>
> > >> >> | model: 'MBIM [413C:81A3]'<br>
> > >> >> | revision: 'SWI9X15C_05.05.47.00'<br>
> > >> >> | supported: 'gsm-umts'<br>
> > >> >> | current: 'gsm-umts'<br>
> > >> >> | equipment id: '355605050324851'<br>
> > >> >> -------------------------<br>
> > >> >> System | device:<br>
> > >> >'/sys/devices/pci0000:00/0000:00:14.0/usb2/2-7'<br>
> > >> >> | drivers: 'cdc_mbim'<br>
> > >> >> | plugin: 'Dell'<br>
> > >> >> | primary port: 'cdc-wdm1'<br>
> > >> >> | ports: 'wwp0s20u7c2i12 (net), cdc-wdm1<br>
> > >(mbim)'<br>
> > >> >> -------------------------<br>
> > >> >> Numbers | own : '48666459757'<br>
> > >> >> -------------------------<br>
> > >> >> Status | lock: 'none'<br>
> > >> >> | unlock retries: 'sim-pin2 (3)'<br>
> > >> >> | state: 'disabled'<br>
> > >> >> | power state: 'low'<br>
> > >> >> | access tech: 'unknown'<br>
> > >> >> | signal quality: '0' (cached)<br>
> > >> >> -------------------------<br>
> > >> >> Modes | supported: 'allowed: 2g, 3g; preferred: none'<br>
> > >> >> | current: 'allowed: 2g, 3g; preferred: none'<br>
> > >> >> -------------------------<br>
> > >> >> Bands | supported: 'unknown'<br>
> > >> >> | current: 'unknown'<br>
> > >> >> -------------------------<br>
> > >> >> IP | supported: 'ipv4, ipv6, ipv4v6'<br>
> > >> >> -------------------------<br>
> > >> >> 3GPP | imei: '355605050324851'<br>
> > >> >> | enabled locks: 'fixed-dialing'<br>
> > >> >> | operator id: 'unknown'<br>
> > >> >> | operator name: 'unknown'<br>
> > >> >> | subscription: 'unknown'<br>
> > >> >> | registration: 'unknown'<br>
> > >> >> -------------------------<br>
> > >> >> SIM | path:<br>
> > >'/org/freedesktop/ModemManager1/SIM/0'<br>
> > >> >><br>
> > >> >> -------------------------<br>
> > >> >> Bearers | paths: 'none'<br>
> > >> >><br>
> > >> >><br>
> > >> >><br>
> > >> >> mmcli -m 0 --enable<br>
> > >> >> error: couldn't enable the modem:<br>
> > >> >> 'GDBus.Error:org.freedesktop.libmbim.Error.Status.Failure:<br>
> > >Failure'<br>
> > >> >><br>
> > >> >> I found this<br>
> > >> >><br>
> > >> ><br>
> > >><br>
> > ><br>
> > <a href="https://sigquit.wordpress.com/2015/02/09/dell-branded-sierra-wireless-3g4g-modem-not-online/" rel="noreferrer" target="_blank">https://sigquit.wordpress.com/2015/02/09/dell-branded-sierra-wireless-3g4g-modem-not-online/</a><br>
> > >> >> They said that it should be set to Mode: online. I can't do<br>
> > >anything<br>
> > >> >with it<br>
> > >> >> while modemmanager deamon is started. When I manualy stop it I<br>
> > >get:<br>
> > >> >><br>
> > >> >> sudo qmicli -d /dev/cdc-wdm1 --dms-get-operating-mode<br>
> > >> >> [10 Jul 2015, 11:27:27] -Warning ** [/dev/cdc-wdm1] QMI framing<br>
> > >error<br>
> > >> >> detected<br>
> > >> >> error: couldn't create client for the 'dms' service: CID<br>
> > >allocation<br>
> > >> >failed<br>
> > >> >> in the CTL client: Transaction timed out<br>
> > >> ><br>
> > >> >Your modem is using MBIM, not QMI, so you won't be able to use<br>
> > >qmicli.<br>
> > >> >I don't know yet how to do the FCC auth thing in MBIM; maybe it's<br>
> > >> >possible through QMI embedded in MBIM but didn't really test that<br>
> > >yet.<br>
> > >> >You could try to use usb_modeswitch to select USB configuration #1<br>
> > >in<br>
> > >> >the device, which should be QMI.<br>
> > >> ><br>
> > >> >--<br>
> > >> >Aleksander<br>
> > >> ><a href="https://aleksander.es" rel="noreferrer" target="_blank">https://aleksander.es</a><br>
> > >> >_______________________________________________<br>
> > >> >ModemManager-devel mailing list<br>
> > >> ><a href="mailto:ModemManager-devel@lists.freedesktop.org" target="_blank">ModemManager-devel@lists.freedesktop.org</a><br>
> > >> ><a href="http://lists.freedesktop.org/mailman/listinfo/modemmanager-devel" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/modemmanager-devel</a><br>
> > >><br>
> > >><br>
> ><br>
> ><br>
><br>
><br>
> _______________________________________________<br>
> ModemManager-devel mailing list<br>
> <a href="mailto:ModemManager-devel@lists.freedesktop.org" target="_blank">ModemManager-devel@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/modemmanager-devel" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/modemmanager-devel</a><br>
<br>
<br>
</div></div></blockquote></div><br><br clear="all"><br></div></div><span class="HOEnZb"><font color="#888888">-- <br><div><div dir="ltr">Bartosz Nitkiewicz<br></div></div>
</font></span></div>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr">Bartosz Nitkiewicz<br></div></div>
</div>