From no signal to signal environment, ModemManager remove the modem.
_`_`__```
【Preset Conditions】
1. The module port is loaded normally and can be connected to the Internet
【Test Steps】
1.Access to the mobile SIM card, module automatic network injection, Ping www.baidu.com
2.Make the module enter the network free environment
3.After the module is off the network, it will return to the network environment
【Expected results】
1. OK.
2.The signal bar display changes correspondingly, and the final display shows no signal, the module drops the network, and Ping is interrupted
3.The signal bar increases gradually from no signal, and the module can successfully inject network again (the successful time of automatic network injection is less than 1 minute), and Ping is recovered
【Measured Results】
1.success
2.SUCCESS
3.Query with mmcli - L and return no modems were found.
analise:
this code: ModemManager/src/mm-base-modem.c
/*
* We do a workaround that remove 10 times mechanism and ensure MM display and have a good experience.
* If remove this line "g_cancellable_cancel (self->priv->cancellable)", MM will not check Detects if the timeout
* exceeds 10 times and even up to 10 times that won't remove modem,only re-probe modem for another 10 times.
* Masking the removal mechanism does not affect its detection timeout mechanism, ensuring that the UI is always there.
*/
static void serial_port_timed_out_cb (MMPortSerial *port,
guint n_consecutive_timeouts,
MMBaseModem *self)
{
/* If reached the maximum number of timeouts, invalidate modem */
if (n_consecutive_timeouts >= self->priv->max_timeouts) {
mm_err ("(%s/%s) %s port timed out %u consecutive times, marking modem '%s' as invalid",
mm_port_subsys_get_string (mm_port_get_subsys (MM_PORT (port))),
mm_port_get_device (MM_PORT (port)),
mm_port_type_get_string (mm_port_get_port_type (MM_PORT (port))),
n_consecutive_timeouts,
g_dbus_object_get_object_path (G_DBUS_OBJECT (self)));
//remove this func.
//g_cancellable_cancel (self->priv->cancellable);
return;
}
Am I right? or have a another way to resolve this issue? We don't want the ModemManager icon in the upper right corner to disappear.
Thank you.
Edited by DoyleDeng