Hello

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.

Where we have modems that report:
+CGDCONT: 1,"IP","OldAPN","0.0.0.0",0,0,0
they don't get updated by MM to 'NewAPN'.

If the modem reports:
+CGDCONT: 1,"IP","","0.0.0.0",0,0,0
or
+CGDCONT: 1,"IP","","0.0.0.0",0,0,0
+CGDCONT: 2,"IP","OldAPN","0.0.0.0",0,0,0
then MM adds the 'NewAPN' PDP context to the end of the list and everything
works.

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 +CGDCONT: 1,"IP","","0.0.0.0",0,0,0 is allowing to
happen). Is this correct? And will a 'blank' entry always allow you to
register to a network?

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.

Thanks

Mark
--
ModemManager is v1.18.8
NetworkManager is v1.36.2

-- 

*Mark Corbin *
Senior Software Engineer  |  lunarenergy.com <https://www.lunarenergy.com>
  |  LinkedIn <https://www.linkedin.com/company/lunarenergyinc/>  |
Instagram <https://www.instagram.com/lunarenergyinc/>
[image: Lunar Energy Logo]

-- 
C2:Restricted unless otherwise stated.

-- 








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

Reply via email to