unable to reconnect to "MM_MODEM_STATE_REGISTERED" status modem until it's reset

Héctor Jiménez Méndez hector.jimenez.m at gmv.com
Tue Jun 20 15:44:28 UTC 2023


Hello.

We are using ModemManager 1.12.12 library in one of our projects and we are getting MM_MODEM_STATE_REGISTERED status when polling for Modem status with mm_modem_get_state function.

Then we try to connect again by using mm_modem_simple_connect_sync function to get the bearer, and then mm_bearer_connect_sync with that bearer, which gets all bearer parameters,

But modem still in MM_MODEM_STATE_REGISTERED status after that.

Then we try again and finally restart the modem device and finally achieve to reconnect to modem.

In some other situations, this procedure reconnects at first try, but we don't know why exactly modem returns MM_MODEM_STATE_REGISTERED status itself.

Our system in boarded on a vehicle which is in moving around, so we are thinking it could be a matter of signal loss, but mmcli tool doesn't show low signal values. It shows modem in "registered" stated though when this happens.

We are able to reconnect by "simple disconnect" the modem when it gets in "registered" state and before doing the reconnection procedure described above, but I seriously doubt this is the correct way to handle it.

Is there any known/solved issue about this "registered" modem state relating to this version of the library?

If not... any ideas about properly handling it?

Thank you!




[Logo]<https://www.gmv.com/>
Héctor Jiménez Méndez
Firmware engineer

T. 983 54 65 54
M. 696 297 286

Juan de Herrera, nº 17, P.T.B.
47151 Boecillo, Valladolid | Spain
[cid:image002.jpg at 01D9A392.1EA4A680]<http://www.gmv.com/communication/blog>
[cid:image003.jpg at 01D9A392.1EA4A680]<http://www.facebook.com/infoGMV>
[cid:image004.jpg at 01D9A392.1EA4A680]<http://www.twitter.com/infoGMV>
[cid:image005.jpg at 01D9A392.1EA4A680]<http://www.youtube.com/infoGMV>
[cid:image006.jpg at 01D9A392.1EA4A680]<https://www.instagram.com/companygmv/>
[cid:image007.jpg at 01D9A392.1EA4A680]<https://www.linkedin.com/company/gmv>
www.gmv.com<http://www.gmv.com/>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/modemmanager-devel/attachments/20230620/c6820502/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 32181 bytes
Desc: image001.jpg
URL: <https://lists.freedesktop.org/archives/modemmanager-devel/attachments/20230620/c6820502/attachment-0007.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 12212 bytes
Desc: image002.jpg
URL: <https://lists.freedesktop.org/archives/modemmanager-devel/attachments/20230620/c6820502/attachment-0008.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.jpg
Type: image/jpeg
Size: 12347 bytes
Desc: image003.jpg
URL: <https://lists.freedesktop.org/archives/modemmanager-devel/attachments/20230620/c6820502/attachment-0009.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.jpg
Type: image/jpeg
Size: 12322 bytes
Desc: image004.jpg
URL: <https://lists.freedesktop.org/archives/modemmanager-devel/attachments/20230620/c6820502/attachment-0010.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image005.jpg
Type: image/jpeg
Size: 12329 bytes
Desc: image005.jpg
URL: <https://lists.freedesktop.org/archives/modemmanager-devel/attachments/20230620/c6820502/attachment-0011.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image006.jpg
Type: image/jpeg
Size: 12373 bytes
Desc: image006.jpg
URL: <https://lists.freedesktop.org/archives/modemmanager-devel/attachments/20230620/c6820502/attachment-0012.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image007.jpg
Type: image/jpeg
Size: 12317 bytes
Desc: image007.jpg
URL: <https://lists.freedesktop.org/archives/modemmanager-devel/attachments/20230620/c6820502/attachment-0013.jpg>


More information about the ModemManager-devel mailing list