<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Bjorn,</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Thanks for the insights. I made a bit of progress on isolating the issue. It doesn't seem to be a problem with using a certain PDP context, but more on the Telit modem's activation of said context. I found that if
I set the Telit LE910 to 3G-only, it's able to connect just fine. However, if I enable LTE and the modem registers on the LTE network, it does some sort of auto-activation of the first PDP context, which then prevents ModemManager from using the connection.
I also switched to using a standard AT&T SIM instead of the customer's SIM just to eliminate the custom APN as an issue. Below are links to output and logs for two different connection attempts: one successful on 3G, the other failing on 4G. Notice the at+cgact
output when registered on 4G already had the first context activated, even though ModemManager hasn't initiated a connection with the Telit LE910 yet.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0"></p>
<div><span style="font-size: 12pt;">3G successful connection - <a href="https://paste.pound-python.org/show/pbKjL4Js3DWRUM9JkTux/" class="OWAAutoLink" id="LPlnk766451" previewremoved="true">https://paste.pound-python.org/show/pbKjL4Js3DWRUM9JkTux/</a></span></div>
<div></div>
<div><br>
</div>
<div>
<div># mmcli -L</div>
<div><br>
</div>
<div>Found 1 modems:</div>
<div> /org/freedesktop/ModemManager1/Modem/0 [Telit] MBIM [1BC7:0032]</div>
<div><br>
</div>
<div># mmcli -m 0</div>
<div><br>
</div>
<div>/org/freedesktop/ModemManager1/Modem/0 (device id '6e2428cafbad03b44f8a815cd9bd831057a34462')</div>
<div> -------------------------</div>
<div> Hardware | manufacturer: 'Telit'</div>
<div> | model: 'MBIM [1BC7:0032]'</div>
<div> | revision: '20.00.504'</div>
<div> | supported: 'gsm-umts, lte'</div>
<div> | current: 'gsm-umts, lte'</div>
<div> | equipment id: '358148060217853'</div>
<div> -------------------------</div>
<div> System | device: '/sys/devices/platform/soc/soc:internal-regs/d0051000.usb/usb2/2-1'</div>
<div> | drivers: 'cdc_acm, cdc_mbim'</div>
<div> | plugin: 'Telit'</div>
<div> | primary port: 'cdc-wdm0'</div>
<div> | ports: 'ttyACM3 (at), cdc-wdm0 (mbim), wwan0 (net), ttyACM0 (at)'</div>
<div> -------------------------</div>
<div> Numbers | own : '18135463248'</div>
<div> -------------------------</div>
<div> Status | lock: 'none'</div>
<div> | unlock retries: 'sim-pin2 (3)'</div>
<div> | state: 'disabled'</div>
<div> | power state: 'on'</div>
<div> | access tech: 'unknown'</div>
<div> | signal quality: '0' (cached)</div>
<div> -------------------------</div>
<div> Modes | supported: 'allowed: 2g, 3g, 4g; preferred: none'</div>
<div> | current: 'allowed: 2g, 3g, 4g; preferred: none'</div>
<div> -------------------------</div>
<div> Bands | supported: 'unknown'</div>
<div> | current: 'unknown'</div>
<div> -------------------------</div>
<div> IP | supported: 'ipv4, ipv6, ipv4v6'</div>
<div> -------------------------</div>
<div> 3GPP | imei: '358148060217853'</div>
<div> | enabled locks: 'fixed-dialing'</div>
<div> | operator id: 'unknown'</div>
<div> | operator name: 'unknown'</div>
<div> | subscription: 'unknown'</div>
<div> | registration: 'unknown'</div>
<div> -------------------------</div>
<div> SIM | path: '/org/freedesktop/ModemManager1/SIM/0'</div>
<div><br>
</div>
<div> -------------------------</div>
<div> Bearers | paths: 'none'</div>
<div><br>
</div>
<div># mmcli -m 0 -i 0</div>
<div>SIM '/org/freedesktop/ModemManager1/SIM/0'</div>
<div> -------------------------</div>
<div> Properties | imsi : '310410635065476'</div>
<div> | id : '89014103276350654767'</div>
<div> | operator id : '310410'</div>
<div> | operator name : 'AT&T'</div>
<div># mmcli -m 0 --command='+cgdcont?'</div>
<div>response: '+CGDCONT: 1,"IP","broadband","",0,0</div>
<div>+CGDCONT: 2,"IP","broadband","",0,0'</div>
<div># mmcli -m 0 --command='+cgact?'</div>
<div>response: '+CGACT: 1,0</div>
<div>+CGACT: 2,0'</div>
<div># mmcli -m 0 --command='#sgact?'</div>
<div>response: '#SGACT: 1,0</div>
<div>#SGACT: 2,0'</div>
<br>
</div>
<div><br>
</div>
<div><span style="font-size: 12pt;">4G failed connection - <a href="https://paste.pound-python.org/show/6p4KRxLDig1tpJm4AU16/" class="OWAAutoLink" id="LPlnk860594" previewremoved="true">
https://paste.pound-python.org/show/6p4KRxLDig1tpJm4AU16/</a></span><br>
</div>
<div><br>
</div>
<div>
<div># modem cli</div>
<div><br>
</div>
<div>/org/freedesktop/ModemManager1/Modem/0 (device id '6e2428cafbad03b44f8a815cd9bd831057a34462')</div>
<div> -------------------------</div>
<div> Hardware | manufacturer: 'Telit'</div>
<div> | model: 'MBIM [1BC7:0032]'</div>
<div> | revision: '20.00.504'</div>
<div> | supported: 'gsm-umts, lte'</div>
<div> | current: 'gsm-umts, lte'</div>
<div> | equipment id: '358148060217853'</div>
<div> -------------------------</div>
<div> System | device: '/sys/devices/platform/soc/soc:internal-regs/d0051000.usb/usb2/2-1'</div>
<div> | drivers: 'cdc_acm, cdc_mbim'</div>
<div> | plugin: 'Telit'</div>
<div> | primary port: 'cdc-wdm0'</div>
<div> | ports: 'ttyACM3 (at), cdc-wdm0 (mbim), wwan0 (net), ttyACM0 (at)'</div>
<div> -------------------------</div>
<div> Numbers | own : '18135463248'</div>
<div> -------------------------</div>
<div> Status | lock: 'none'</div>
<div> | unlock retries: 'sim-pin2 (3)'</div>
<div> | state: 'disabled'</div>
<div> | power state: 'on'</div>
<div> | access tech: 'unknown'</div>
<div> | signal quality: '0' (cached)</div>
<div> -------------------------</div>
<div> Modes | supported: 'allowed: 2g, 3g, 4g; preferred: none'</div>
<div> | current: 'allowed: 2g, 3g, 4g; preferred: none'</div>
<div> -------------------------</div>
<div> Bands | supported: 'unknown'</div>
<div> | current: 'unknown'</div>
<div> -------------------------</div>
<div> IP | supported: 'ipv4, ipv6, ipv4v6'</div>
<div> -------------------------</div>
<div> 3GPP | imei: '358148060217853'</div>
<div> | enabled locks: 'fixed-dialing'</div>
<div> | operator id: 'unknown'</div>
<div> | operator name: 'unknown'</div>
<div> | subscription: 'unknown'</div>
<div> | registration: 'unknown'</div>
<div> -------------------------</div>
<div> SIM | path: '/org/freedesktop/ModemManager1/SIM/0'</div>
<div><br>
</div>
<div> -------------------------</div>
<div> Bearers | paths: 'none'</div>
<div><br>
</div>
<div><span style="font-size: 12pt;"># modem cli -i 0</span><br>
</div>
<div>SIM '/org/freedesktop/ModemManager1/SIM/0'</div>
<div> -------------------------</div>
<div> Properties | imsi : '310410635065476'</div>
<div> | id : '89014103276350654767'</div>
<div> | operator id : '310410'</div>
<div> | operator name : 'AT&T'</div>
<div># modem at '+cgdcont?'</div>
<div>response: '+CGDCONT: 1,"IP","broadband","",0,0</div>
<div>+CGDCONT: 2,"IP","broadband","",0,0'</div>
<div># modem at '+ws46?'</div>
<div>response: '+WS46: 31'</div>
<div># modem at '+cgact?'</div>
<div>response: '+CGACT: 1,1</div>
<div>+CGACT: 2,0'</div>
<div># modem at '#sgact?'</div>
<div>response: '#SGACT: 1,0</div>
<div>#SGACT: 2,0'</div>
</div>
<div><br>
</div>
<br>
<p></p>
<p style="margin-top:0;margin-bottom:0">I've reached out to Telit support to see if they have any insight. From what I can tell from Telit's AT command documentation, this auto-activation on 4G seems intentional. Below is a note I pulled from Telit's AT command
docs concerning the at#sgact command.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0"><span>#SGACT - Context Activation</span><br>
</p>
<p style="margin-top:0;margin-bottom:0"><span style="font-size: 12pt;">Returns the state of all the contexts that have been defined</span><br>
</p>
<p style="margin-top:0;margin-bottom:0"><span></span></p>
<div><span style="font-size: 12pt;">#SGACT: <cid1>,<Stat1><CR><LF></span><br>
</div>
<div>...</div>
<div>#SGACT: <cid5>,<Stat5></div>
<div>where:</div>
<div><cidn> - as <cid> before</div>
<div><statn> - context status</div>
<div>0 - context deactivated</div>
<div>1 - context activated</div>
<p></p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0"></p>
<div>Note: In LTE network, default PDP context(cid 1) is activated by</div>
<div><span style="font-size: 12pt;">piggybacking on LTE attach procedure and maintained until detached from</span></div>
<div>NW. This command with cid 1 is just binding or unbinding application to the</div>
<div>default PDP context.</div>
<br>
<p></p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<div id="Signature">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: Calibri, Arial, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;">
<p><span style="font-size:12pt; background-color:white"></span></p>
<div style="margin-top:0; margin-bottom:0"><span style="color:rgb(33,33,33); font-family:Calibri,sans-serif; font-size:11pt">Nate Pleasant <br>
</span></div>
<div id="Signature">
<div id="divtagdefaultwrapper"><font face="Calibri,Arial,Helvetica,sans-serif">
<div id="divtagdefaultwrapper" style="font-family: Calibri, Arial, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;">
<font face="Calibri,Arial,Helvetica,sans-serif">
<p class="x_MsoNormal" style="font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols; font-size:16px">
<span style="color:rgb(31,73,125)"></span></p>
<p class="x_MsoNormal" style="font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols; font-size:16px">
</p>
<p class="x_MsoNormal" style="font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols; font-size:16px">
<span style="font-size:10pt"><i></i></span></p>
</font></div>
</font></div>
</div>
<p></p>
</div>
</div>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> David McCullough<br>
<b>Sent:</b> Thursday, January 25, 2018 8:39:00 AM<br>
<b>To:</b> Bjørn Mork<br>
<b>Cc:</b> Nate Pleasant; modemmanager-devel@lists.freedesktop.org<br>
<b>Subject:</b> Re: LE910 connection with custom APN on AT&T SIM</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText"><br>
Hi Bjørn,<br>
<br>
Comments below.<br>
<br>
Bjørn Mork wrote the following:<br>
> Nate Pleasant <nate.pleasant@accelerated.com> writes:<br>
> <br>
> > I have a Telit LE910 modem that ModemManager doesn't seem to be able<br>
> > to connect with when using an AT&T SIM card with a custom APN. See<br>
> > output and debug messages below for reference. If I connect this same<br>
> > SIM card with a Sierra MC7354 or Sierra MC7455 modem, it's able to<br>
> > connect with ModemManager just fine. Is there something I'm missing<br>
> > when connecting with this Telit LE910 modem?<br>
> <br>
> I hope some Telit experts will chime in if I am wrong but the LE910 is<br>
> based on an Intel chipset, isn't it?<br>
> <br>
> If so, then I think some of the findings wrt the Sierra Wireless EM7345<br>
> are relevant. My memory is foggy at best, but I found this:<br>
> <a href="https://lists.freedesktop.org/archives/libmbim-devel/2014-May/000283.html">
https://lists.freedesktop.org/archives/libmbim-devel/2014-May/000283.html</a><br>
> <br>
> There were a few surprises (to me at least) there. I don't know how<br>
> much of that has been fixed/changed in newer firmware revisions. But<br>
> some issues to be aware of:<br>
> <br>
> - the modem might bring up a default bearer using some APN you never<br>
> configured, based on the SIM/operator.<br>
<br>
We have seen this on Sierra modems as well when the AT+CGDCONT list has<br>
APN's but we are connecting through QMI, sometimes it uses the APN from<br>
the +CGDCONT list.<br>
<br>
<br>
> - this default bearer can conflict with later attempts to connect other<br>
> APNs using MBIM and the same IP-type. Note that in my case I could<br>
> easily detect this error since I knew the two APNs used different<br>
> address types (global vs rfc1918)<br>
> <br>
> - you might be able to work around the issues by explictly configuring<br>
> contexts before attempting to do an MBIM connect.<br>
<br>
<br>
We actually do this, we have a wrapper that ensures before we connect that<br>
the AT command versions and the MBIM versions of all contexts match.<br>
<br>
It has saved us on more than one modem.<br>
<br>
<br>
> My proposal is to play with the AT+CGDCONT list and see if it changes<br>
> the behaviour in any way.<br>
<br>
<br>
We have learned that the data session is working, we can use the telit<br>
socket commands (at#sd etc) to make a connection to a website and load a web<br>
page, however, no traffic seems to pass through the wwan0 interface.<br>
<br>
We can however put another SIM in there and have it work fine. It sure is<br>
confusing.<br>
<br>
I would suspect the MBIM driver if it were not for the large number of<br>
working SIM/APN combinations that work. This particular SIM/custom APN is<br>
the first we have had that does not work, yet clearly the data connection<br>
is working on the radio side.<br>
<br>
Big thanks for any and all ideas :-),<br>
<br>
Cheers,<br>
Davidm<br>
<br>
<br>
-- <br>
David McCullough, david.mccullough@accelerated.com, Ph: 0410 560 763<br>
</div>
</span></font></div>
</body>
</html>