4G disconnects for no obvious reasons

Hello,
I got a GL-X750v2 with LTE/4G modem and openwrt running. System is running kn greece and most the time now it is stable but

There seem to still be some bug.
Once in a while most likely later at night the lte router loses connection AND (different than during the day or most times) it has problems/ totally fails to reconnect while the smartphone still gets lte and works. (Smartphone with same simcard)

How would a script look like to change the provider once no connection can be established?

Like AT commands to change APN or change profile or whatever.
Since my scripting ability is very limited I would love to get more than ideas :slightly_smiling_face:
Thanks for your support and help

1 Like

Why not troubleshoot the existing problem?

You already had one connection issue resolved last week..

I suspect but not confirmed yet, the smartphone switches provider but the lte router does not.
That is why i am asking how to achieve this

To add new information:
Smartphone was and still is connected to "cosmote" so the APN should be fine and did not change as suspected.

The router did not change position nor anything else changed (besides time ^^)
So why would it work 80% of the time and stops for no oblivious reason.

What can i check/provide to find the problem?

uqmi -d /dev/cdc-wdm0 --get-data-status
"connected"
uqmi -d /dev/cdc-wdm0 --get-serving-system

{
        "registration": "registered",
        "plmn_mcc": 202,
        "plmn_mnc": 1,
        "plmn_description": "����\u0016\u0001",
        "roaming": true
}

uqmi -d /dev/cdc-wdm0 --get-signal-info

{
        "type": "lte",
        "rssi": -53,
        "rsrq": -11,
        "rsrp": -90,
        "snr": -20
}

Hi

Can you print this when you have been disconnected, before you restart anything?

uqmi -d /dev/cdc-wdm0 --get-serving-system
uqmi -d /dev/cdc-wdm0 --get-signal-info
uqmi -d /dev/cdc-wdm0 --get-current-settings

It is not uncommon that the service provider reset the connection after a certain time.

the print above is while it "seems connected" but no ping to 8.8.8.8 nor any browser page will load. So the status before a restart.
Or did I missunderstand you?

I did restart the interface as well as the router several times the last 7 hours, no changes. The days before it was constantly online so no idea what changed since not even the position changed

Ok

Can you compare the IP-adrress from uqmi -d /dev/cdc-wdm0 --get-current-settings and what is defined in Luci, on your interface, next time the router is disconnected?

root@OpenWrt:~# date && uqmi -d /dev/cdc-wdm0 --get-data-status && uqmi -d /dev/cdc-wdm0 --get-serving-system && uqmi -d
 /dev/cdc-wdm0 --get-signal-info
Sat May 14 15:17:23 UTC 2022
"connected"
{
        "registration": "registered",
        "plmn_mcc": 202,
        "plmn_mnc": 1,
        "plmn_description": "▒▒▒\u0016\u0001",
        "roaming": true
}
{
        "type": "lte",
        "rssi": -64,
        "rsrq": -11,
        "rsrp": -94,
        "snr": 46
}

My thought was to compare the current IP-address of the modem and what was configured to the interface.
Can you print:

uqmi -d /dev/cdc-wdm0 --get-current-settings
ubus call network.interface.4G_COSMOTE status

or what you have called your LTE interface.