HomeDefectsLIN1024-837
Acknowledged

LIN1024-837 : Running mbimcli with the '--query-connection-state' option will time out if set 'PROXY=yes' in /etc/mbim-network.conf

Created: May 8, 2024    Updated: Nov 11, 2025
Found In Version: 10.24.33.1
Severity: Standard
Applicable for: Wind River Linux LTS 24
Component/s: Userspace

Description

$ cat /etc/mbim-network.conf
APN=<APNAME>
PROXY=yes

$ mbim-network /dev/cdc-wdm0 start

$ mbimcli -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'
error: couldn't close device: Transaction timed out

This is because PROXY is set to yes in /etc/mbim-network.conf, which causes the mbim-proxy daemon to start when mbim-network starts. We need to add the parameter --device-open-proxy/-p in the subsequent commands:
$ mbimcli -d /dev/cdc-wdm0 --query-connection-state --device-open-proxy

Steps to Reproduce

8. Steps To Reproduce
****************************
1. build
$ /lpg-build/cdc/fast_prod/WRLINUX_MASTER_WR/MASTER_WR_GIT/wrlinux-10/setup.sh --machine xilinx-zynqmp --dl-layers=1 --distros wrlinux --templates feature/xfce feature/mbim --dl-layers=1 --accept-eula=yes
$ . ./environment-setup-x86_64-wrlinuxsdk-linux
$ . ./oe-init-build-env
 
2. Build
$ bitbake wrlinux-image-std
 
3. Run this script
#!/bin/bash
 
cat > /etc/mbim-network.conf << EOF
APN=3gnet
# 3gnet is for ChinaUnicom, cmnet is for ChinaMobile
PROXY=yes
EOF
 
i=1
while [ $i -le 10 ]; do
    echo "================== $i =================="
    echo "$ mbim-network /dev/cdc-wdm0 start"
    mbim-network /dev/cdc-wdm0 start
    echo "$ mbim-network /dev/cdc-wdm0 status"
    mbim-network /dev/cdc-wdm0 status
    echo "$ mbim-network /dev/cdc-wdm0 stop"
    mbim-network /dev/cdc-wdm0 stop
    i=`expr $i + 1`
done
 
j=1
while [ $j -le 10 ]; do
    echo "================== $j =================="
    echo "$ mbimcli -d /dev/cdc-wdm0 --query-connection-state"
    mbimcli -d /dev/cdc-wdm0 --query-connection-state
    j=`expr $j + 1`
done