koshev-msk / modemfeed

Other
107 stars 63 forks source link

xmm-modem package - modem connection disappear on any other USB devices disconnection #18

Closed GektorUA closed 1 year ago

GektorUA commented 1 year ago

Tested on different x86 hardware and OpenWrt 21.03/23.05: Fibocom L860 with any USB modem/device if device disconnects, all xmm modems lose connection (IP).

Seems that problem in "01_xmm.sh" file, if comment section:

    if [ "$ACTION" = remove ]; then
        proto_set_available "$cfg" 0
    fi

then problem with disappearing of XMM modems is fixed, but when send AT+CFUN=1,1 on XMM modem, old IP stuck and did not refresh. I have found, that variables $proto $cfg is empty, but i can't found any way to fix that.

Need to fix that file, because for now on USB disconnection event it's disconnects all XMM modems from system.