<div dir="ltr"><div>Thanks Dan! I was wondering if there exists a modem manager version that works on openwrt/embedded systems ? I will start another thread on that to keep things seperate.<br><br></div>Rgds,<br>Gopa.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 17, 2014 at 11:48 AM, Dan Williams <span dir="ltr"><<a href="mailto:dcbw@redhat.com" target="_blank">dcbw@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Wed, 2014-09-17 at 09:08 -0700, Gopakumar Choorakkot Edakkunni wrote:<br>
> Thanks again for the response Dan.<br>
><br>
> >> If you are connected to LTE and run out of LTE coverage but EVDO is<br>
> available, the data connection will simply terminate, the modem will<br>
> eventually register on EVDO, and you will need to manually re-start the<br>
> data connection.<br>
><br>
> From ModemManager code, I am assuming that reading the $NWQMISTATUS would<br>
> faithfully report such conditions ? Like if I keep polling for<br>
> $NWQMISTATUS, I would see status change from connected to not-connected<br>
> (whatever their equivalent values are) if this LTE-->EVDO change happens ?<br>
<br>
</span>Right, the "novatel-lte" plugin in ModemManager polls $NWQMISTATUS every<br>
5 seconds (because the modem doesn't report unsolicited $NWQMISTATUS I<br>
believe) and if it notices a disconnect it should indicate that to D-Bus<br>
clients by terminating the bearer. It's then up to the connection<br>
manager to apply some kind of policy and request a reconnection when the<br>
modem enters the REGISTERED state. But this plugin is only for the E362<br>
PCI-E minicard device, not the 551L.<br>
<br>
ModemManager drives the 551L with QMI, and since QMI is more completely<br>
implemented than the $NWQMI AT commands, network disconnections are<br>
indicated immediately via QMI instead of 5 seconds (worst case) with<br>
$NWQMI.<br>
<span class="HOEnZb"><font color="#888888"><br>
Dan<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
> Rgds,<br>
> Gopa.<br>
><br>
><br>
> On Wed, Sep 17, 2014 at 7:21 AM, Dan Williams <<a href="mailto:dcbw@redhat.com">dcbw@redhat.com</a>> wrote:<br>
><br>
> > On Tue, 2014-09-16 at 12:39 -0700, Gopakumar Choorakkot Edakkunni wrote:<br>
> > > Hi Dan,<br>
> > ><br>
> > > Thanks a lot for the response. So I guess my firmware is old, I will try<br>
> > > upgrading to see if it work with just QMI without needing any<br>
> > $NWQMICONNECT.<br>
> > ><br>
> > > >> If eHRPD is not available on the network or is not enabled in the<br>
> > modem,<br>
> > > then you'll have to disconnect to move between 3G and 4G.<br>
> > ><br>
> > > When you say "you'll have to disconnect", do you mean to say user<br>
> > > intervention is required - should the user click "reconnect" on the modem<br>
> > > manager etc.. ? Or will the modem firmware do that internally without any<br>
> > > user intervention required (yes, the user might see a connection getting<br>
> > > reset and re-established, but thats still better than user having to<br>
> > click<br>
> > > "reconnect")<br>
> ><br>
> > Again, this is all if eHRPD is not available in the network, or somehow<br>
> > not enabled/supported in the modem. eHRPD is the protocol that allows<br>
> > roaming between 3GPP2 (CDMA/EVDO) and 3GPP (LTE) RANs.<br>
> ><br>
> > So, if eHRPD is not available/working:<br>
> ><br>
> > If you are connected to EVDO, and LTE becomes available, the modem will<br>
> > *not* hand the data connection from EVDO to LTE. You must terminate the<br>
> > data connection manually, wait for the modem to up-register to LTE, and<br>
> > then manually re-start the data connection.<br>
> ><br>
> > If you are connected to LTE and run out of LTE coverage but EVDO is<br>
> > available, the data connection will simply terminate, the modem will<br>
> > eventually register on EVDO, and you will need to manually re-start the<br>
> > data connection.<br>
> ><br>
> > Verizon had this hand-off issue for quite a while after deploying their<br>
> > LTE network in 2011, though they seem to have largely solved it by 2013.<br>
> > However, some of these initial launch devices (of which the USB551L is<br>
> > one) may not have firmware updates that fix all eHRPD issues, because<br>
> > they are long since out of production and unfortunately the<br>
> > manufacturers don't really care about old hardware.<br>
> ><br>
> > On the user side, a connection manager/modem manager would usually<br>
> > handle the reconnection without user interaction if that policy was<br>
> > desired.<br>
> ><br>
> > > Also when in 3G mode, eventually the packet encapsulation is ppp / slip I<br>
> > > guess - so does the firmware inside the modem initiate the ppp/slip when<br>
> > in<br>
> > > 3G mode, because from linux side all we see is a wwan0 interface.<br>
> ><br>
> > AFAIK yes, that's basically what happens in the firmware. It<br>
> > decapsulates the IP packets from the over-the-air protocol (PPP for<br>
> > CDMA/EVDO, SNDCP for GPRS, IP for LTE) and re-encapsulates them into<br>
> > ethernet packets for the wwan0 interface.<br>
> ><br>
> > Dan<br>
> ><br>
> > > Rgds,<br>
> > > Gopa.<br>
> > ><br>
> > ><br>
> > > On Tue, Sep 16, 2014 at 11:47 AM, Dan Williams <<a href="mailto:dcbw@redhat.com">dcbw@redhat.com</a>> wrote:<br>
> > ><br>
> > > > On Mon, 2014-09-15 at 19:29 -0700, Gopakumar Choorakkot Edakkunni<br>
> > wrote:<br>
> > > > > Hi,<br>
> > > > ><br>
> > > > > First of all I tried that modem on my Ubuntu 14.04 with the<br>
> > modemmanager<br>
> > > > > GUI, I ask the GUI to scan for networks and it fails all the time.<br>
> > But<br>
> > > > > thats ok - my real requirement was to get it running on my openwrt<br>
> > box.<br>
> > > > > Plugged it in, saw that the option1 driver takes control of<br>
> > ttyUSB[0-3]<br>
> > > > and<br>
> > > > > qmi_wwan creates a wwan0 interface. After that running a dhcp client<br>
> > over<br>
> > > > > wwan0 dint come back with any IP, so reading through the modemmanager<br>
> > > > code,<br>
> > > > > I found that we have to send an AT+$NWQMICONNECT over ttyUSB0. I did<br>
> > that<br>
> > > > > and presto!, wwan0 gets an IP (thanks modemmanager developers !). A<br>
> > > > couple<br>
> > > > > of questions<br>
> > > ><br>
> > > > The device runs optimally with QMI, but does work with $NWQMICONNECT as<br>
> > > > a fallback. However, QMI works much better after the firmware update<br>
> > to<br>
> > > > 1.41.<br>
> > > ><br>
> > > > $NWQMICONNECT likely just calls the QMI WDS data session functions<br>
> > > > anyway. What you are probably missing is using qmicli or ModemManager<br>
> > > > to start the WDS data session with the QMI protocol, and *then* you can<br>
> > > > run DHCP on the network port. You cannot just run DHCP without first<br>
> > > > starting the data session via QMI or $NWQMICONNECT.<br>
> > > ><br>
> > > > > 1. Does anyone know "internally" what is the modem doing on getting<br>
> > an<br>
> > > > > AT+$NWQMICONNECT ? Does it start a ppp session if the available band<br>
> > is<br>
> > > > > only 3G ? Once started in 3G and later a 4G-LTE connection is<br>
> > available,<br>
> > > > > will the modem internally drop the ppp session and switch the IP on<br>
> > > > 4G-LTE<br>
> > > > > (and vice versa) ?<br>
> > > ><br>
> > > > Handoff between 3G and 4G is kinda dicey with these first-gen<br>
> > > > Qualcomm-based Verizon devices (USB551L, Pantech UML290). Part of the<br>
> > > > issue is eHRPD which is required for handoff between 3G and 4G. If<br>
> > > > eHRPD is not available on the network or is not enabled in the modem,<br>
> > > > then you'll have to disconnect to move between 3G and 4G.<br>
> > > ><br>
> > > > > 2. Other than the AT+$NWQMICONNECT, do we need to send anything else<br>
> > to<br>
> > > > the<br>
> > > > > modem to make it work using all available bands based on availability<br>
> > > > (3G /<br>
> > > > > 4G) or do we have to specify anything to force the modem to work in<br>
> > > > "these<br>
> > > > > specific modes" ? I dint find anything like that in the modem manager<br>
> > > > code,<br>
> > > > > just thought of asking anyways.<br>
> > > ><br>
> > > > If you've left the technology preference, system selection preference,<br>
> > > > and band preferences alone, then the modem will automatically search<br>
> > for<br>
> > > > and connect to the best available technology (eg, LTE) and network.<br>
> > But<br>
> > > > the device only supports one Verizon LTE band (eg, Band 13), so you're<br>
> > > > pretty limited on the LTE side.<br>
> > > ><br>
> > > > Dan<br>
> > > ><br>
> > > ><br>
> > > _______________________________________________<br>
> > > libqmi-devel mailing list<br>
> > > <a href="mailto:libqmi-devel@lists.freedesktop.org">libqmi-devel@lists.freedesktop.org</a><br>
> > > <a href="http://lists.freedesktop.org/mailman/listinfo/libqmi-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/libqmi-devel</a><br>
> ><br>
> ><br>
> ><br>
> _______________________________________________<br>
> libqmi-devel mailing list<br>
> <a href="mailto:libqmi-devel@lists.freedesktop.org">libqmi-devel@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/libqmi-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/libqmi-devel</a><br>
<br>
<br>
</div></div></blockquote></div><br></div>