<div dir="ltr"><div style="font-size:12.8px">Hi Aleksander,</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">thanks for your quick answer. As you have written the modem has set capabilities gsm-umts and lte by default. I have changed current capabilities to gsm-umts only and after that there is available a set of 6 mode combination to set. Unfortunately some combination is not allowed to set (setting 2g only causes Core.Unsupported error) and if modem is configured to use 2g|3g only the device still reports that it is using 4g connection (modem has small LCD showing current modem/connection status). I am now confused about setting current network mode on the interface.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">A person from AT&T support gives me a feedback that the network mode might be changed using AT!BAND command, I have found that another command AT!SELRAT might be used to manage that (from MM Sierra legacy plugin). Unfortunately the 340u modem is not supported by Sierra legacy plugin, so I had asked you how to patch the plugin (allow to send AT command from application or overwrite set_allowed_modes method) to make setting mode working with Netgear modem.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I am not an expert in cellular technologies, so I would be very grateful for any tips. I have attached output from mmcli tool.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Best regards,</div><div style="font-size:12.8px"> Jaroslaw Bielski</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-04-03 12:58 GMT+02:00 Aleksander Morgado <span dir="ltr"><<a href="mailto:aleksander@aleksander.es" target="_blank">aleksander@aleksander.es</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey,<br>
<span class=""><br>
><br>
> I am trying to add support for changing network mode (2g, 3g, 4g) on<br>
> Netgear AirCard 340u (1199:9051) cellular modem, currently without a<br>
> success.<br>
><br>
> Please find the following versions of libraries and ModemManager, that I<br>
> am using:<br>
> - libqmi-1.12.8<br>
> - libmbim-1.12.2<br>
> - ModemManager 1.4.12 (*)<br>
><br>
> (*) - I have applied patches adding sierra legacy plugin from ubuntu<br>
> package available at:<br>
><br>
> <a href="https://launchpad.net/ubuntu/+archive/primary/+files/modemmanager_1.4.12-1ubuntu1.debian.tar.xz" rel="noreferrer" target="_blank">https://launchpad.net/ubuntu/+archive/primary/+files/modemmanager_1.4.12-1ubuntu1.debian.tar.xz</a><br>
><br>
> The modem is handled by Sierra plugin (QMI modem + AT serial port) which<br>
> does not allow to manage network modes (only one combination 2g,3g,4g is<br>
> available). I have already checked that network mode management on the<br>
> dongle is possible using SELRAT AT command (the same method as legacy<br>
> Sierra plugin).<br>
><br>
<br>
</span>The QMI based implementations need 2 different steps to change network<br>
modes currently: first capabilities, then modes. If you only have the<br>
2G+3G+4G combination, that means you're in the "gsm-umts+lte"<br>
capability combination. Try to change the capabilities to "gsm-umts"<br>
onlt, and once that is done, the device may power cycle and let you<br>
change to other modes like "2G+3G with 3G preferred".<br>
<br>
The additional power cycle isn't always needed, but we do enforce it<br>
when changing capabilities, because the change may require<br>
adding/removing DBus interfaces (not in this case, though).<br>
<br>
I believe this blogpost is still relevant:<br>
<a href="https://sigquit.wordpress.com/2013/06/03/changing-modes-and-capabilities-in-modemmanager/" rel="noreferrer" target="_blank">https://sigquit.wordpress.com/2013/06/03/changing-modes-and-capabilities-in-modemmanager/</a><br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Aleksander<br>
<a href="https://aleksander.es" rel="noreferrer" target="_blank">https://aleksander.es</a><br>
</font></span></blockquote></div><br></div>