<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Dear all,</div>

<div> </div>

<div>
<div>We are facing a problem of setting the preferred mode to 4G from ModemManager for Quectel BG96. "mmcli --versoin" returns 1.12.6, nmcli version 1.20.4, and the FW on the modem is BG96MAR02A11M1G_01.016.01.016.</div>

<div> </div>
</div>

<div>Setting the preferred mode to 2G is fine but setting back to 4G via MM does not change the priority sequence. Any idea why it happens? Is it a well-known problem and can I fix it by updating the MM? </div>

<div> </div>

<div>Thanks and best regards,</div>

<div>Songwei</div>

<div> </div>

<div>====================================================</div>

<div>The following are detailed information:</div>

<div> </div>

<div>1. This is the initial state. Both MM and AT-cmd shows the 4G comes before 2G. </div>

<div> </div>

<div><span style="font-size:10px;"># mmcli -m 1 --command="AT+QCFG=\"nwscanseq\""<br/>
response: '+QCFG: "nwscanseq",020301'<br/>
# mmcli -m 1 --command="AT+QCFG=\"nwscanmode\""<br/>
response: '+QCFG: "nwscanmode",0'<br/>
# mmcli -m 1<br/>
  --------------------------------<br/>
  General  |            dbus path: /org/freedesktop/ModemManager1/Modem/1<br/>
           |            device id: 37db16a6a9ce688c0e0f3390071bd0ae24c2bdce<br/>
  --------------------------------<br/>
  Hardware |         manufacturer: Quectel<br/>
           |                model: 0<br/>
           |    firmware revision: BG96MAR02A11M1G<br/>
           |       carrier config: default<br/>
           |         h/w revision: 10000<br/>
           |            supported: gsm-umts, lte<br/>
           |              current: gsm-umts, lte<br/>
           |         equipment id: 868963043820877<br/>
  --------------------------------<br/>
  System   |               device: /sys/devices/platform/ahb/500000.ehci/usb1/1-2<br/>
           |              drivers: qmi_wwan, option1<br/>
           |               plugin: Quectel<br/>
           |         primary port: cdc-wdm0<br/>
           |                ports: cdc-wdm0 (qmi), ttyUSB0 (qcdm), ttyUSB2 (at), wwan0 (net),<br/>
           |                       ttyUSB1 (gps), ttyUSB3 (at)<br/>
  --------------------------------<br/>
  Status   |                 lock: sim-pin2<br/>
           |       unlock retries: sim-pin (3), sim-puk (10), sim-pin2 (3), sim-puk2 (10)<br/>
           |                state: connected<br/>
           |          power state: on<br/>
           |          access tech: lte<br/>
           |       signal quality: 96% (recent)<br/>
  --------------------------------<br/>
  Modes    |            supported: allowed: 2g; preferred: none<br/>
           |                       allowed: 4g; preferred: none<br/>
           |                       allowed: 2g, 4g; preferred: 4g<br/>
           |                       allowed: 2g, 4g; preferred: 2g<br/>
           |              current: allowed: 2g, 4g; preferred: 4g<br/>
  --------------------------------<br/>
  Bands    |            supported: egsm, dcs, pcs, g850, eutran-1, eutran-2, eutran-3,<br/>
           |                       eutran-4, eutran-5, eutran-8, eutran-12, eutran-13, eutran-17,<br/>
           |                       eutran-18, eutran-19, eutran-20, eutran-26, eutran-28, eutran-39<br/>
           |              current: egsm, dcs, pcs, g850, eutran-1, eutran-2, eutran-3,<br/>
           |                       eutran-4, eutran-5, eutran-8, eutran-12, eutran-13, eutran-17,<br/>
           |                       eutran-18, eutran-19, eutran-20, eutran-26, eutran-28, eutran-39<br/>
  --------------------------------<br/>
  IP       |            supported: ipv4, ipv6, ipv4v6<br/>
  --------------------------------<br/>
  3GPP     |                 imei: 868963043820877<br/>
           |          operator id: 26201<br/>
           |        operator name: TDG<br/>
           |         registration: home<br/>
  --------------------------------<br/>
  3GPP EPS | ue mode of operation: csps-2<br/>
  --------------------------------<br/>
  SIM      |            dbus path: /org/freedesktop/ModemManager1/SIM/1<br/>
  --------------------------------<br/>
  Bearer   |            dbus path: /org/freedesktop/ModemManager1/Bearer/3</span><br/>
 </div>

<div>2. Then I set the priority to 2G.  Both MM and AT-cmd shows the 2G has now priority. </div>

<div> </div>

<div><span style="font-size:10px;"># mmcli -m 1 --set-allowed-modes='2g|4g' --set-preferred-mode='2g'<br/>
successfully set current modes in the modem<br/>
#<br/>
# mmcli -m 1 --command="AT+QCFG=\"nwscanseq\""<br/>
response: '+QCFG: "nwscanseq",010203'</span></div>

<div> </div>

<div>3. Then I wanted to set the priority to 4G again. But could not do it with MM. AT comamnd shows the search sequence does not change. But the MM "thinks" the priority is already set back to 4G.</div>

<div> </div>

<div><span style="font-size:10px;"># mmcli -m 1 --set-allowed-modes='2g|4g' --set-preferred-mode='4g'<br/>
successfully set current modes in the modem<br/>
#<br/>
#<br/>
# mmcli -m 1 --command="AT+QCFG=\"nwscanseq\""<br/>
response: '+QCFG: "nwscanseq",010203'</span></div>

<div> </div>

<div><span style="font-size:10px;">  --------------------------------<br/>
  Modes    |            supported: allowed: 2g; preferred: none<br/>
           |                       allowed: 4g; preferred: none<br/>
           |                       allowed: 2g, 4g; preferred: 4g<br/>
           |                       allowed: 2g, 4g; preferred: 2g<br/>
           |              current: allowed: 2g, 4g; preferred: 4g</span><br/>
 </div>

<div> </div>

<div> </div>

<div> </div></div></body></html>