I have a MC7430 with 02.33.03.00 firmware and Telstra pri, with ModemManager 1.14, I could setup the bearer connection with the --simple-connect mmcli command, however, when I tried to disconnect with the --simple-disconnect, from syslog I saw that the MC7430 was reconnected automatically:
<30>Jan 1 00:07:22 [1608]: [modem2] state changed (connected → disconnecting)
<30>Jan 1 00:07:22 [1608]: [modem2] state changed (disconnecting → connected)
Whereas on EM7565 the --simple-disconnect could disconnect the bearer succesfully:
<30>May 1 20:11:58 [1249]: [modem1] state changed (connected → disconnecting)
<30>May 1 20:11:58 [1249]: [modem1] state changed (disconnecting → registered)
How was ModemManager auto re-connecting on MC7430? and how to debug and stop it?
Well, I have very positive findings following your advice to disable rmnet1 configurations. My findings are:
With rmnet0 and rmnet1 configurations both enabled, wwan0 and wwan1 are available
The wwan1 interface is more likely used than wwan0 by linux kernel, to obtain IP address from the bearer
With wwan1 interface, after --simple-disconnect, the ModemManager auto re-connects the cellmodem
However, if the remnet1 is configured off, only rmnet0 and wwan0 interfaces are available
With wwan0 interface, after --simple-disconnect, the ModemManager will NOT auto re-connect the cellmodem anymore, the cellmodem’s state changes through connected → disconnecting → registered
OK, my follow-up questions are:
On MC73xx and MC74xx, when both rmnet0/1 and wwan0/1 interfaces are available, what are factors determining which wwanX interface is used? Sometimes I noticed that the kernel seems to ping-pong among them after cellmodem resets and bearer re-connects
On MC7430, why with rmnet1/wwan1 the ModemManager would auto re-connect the cellmodem after --simple-disconnect was handled properly? why it stops doing so with the rmnet0/wwan0 interface?
I am using an embedded Linux distribution without network manager, just ModemManager and libqmi sort of stuff.
I am wondering how I could keep debugging ModemManager auto re-connection behaviour on rmnet1/wwan1. If rmnet1 is disabled on MC7430, or not existing in the first place such as on EM7565, such behaviour doesn’t seem to exist.
The ModemManager’s auto re-connection upon --simple-disconnect can be avoided by disabling rmnet1/wwan1. I will fall back on that if needed. The real question goes to why ModemManager auto re-connects on rmnet1 but not on rmnet0.