Sierra WP7609 - Modem turns unavailable
Description
We are with a script executing some AT commands periodically, just to log some modem status. During the tests we noticed that the we weren't receiving reply anymore.
We check the Modem manager log and the suddly we only got "Resource temporarily unavailable".
We stop the Modem Manager and we sent AT commands directly to modem, that it was working. Restating the Modem Manager the communication was working again
<debug> [1590408777.421803] (ttyUSB2): --> 'AT+CGACT=0,4<CR>'
<debug> [1590408779.891145] (ttyUSB2) device open count is 8 (open)
<debug> [1590408782.008964] PDP context deactivation failed (not fatal): Sending command failed: 'Resource temporarily unavailable'
<debug> [1590408782.030763] Disconnected bearer '/org/freedesktop/ModemManager1/Bearer/0'
<info> [1590408782.037458] Modem /org/freedesktop/ModemManager1/Modem/0: state changed (disconnecting -> registered)
<debug> [1590408782.045320] (ttyUSB2) device open count is 7 (close)
<debug> [1590408782.067724] (ttyUSB2): --> 'AT+CIND?<CR>'
<debug> [1590408786.586132] (ttyUSB2) device open count is 8 (open)
<debug> [1590408786.619641] (ttyUSB2) device open count is 7 (close)
<debug> [1590408786.627662] (ttyUSB2): --> 'AT+CGACT?<CR>'
<debug> [1590408789.885589] Signal quality value not updated in 60s, marking as not being recent
<warn> [1590408791.039229] checking if connected failed: Couldn't check current list of active PDP contexts: Sending command failed: 'Resource temporarily unavailable'
<debug> [1590408791.054517] (ttyUSB2) device open count is 6 (close)
The commands sent periodically are:
mmcli -m 0 --command='ATI'
mmcli -m 0 --command='AT+CPIN?'
mmcli -m 0 --command='AT+CSQ'
mmcli -m 0 --command='AT!GSTATUS?'
mmcli -m 0 --command='AT+COPS=?'
mmcli -m 0 --command='AT!SELRAT?'
mmcli -m 0 --command='AT!BAND?'
About the system:
# mmcli --version
mmcli 1.8.2
# nmcli -v
nmcli tool, version 1.16.0
# uname -a
Linux 4.9.88-rebase-4.9.88+g7200031 #2 SMP PREEMPT Thu Feb 27 11:43:58 UTC 2020 armv7l armv7l armv7l GNU/Linux
# mmcli -m 0
-------------------------
Hardware | manufacturer: 'Sierra Wireless, Incorporated'
| model: 'WP7609'
| revision: 'SWI9X07Y_02.28.03.05 000000 jenkins 2019/07/08 11:04:16'
| H/W revision: 'unknown'
| supported: 'gsm-umts, lte'
| current: 'gsm-umts, lte'
| equipment id: '359782080156060'
-------------------------