<div dir="auto">Hello,<div dir="auto"><br></div><div dir="auto">In our case we have switched the modem to mbim mode to be able to receive / be aware of sim removal notifications.</div><div dir="auto"><br></div><div dir="auto">Are <span style="font-family:sans-serif">QMI WDS indications</span> still received when modem is in MBIM mode?</div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Alejandro </div><br><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">El mié., 27 ene. 2021 9:02, Aleksander Morgado <<a href="mailto:aleksander@aleksander.es">aleksander@aleksander.es</a>> escribió:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey,<br>
<br>
> I am finding a unexpected behaviour and I would like to know how does the ModemManager work in situations like this one, when the modem has no signal at all or the signal is quite poor:<br>
><br>
> <debug> [1607682864.814360] Received notification (service 'basic-connect', command 'signal-state')<br>
> <debug> [1607682864.814379] Signal state indication: 6 --> 19%<br>
> <debug> [1607682864.814532] Modem /org/freedesktop/ModemManager1/Modem/0: signal quality updated (19)<br>
> <debug> [1607682866.172436] (ttyACM1): --> 7e 00 78 f0 7e<br>
> <debug> [1607682866.172535] (ttyACM0): --> 7e 00 78 f0 7e<br>
> [/dev/cdc-wdm0] Received message...<br>
> >>>>>> RAW:<br>
> >>>>>>   length = 64<br>
> >>>>>>   data   = 07:00:00:80:40:00:00:00:00:00:00:00:01:00:00:00:00:00:00:00:A2:89:CC:33:BC:BB:8B:4F:B6:B0:13:3E:C2:AA:E6:DF:0B:00:00:00:14:00:00:00:00:00:00:00:63:00:00:00:05:00:00:00:02:00:00:00:FF:FF:FF:FF<br>
> [/dev/cdc-wdm0] Received message (translated)...<br>
> >>>>>> Header:<br>
> >>>>>>   length      = 64<br>
> >>>>>>   type        = indicate-status (0x80000007)<br>
> >>>>>>   transaction = 0<br>
> >>>>>> Fragment header:<br>
> >>>>>>   total   = 1<br>
> >>>>>>   current = 0<br>
> >>>>>> Contents:<br>
> >>>>>>   service = 'basic-connect' (a289cc33-bcbb-8b4f-b6b0-133ec2aae6df)<br>
> >>>>>>   cid     = 'signal-state' (0x0000000b)<br>
> >>>>>> Fields:<br>
> >>>>>>   Rssi = '0'<br>
> >>>>>>   ErrorRate = '99'<br>
> >>>>>>   SignalStrengthInterval = '5'<br>
> >>>>>>   RssiThreshold = '2'<br>
> >>>>>>   ErrorRateThreshold = '4294967295'<br>
> <debug> [1607682867.822380] Received notification (service 'basic-connect', command 'signal-state')<br>
> <debug> [1607682867.822400] Signal state indication: 0 --> 0%<br>
> <debug> [1607682867.822557] Modem /org/freedesktop/ModemManager1/Modem/0: signal quality updated (0)<br>
><br>
><br>
> - The modem does not seem to transition from the "connected" state to the "registered"  state , or at least I cannot see it in the logs (attached in a previous mail). It remains as  state: connected.<br>
> What is the expected behaviour here?<br>
> - What does the ModemManager do in these cases where the modem is connected to the ISP but has really really low signal (i.e.  signal state 0) ? When does the Modem Manager consider the modem disconnected ?<br>
><br>
<br>
There's really not much magic done by MM in this case, we just wait<br>
for the modem to tell us it's disconnected via <span style="font-family:sans-serif">QMI WDS indications</span> ...<br>
<br>
-- <br>
Aleksander<br>
<a href="https://aleksander.es" rel="noreferrer noreferrer" target="_blank">https://aleksander.es</a><br>
</blockquote></div></div>