<div dir="ltr"><div>Hello</div><div><br></div><div>I'm using ModemManager together with NetworkManager to control a Quectel BG95 modem. We have 2 versions of SIM with different APNs. When trying to update from the old APN to the new APN I've come across an issue where the modem PDP context doesn't get updated.</div><div><br></div><div>Where we have modems that report:</div><div><font face="monospace">+CGDCONT: 1,"IP","OldAPN","0.0.0.0",0,0,0</font></div><div>they don't get updated by MM to 'NewAPN'.</div><div><br></div><div>If the modem reports:</div><div><font face="monospace">+CGDCONT: 1,"IP","","0.0.0.0",0,0,0</font></div><div>or</div><div><font face="monospace">+CGDCONT: 1,"IP","","0.0.0.0",0,0,0</font></div><div><font face="monospace">+CGDCONT: 2,"IP","OldAPN","0.0.0.0",0,0,0</font></div><div>then MM adds the 'NewAPN' PDP context to the end of the list and everything works.</div><div><br></div><div>Looking at the debug logs it seems that the modem needs to be registered to the network before MM will add the new context for the new APN (I guess that this is what the <font face="monospace">+CGDCONT: 1,"IP","","0.0.0.0",0,0,0</font> is allowing to happen). Is this correct? And will a 'blank' entry always allow you to register to a network?</div><div><br></div><div>I was hoping to upgrade systems in the field just by updating the 'apn=...' entry in the NetworkManager 'nmconnection' file, but it looks like I will also have to manually delete the existing PDP contexts and add a blank one too.</div><div><br></div><div>Thanks</div><div><br></div><div>Mark</div><div>--</div><div>ModemManager is v1.18.8</div><div>NetworkManager is v1.36.2</div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div><div><br><span style="color:#264d74;line-height:1.6;font-size:10pt;font-family:'IBM Plex Sans',sans-serif"><strong>Mark Corbin </strong></span><br><span style="color:#264d74;line-height:1.4;font-size:10pt;font-family:'IBM Plex Sans',sans-serif">Senior Software Engineer | <a href="https://www.lunarenergy.com" target="_blank">lunarenergy.com</a> | <a href="https://www.linkedin.com/company/lunarenergyinc/" target="_blank">LinkedIn</a> | <a href="https://www.instagram.com/lunarenergyinc/" target="_blank">Instagram</a><br></span><img style="padding-top:5px" src="https://storage.googleapis.com/lunarenergy/email-sigs/lunarenergy-logo.png" alt="Lunar Energy Logo" width="100"></div></div></div></div>
<br>
<font size="1">C2:Restricted unless otherwise stated.</font><br>
<br>
<p><font size="1">Lunar Energy Limited is a company registered in England and Wales, authorised and regulated by the Financial Conduct Authority under reference number 767876. Company registration number: 05631091. Registered office: 55 Baker Street, London, England, W1U 7EU</font><br></p>