Packet statistics of EM9293 and EM7431

The Host can use EM9293 or EM7431 to connect to internet and then host can ping Google DNS server(8.8.8.8), next I use command “mbimcli -d /dev/cdc-wdm0 --query-packet-statistics” to get packet counter of modem, but all packet counter of modem are zero, how do I to get the packet counter of modem?

do you see any change in ifconfig command?

Yes, If I use “Ifconfig wwan0”, Tx packets and Rx packets are increased, but I used “mbimcli -d /dev/cdc-wdm0 --query-packet-statistics” , the all packets counter are still zero

how about using qmicli?

owner@ubuntu:~$ sudo mbim-network /dev/cdc-wdm0 start
Loading profile at /etc/mbim-network.conf...
    APN: hkcsl
    APN auth protocol: unset
    APN user: unset
    APN password: unset
    mbim-proxy: yes
Querying subscriber ready status 'mbimcli -d /dev/cdc-wdm0 --query-subscriber-ready-status --no-close --device-open-proxy'...
[/dev/cdc-wdm0] Subscriber ready status retrieved: Ready state: 'initialized' Subscriber ID: '454003067338878' SIM ICCID: '8985200012673388788F' Ready info: 'none' Telephone numbers: (0) 'unknown' [/dev/cdc-wdm0] Session not closed: TRID: '4'
Saving state at /tmp/mbim-network-state-cdc-wdm0... (TRID: 4)
Querying registration state 'mbimcli -d /dev/cdc-wdm0 --query-registration-state --no-open=4 --no-close --device-open-proxy'...
[/dev/cdc-wdm0] Registration status: Network error: 'unknown' Register state: 'home' Register mode: 'automatic' Available data classes: 'lte' Current cellular class: 'gsm' Provider ID: '45400' Provider name: '1O1O' Roaming text: 'unknown' Registration flags: 'packet-service-automatic-attach' [/dev/cdc-wdm0] Session not closed: TRID: '6'
Saving state at /tmp/mbim-network-state-cdc-wdm0... (TRID: 6)
Attaching to packet service with 'mbimcli -d /dev/cdc-wdm0 --attach-packet-service --no-open=6 --no-close --device-open-proxy'...
Saving state at /tmp/mbim-network-state-cdc-wdm0... (TRID: 8)
Starting network with 'mbimcli -d /dev/cdc-wdm0 --connect=apn='hkcsl' --no-open=8 --no-close --device-open-proxy'...
Network started successfully
Saving state at /tmp/mbim-network-state-cdc-wdm0... (TRID: 11)
owner@ubuntu:~$ sudo dhclient wwan0
RTNETLINK answers: File exists
owner@ubuntu:~$ ping 8.8.8.8 -I wwan0
PING 8.8.8.8 (8.8.8.8) from 10.105.135.254 wwan0: 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=115 time=50.7 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=115 time=56.4 ms
^C
--- 8.8.8.8 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1002ms
rtt min/avg/max/mdev = 50.722/53.602/56.482/2.880 ms
owner@ubuntu:~$ sudo qmicli --device=/dev/cdc-wdm0 --device-open-proxy --wds-get-packet-service-status
[/dev/cdc-wdm0] Connection status: 'connected'
owner@ubuntu:~$ sudo qmicli --device=/dev/cdc-wdm0 --device-open-proxy --wds-get-packet-statistics
[/dev/cdc-wdm0] Connection statistics:
	TX packets OK: 23
	RX packets OK: 16
	TX packets dropped: 0
	RX packets dropped: 0
	TX bytes OK: 3023
	RX bytes OK: 2524

I didn’t use qmicli before, I will try it, thanks