<div dir="ltr">After doing some more digging, I see that the sequence "disable->enable->set-initial-eps-bearer-settings->connect" works very well.<div>But, we are setting the modem to low power mode between `disable` and `enable`, and that seems to affect the end result. This affects QC SC7180 and LG850, but it's more prominent on the qualcomm modem.</div><div><br><div>The following sequence usually fails:</div><div><b></b></div></div><div><b>mmcli -m 0 --disable && mmcli -m 0 --set-power-state-low &&  mmcli -m 0 --enable && mmcli -m 0 --3gpp-set-initial-eps-bearer-settings="apn=" &&  mmcli -m 0 --simple-connect="apn=broadband"</b><br></div><div><div><div>Followed by</div><div></div><div><b>mmcli -m 0 --disable && mmcli -m 0 --set-power-state-low &&  mmcli -m 0 --enable && mmcli -m 0 --3gpp-set-initial-eps-bearer-settings="apn=<font color="#ff0000">broadband</font>" &&  mmcli -m 0 --simple-connect="apn=broadband"</b><br></div></div><div><b><br></b></div><div>Note:<b> </b>This is on AT&T, which does support the initial attach APN "broadband"<br></div><div><br></div><div>Question: When setting the power state to low, what should be our expectation from the modem? Should only the radios turn off? </div><div><br></div><div> </div><div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, May 6, 2021 at 5:00 AM <<a href="mailto:modemmanager-devel-request@lists.freedesktop.org">modemmanager-devel-request@lists.freedesktop.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Send ModemManager-devel mailing list submissions to<br>
        <a href="mailto:modemmanager-devel@lists.freedesktop.org" target="_blank">modemmanager-devel@lists.freedesktop.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel</a><br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:modemmanager-devel-request@lists.freedesktop.org" target="_blank">modemmanager-devel-request@lists.freedesktop.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:modemmanager-devel-owner@lists.freedesktop.org" target="_blank">modemmanager-devel-owner@lists.freedesktop.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of ModemManager-devel digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. When to call SetInitialEpsBearerSettings (Andrew Lassalle)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Wed, 5 May 2021 16:35:34 -0700<br>
From: Andrew Lassalle <<a href="mailto:andrewlassalle@google.com" target="_blank">andrewlassalle@google.com</a>><br>
To: <a href="mailto:modemmanager-devel@lists.freedesktop.org" target="_blank">modemmanager-devel@lists.freedesktop.org</a><br>
Subject: When to call SetInitialEpsBearerSettings<br>
Message-ID:<br>
        <CAMHc6q2hvazKVowmU6Yr7F9TODO_=O-LNN=<a href="mailto:xtXsj8GhuBv4HnQ@mail.gmail.com" target="_blank">xtXsj8GhuBv4HnQ@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hi Aleksander,<br>
We are using SetInitialEpsBearerSettings to set the default-attach APN for<br>
some carriers. When the user manually changes from an APN which is not<br>
Attach to an Attach one(or vice versa), we disable the modem and re-enable<br>
it to have a clean slate.<br>
This works fine, except that sometimes after re-enabling the modem,<br>
the 3GPP registration state changes to `registering` before shill(network<br>
manager) receives the 3gpp Properties change from MM which allows shill to<br>
select the best APN including the ones returned by MM. This means that<br>
shill doesn't have enough time to set the InitialEpsBearerSettings before<br>
MM tries to register.<br>
<br>
What should be the correct flow to set InitialEpsBearerSettings so MM<br>
always uses those settings?<br>
<br>
Note: We haven't downstreamed for 2 months, so I am not sure if the new<br>
Profiles stuff changes anything.<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="https://lists.freedesktop.org/archives/modemmanager-devel/attachments/20210505/12820f7c/attachment-0001.htm" rel="noreferrer" target="_blank">https://lists.freedesktop.org/archives/modemmanager-devel/attachments/20210505/12820f7c/attachment-0001.htm</a>><br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<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="https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel</a><br>
<br>
<br>
------------------------------<br>
<br>
End of ModemManager-devel Digest, Vol 96, Issue 6<br>
*************************************************<br>
</blockquote></div>