<div dir="ltr"><div dir="ltr">Hello, <div><br></div><div>After making more tests and checking the logs more carefully I have found differences between the connection sequence , specifically regarding the bearer options.</div><div>When a bearer is created with no auth options, like following the next command  ( 'allowed-auth' methods are not set):  <br></div><div><br></div><div><i>mmcli -m 0 --create-bearer="apn=myapn,user=myuser,password=

mypassword,ip-type=ipv4"</i><br></div><div><br></div><div>If we try to connect afterwards using the recently created bearer:</div><div><br></div><div><i>mmcli -m 0 -b 0 -c</i><br></div><div><i><br></i></div><div>Behaviour in ModemManager 1.10:</div><div><i><br></i></div><div><i>ModemManager[5096]: <debug> [1625232197.783697] Using default<b> (PAP)</b> authentication method<br>ModemManager[5096]: <debug> [1625232197.783715] Launching ipv4v6 connection with APN<br></i></div><div><br></div><div><div>Behaviour in ModemManager 1.16.2:</div><br class="gmail-Apple-interchange-newline"></div><div><i>ModemManager[15247]: <debug> [1625483530.597060] [modem0/bearer0] using default <b>(CHAP)</b> authentication method<br>ModemManager[15247]: <debug> [1625483530.597085] [modem0/bearer0] launching ipv4 connection with APN '<a href="http://tib.com">tib.com</a>'</i><br></div><div><i><br></i></div><div>And this is causing my modem to fail when attempting a connection. <b>If I create the bearer in ModemManager 1.16.2 specifying <i>"allowed-auth=pap",</i> it works. </b></div><div>Therefore, before it was not needed to specify the authentication method if it was PAP, now it seems to be a need. </div><div><br></div><div>Note that in both versions the "Provisioned contexts" LOG (where the bearer info appears) is the same, however, when launching the connection there are differences.</div><div><br></div><div>Hope this helps.</div><div><br></div><div>Regards,</div><div>Alejandro </div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El dom, 4 jul 2021 a las 23:16, Aleksander Morgado (<<a href="mailto:aleksander@aleksander.es">aleksander@aleksander.es</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hey,<br>
<br>
><br>
> I have installed ModemManager version 1.16.2 recently in order to use the latest functionalities and I have been experiencing an issue after trying to connect to a custom APN (within a VPN).<br>
> The issue is that the modem is unable to transition from the registered to the connected status and finishes the connection attempt immediately just after querying a connection command. Using commercial sims with other APNs (which normally don't have user and password, don't know if that matters) it does not  happen. I am using a EM7455 Sierra Wireless Modem.<br>
><br>
> Until now , I have been working with ModemManager 1.10.6 under MBIM mode and have been able to connect with no problems with different types of sims (commercial and custom APNs).<br>
><br>
> Attached tests (MM in Debug mode)<br>
><br>
> 3 x tests with the MM 1.16.2 working under QMI mode (x1) and MBIM mode (x2 with different errors) but being unable to connect.<br>
> 1 x test with MM 1.10.6 working under MBIM mode and same bearer configuration  , modem is able to connect<br>
><br>
> In order to create the bearer and make tests I am always using this custom APN I mention:<br>
> mmcli -m 0 --create-bearer="apn=<a href="http://tib.com" rel="noreferrer" target="_blank">tib.com</a>,user=*******,password=******,ip-type=ipv4"<br>
> mmcli -m 0 -b 0 -c<br>
><br>
> Is there anything I should consider changing regarding the connection attempt ? Shall I perform any additional configuration prior to the connection in MM 1.16.2 ?<br>
<br>
I don't think you would need anything special, truth be told. If the<br>
modem was connecting fine with 1.10, it should connect equally fine<br>
with 1.16.<br>
<br>
> I found a thread where similar errors appear<br>
> <a href="https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/merge_requests/410" rel="noreferrer" target="_blank">https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/merge_requests/410</a><br>
> but I believe it is already merge into MM 1.16.2<br>
<br>
That branch adds support for configuring the initial EPS bearer<br>
settings in QMI modems, I don't think that would affect in any way<br>
your issue here.<br>
<br>
I'm afraid I don't have time to dig into 4 different connection logs<br>
to try to find differences between them; could you please do that<br>
yourself and try to compare the working MM 1.10 MBIM connection<br>
sequence with the failing MM 1.16 MBIM connection sequence and try to<br>
find what the differences are? If there are no differences, the<br>
connection should equally succeed.<br>
<br>
-- <br>
Aleksander<br>
<a href="https://aleksander.es" rel="noreferrer" target="_blank">https://aleksander.es</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">Un saludo.<div><br></div><div>Alejandro Vega</div></div></div></div>