Community discussions

MikroTik App
 
alessiov10
just joined
Topic Author
Posts: 12
Joined: Sun Jan 29, 2023 4:17 pm

(Mikrotik LHGG LTE6) LTE randomly disconnects multiple times a day

Sun Jan 29, 2023 5:00 pm

Hello everybody,
I have a MikroTik LHGG LTE6 to which I have installed an EM160R_GL LTE modem. The setup worked just fine untill I swapped LTE SIM with another operator. Now I'm experiencing random disconnections from the network multiple times a day, and I'm forced to disable and re-enable LTE in order to get it working again.
Now I don't know if the problem is caused by the operator or there is something wrong with LHGG/modem. Is there anyway we can investigate the issue?

EM160R_GL fw version: EM160RGLAUR02A05M4G
RouterOS v7.2.3 (stable)

Also: would it be possible to upgrade EM160R_GL fw through RouterOS? How?
 
alessiov10
just joined
Topic Author
Posts: 12
Joined: Sun Jan 29, 2023 4:17 pm

Re: (Mikrotik LHGG LTE6) LTE randomly disconnects multiple times a day

Tue Jan 31, 2023 7:09 pm

sorry for bumping but it got quite low untill the thread got approved
 
User avatar
Amm0
Forum Guru
Forum Guru
Posts: 3169
Joined: Sun May 01, 2016 7:12 pm
Location: California

Re: (Mikrotik LHGG LTE6) LTE randomly disconnects multiple times a day  [SOLVED]

Tue Jan 31, 2023 7:11 pm

For sure upgrade to "stable" (v7.7 as of writing) – there have been a ton of LTE fixes since v7.2.3. You want to make sure to upgrade RouterOS, the /system/routerboard firmware, and also /interface/lte firmware too.
 
alessiov10
just joined
Topic Author
Posts: 12
Joined: Sun Jan 29, 2023 4:17 pm

Re: (Mikrotik LHGG LTE6) LTE randomly disconnects multiple times a day

Wed Feb 01, 2023 5:18 am

For sure upgrade to "stable" (v7.7 as of writing) – there have been a ton of LTE fixes since v7.2.3. You want to make sure to upgrade RouterOS, the /system/routerboard firmware, and also /interface/lte firmware too.
ok I'll upgrade ros to 7.7, but do you know if I can upgrade the lte modem firmware through routeros too?
I swapped the original LTE6 modem with an EM160R-GL, but afaik the "upgrade" function on the lte interface isn't working
 
User avatar
Amm0
Forum Guru
Forum Guru
Posts: 3169
Joined: Sun May 01, 2016 7:12 pm
Location: California

Re: (Mikrotik LHGG LTE6) LTE randomly disconnects multiple times a day

Wed Feb 01, 2023 6:45 am

I presume signal is good here and/or it's not disconnecting during peak usage times. Still really shouldn't disconnect unless signal was terrible.

But pretty sure Mikrotik firmware update won't work with non-stock modem module. Personally, I'd see if v7.7 helps first. But if you had a USB to M.2 adapter, you can use a PC to upgrade the modem.

Also, while I'm not the quectel expert, but likely want it in MBIM mode. It may default to this, but you can make sure by setting it to MBIM (vs ECM):

/interface/lte/at-chat lte1 input="AT+QCFG=\"usbnet\",2"

If that's doesn't help, you can increase the logging to see what may be happening before the disconnect. Since LTE debug logs can be long you can increase the log limit:

/system logging action add name=ltelong target=memory memory-lines=16384
/system logging add action=ltelong topics=lte
 
User avatar
broderick
Member Candidate
Member Candidate
Posts: 242
Joined: Mon Nov 30, 2020 7:44 pm

Re: (Mikrotik LHGG LTE6) LTE randomly disconnects multiple times a day

Wed Feb 01, 2023 10:33 am

As far as I know, a few LTE operators also disconnect you every 4 hours.
 
alessiov10
just joined
Topic Author
Posts: 12
Joined: Sun Jan 29, 2023 4:17 pm

Re: (Mikrotik LHGG LTE6) LTE randomly disconnects multiple times a day

Wed Feb 01, 2023 12:27 pm

I presume signal is good here and/or it's not disconnecting during peak usage times. Still really shouldn't disconnect unless signal was terrible.

But pretty sure Mikrotik firmware update won't work with non-stock modem module. Personally, I'd see if v7.7 helps first. But if you had a USB to M.2 adapter, you can use a PC to upgrade the modem.

Also, while I'm not the quectel expert, but likely want it in MBIM mode. It may default to this, but you can make sure by setting it to MBIM (vs ECM):

/interface/lte/at-chat lte1 input="AT+QCFG=\"usbnet\",2"

If that's doesn't help, you can increase the logging to see what may be happening before the disconnect. Since LTE debug logs can be long you can increase the log limit:

/system logging action add name=ltelong target=memory memory-lines=16384
/system logging add action=ltelong topics=lte
Ok, thanks I'll do this and let you know as soon as I'm home
As far as I know, a few LTE operators also disconnect you every 4 hours.
Ok but shouldn't it reconnect automatically? Also as far as I know, the operator I'm on doesn't do this
 
reinerotto
Long time Member
Long time Member
Posts: 519
Joined: Thu Dec 04, 2008 2:35 am

Re: (Mikrotik LHGG LTE6) LTE randomly disconnects multiple times a day

Thu Feb 02, 2023 6:08 am

May be, renewal of IP does not work properly ? How long is IP valid ?
 
alessiov10
just joined
Topic Author
Posts: 12
Joined: Sun Jan 29, 2023 4:17 pm

Re: (Mikrotik LHGG LTE6) LTE randomly disconnects multiple times a day

Fri Feb 03, 2023 8:38 pm

May be, renewal of IP does not work properly ? How long is IP valid ?
uhm I have no idea? how do I check? is something related to the service provider?
 
User avatar
Amm0
Forum Guru
Forum Guru
Posts: 3169
Joined: Sun May 01, 2016 7:12 pm
Location: California

Re: (Mikrotik LHGG LTE6) LTE randomly disconnects multiple times a day

Fri Feb 03, 2023 8:57 pm

I hate to suggest it, but a script to restart LTE might help. This post on your modem type suggests adding a startup schedule task that restarts the modem 30 seconds after startup: viewtopic.php?p=934727&hilit=EM160R#p934727

That worth a shot since if one initialization AT command is errors/missed/etc, perhaps can cause an issue down the road. Other scripts in this forum are even more sophisticated at using netwatch to restart the modem – but this add complexity and in reality the modem shouldn't just disconnect unless its down by the carrier or signal quality is extremely poor.

I do suspect there is some incompatible firmware someplace (e.g. sometimes a carrier needs different firmware than the Mikrotik, or just bugs sometimes). Mikrotik does eventually respond to reports of LTE issues – but you really do need to enabled higher log level/limits to capture what's happen when at the time disconnects (and supout) for them to have any hope of fixing it.
 
alessiov10
just joined
Topic Author
Posts: 12
Joined: Sun Jan 29, 2023 4:17 pm

Re: (Mikrotik LHGG LTE6) LTE randomly disconnects multiple times a day

Fri Feb 03, 2023 11:27 pm

I hate to suggest it, but a script to restart LTE might help. This post on your modem type suggests adding a startup schedule task that restarts the modem 30 seconds after startup: viewtopic.php?p=934727&hilit=EM160R#p934727

That worth a shot since if one initialization AT command is errors/missed/etc, perhaps can cause an issue down the road. Other scripts in this forum are even more sophisticated at using netwatch to restart the modem – but this add complexity and in reality the modem shouldn't just disconnect unless its down by the carrier or signal quality is extremely poor.

I do suspect there is some incompatible firmware someplace (e.g. sometimes a carrier needs different firmware than the Mikrotik, or just bugs sometimes). Mikrotik does eventually respond to reports of LTE issues – but you really do need to enabled higher log level/limits to capture what's happen when at the time disconnects (and supout) for them to have any hope of fixing it.
For now I have updated ROS to 7.7 (can't update the modem since I don't have the usb tool to do so), and I have created the log file that you told me to.
At the moment it's 3hours uptime and didn't go down, if it does I'll post logs here so we can understand what's going on
 
User avatar
Larsa
Forum Guru
Forum Guru
Posts: 1025
Joined: Sat Aug 29, 2015 7:40 pm
Location: The North Pole, Santa's Workshop

Re: (Mikrotik LHGG LTE6) LTE randomly disconnects multiple times a day

Fri Feb 03, 2023 11:43 pm

As far as I know, a few LTE operators also disconnect you every 4 hours.

Interesting, which NMOs are cutting the whole session every 4 hours if I may ask? Are you sure you're not mixing it up with the lease time?
 
alessiov10
just joined
Topic Author
Posts: 12
Joined: Sun Jan 29, 2023 4:17 pm

Re: (Mikrotik LHGG LTE6) LTE randomly disconnects multiple times a day

Sat Feb 04, 2023 9:06 am

As far as I know, a few LTE operators also disconnect you every 4 hours.

Interesting, which NMOs are cutting the whole session every 4 hours if I may ask? Are you sure you're not mixing it up with the lease time?
In Italy it's just WindTre who does that
 
accarda
Member Candidate
Member Candidate
Posts: 208
Joined: Fri Apr 05, 2019 4:06 pm
Location: Italy

Re: (Mikrotik LHGG LTE6) LTE randomly disconnects multiple times a day

Sat Feb 04, 2023 9:17 am

From my personal experience I can tell you that both Wind3 and Iliad are disconnecting at least every 24h, if not 12h sometime (at least in my area).
So it's the operator, not the modem.
In my case I was able to make that happen at night and it stays for 24H most of the time, until next disconnection.
I had issued a disconnect at night and since then it takes the 24H cycle, so each night at same time it disconnects and renews IP and I have done this on both operators within 5min offset between them.
 
User avatar
Amm0
Forum Guru
Forum Guru
Posts: 3169
Joined: Sun May 01, 2016 7:12 pm
Location: California

Re: (Mikrotik LHGG LTE6) LTE randomly disconnects multiple times a day

Sat Feb 04, 2023 11:09 am

IMO it's the needing a manual restart part that's worth investigating before writing it off as a carrier issue. Certainly could be the carrier, but verdict still out.

If the LTE interface recovers on it own in a "reasonable" amount of time, that's kinda different issue... than having to enable/disable the interface to get it working. The logs generally gives some good clues with LTE.
 
accarda
Member Candidate
Member Candidate
Posts: 208
Joined: Fri Apr 05, 2019 4:06 pm
Location: Italy

Re: (Mikrotik LHGG LTE6) LTE randomly disconnects multiple times a day

Sat Feb 04, 2023 11:12 am

Sure then.
But those 2 operators that I mentioned are known for disconnecting clients every 12/24H and I tested this on couple of installation with different routers/modem.
So if Alessio is using one of them, it’s operator behavior to apply such disconnection, while if he is using something else, then it could be other reasons.
 
alessiov10
just joined
Topic Author
Posts: 12
Joined: Sun Jan 29, 2023 4:17 pm

Re: (Mikrotik LHGG LTE6) LTE randomly disconnects multiple times a day

Sat Feb 04, 2023 2:06 pm

Sure then.
But those 2 operators that I mentioned are known for disconnecting clients every 12/24H and I tested this on couple of installation with different routers/modem.
So if Alessio is using one of them, it’s operator behavior to apply such disconnection, while if he is using something else, then it could be other reasons.
I'm on Kena (TIM), so no disconnections.
Anyway after updating RoS to 7.7 it looks like it's not crashing anymore. I'll keep checking for the next few days, if it keeps going like this, well the problem was RoS
 
howanski
just joined
Posts: 1
Joined: Sun Nov 19, 2023 12:57 am

Re: (Mikrotik LHGG LTE6) LTE randomly disconnects multiple times a day

Sun Nov 19, 2023 1:31 am

Maybe that is some problem with one of the counters? Mine new router hangs every 6.86 or 6.87 GB Rx+Tx data transferred and then I have to manually disable/enable lte device. Still on testing SIM but that doesn't seem right. 67500000000b is also processed as 38 bit number on the verge of being 39-bit, maybe there's some issue that some variable is still 32bit - scratch it - 38 bit thingy int somewhere in the code that someone created in 80s and noone dares to touch it as it is scary and just fills a loop betwen 32 and 64-bit systems?

Who is online

Users browsing this forum: SMARTNETTT, Turbovix and 33 guests