4G LTE WWAN Autoconnect

Hi,

got Sierra EM7565 in QMI mode.

The wwan interface is handled by modemmanager.

The public IP is getting changed evry 24 hrs.

Now the device reconnects successfully with the config set (in rc.local)

qmicli --device=/dev/cdc-wdm0 --device-open-proxy --wds-set-autoconnect-settings=enabled

I can see the new IP with

uqmi -d /dev/cdc-wdm0 --get-current-settings

The problem is the wwan interface via modemmanager is not getting updated.

How can I setup qmi/mbim based wwan interface with autoconnect after IP change in OpenWrt?

(I'd like to avoid a cron based pingtest with reconnect)

run a scripted loop every X sec or min, comparing stored IP with current, if it differs, trigger a reconnect, and update stored IP ?