mbimcli session disconnects every 2h

Roman Rozman rozmanro at gmail.com
Mon Sep 19 21:20:53 UTC 2022


Hi all,

I am using the following:
1. EM9191 modem (5NR/LTE).
2. Centos 7.8, kernel 4.19.128 aarch64 architecture.
3. mbimcli 1.14.2 (Copyright (2013-2014) Aleksander Morgado)

I have encountered the next disconnection issue :

1. Connect by running the mbimcli commands manually (added them in the end
of the post), fetch the ip,dns and etc info and set the wwan0 interface
manually in linux:
ip address add X.X.X.X/30 dev wwan0
ip link set dev wwan0 up
ip route add default dev wwan0

[root at localhost /]# mbimcli -p -d /dev/cdc-wdm0 --query-connection-state
[/dev/cdc-wdm0] Connection status:
              Session ID: '0'
        Activation state: 'activated'
        Voice call state: 'none'
                 IP type: 'ipv4'
            Context type: 'internet'
           Network error: 'unknown'
[root at localhost /]#

2. Run pings test to google and see that everything is fine.

3. After roughly 6-7K of pings, (around 1.5-2 hours) the pings reply
response is missing, the communication is lost.
The connection state says 'deactivated':
 [root at localhost /]# mbimcli -p -d /dev/cdc-wdm0 --query-connection-state
[/dev/cdc-wdm0] Connection status:
              Session ID: '0'
        Activation state: 'deactivated'
        Voice call state: 'none'
                 IP type: 'default'
            Context type: 'none'
           Network error: 'unknown'
[root at localhost /]#


What could possibly be the reason for such behavior?
Tested it on 2 EM9191 modems,different SIM providers, same result.




*The connection commands i use:*
[root at localhost /]# mbimcli -p -d /dev/cdc-wdm0 --query-radio-state
--no-close
[/dev/cdc-wdm0] Radio state retrieved:
             Hardware Radio State: 'on'
             Software Radio State: 'on'
[/dev/cdc-wdm0] Session not closed:
            TRID: '4'
[root at localhost /]# mbimcli -p -d /dev/cdc-wdm0
--query-subscriber-ready-status --no-open=4 --no-close
[/dev/cdc-wdm0] Subscriber ready status retrieved:
              Ready state: 'initialized'
            Subscriber ID: 'XXXXXXXXXXXX'
                SIM ICCID: 'XXXXXXXXXXXX'
               Ready info: 'none'
        Telephone numbers: (0) 'unknown'
[/dev/cdc-wdm0] Session not closed:
            TRID: '6'
[root at localhost /]# mbimcli -p -d /dev/cdc-wdm0 --query-registration-state
--no-open=6 --no-close
[/dev/cdc-wdm0] Registration status:
                 Network error: 'unknown'
                Register state: 'home'
                 Register mode: 'automatic'
        Available data classes: 'lte, custom'
        Current cellular class: 'gsm'
                   Provider ID: '42501'
                 Provider name: 'Partner'
                  Roaming text: 'unknown'
            Registration flags: 'packet-service-automatic-attach'
[/dev/cdc-wdm0] Session not closed:
            TRID: '8'
[root at localhost /]# mbimcli -p -d /dev/cdc-wdm0
--query-packet-service-state --no-open=8 --no-close
[/dev/cdc-wdm0] Packet service status:
                 Network error: 'unknown'
          Packet service state: 'attached'
        Available data classes: 'custom'
                  Uplink speed: '1200000000 bps'
                Downlink speed: '3200000000 bps'
[/dev/cdc-wdm0] Session not closed:
            TRID: '10'
[root at localhost /]# mbimcli -p -d /dev/cdc-wdm0 --connect=apn='
publicip.net.il' , ip-type='ipv4' --no-open=10 --no-close
[/dev/cdc-wdm0] Successfully connected

[/dev/cdc-wdm0] Connection status:
              Session ID: '0'
        Activation state: 'activated'
        Voice call state: 'none'
                 IP type: 'ipv4'
            Context type: 'internet'
           Network error: 'unknown'

[/dev/cdc-wdm0] IPv4 configuration available: 'address, gateway, dns, mtu'
     IP [0]: 'X.X.X.X/30'
    Gateway: 'X.X.X.169'
    DNS [0]: '82.102.139.10'
    DNS [1]: '82.102.139.20'
        MTU: '1500'

[/dev/cdc-wdm0] IPv6 configuration available: 'none'
[/dev/cdc-wdm0] Session not closed:
            TRID: '13'
[root at localhost /]#


Thanks in advance,
Roman.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libmbim-devel/attachments/20220920/00d13417/attachment.htm>


More information about the libmbim-devel mailing list