Community discussions

MikroTik App
 
vanille
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 53
Joined: Thu Apr 29, 2021 4:48 pm

HELP: script to reset LTE card when internet connection is lost

Tue Aug 31, 2021 12:47 pm

Is there someone that can help me to develop a script that every time the Mikrotik looses the internet connection then it reset the LTE card?

Thanks
 
ConnyMercier
Forum Veteran
Forum Veteran
Posts: 723
Joined: Tue Dec 17, 2019 1:08 pm

Re: HELP: script to reset LTE card when internet connection is lost

Tue Aug 31, 2021 2:18 pm

Good Morning,

Question 1 : Setup
Mirkotik with Onboard LTE, which Modell?
or Mikrotik with USB LTE-Modem?
or Mirktoik with Passthough LTE form another Mikrotik ?

Question 2: Symptomes
When the Problems occurs and there isn't a Internet connection anymore,

- Is the Interface still Running?
- Is there a LOG entry ?
 
Zacharias
Forum Guru
Forum Guru
Posts: 3459
Joined: Tue Dec 12, 2017 12:58 am
Location: Greece

Re: HELP: script to reset LTE card when internet connection is lost

Tue Aug 31, 2021 3:23 pm

I think you can find the information you look for here https://wiki.mikrotik.com/wiki/Manual:Interface/LTE
 
vanille
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 53
Joined: Thu Apr 29, 2021 4:48 pm

Re: HELP: script to reset LTE card when internet connection is lost

Tue Aug 31, 2021 3:49 pm

Thanks for the support.
This is the model: RBwAPGR-5HacD2HnD&R11e-LTE
https://mikrotik.com/product/wap_ac_lte_kit

Most probably the SIM card holder is faulty and every1 or 2 days the modem looses the Internet connection and the log days "SIM card not inserted".
The way to solve is to power cycle or perform a LTE card switch OFF and then ON again from the web interface.

So if a script is able to trigger the when internet connection is no more available and perform a OFF\ON or a reset of the card... this will solve.

Thanks.
 
Zacharias
Forum Guru
Forum Guru
Posts: 3459
Joined: Tue Dec 12, 2017 12:58 am
Location: Greece

Re: HELP: script to reset LTE card when internet connection is lost

Tue Aug 31, 2021 3:52 pm

Is the SIM card correctly positioned ?
Is the SIM card in good condition ?
 
vanille
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 53
Joined: Thu Apr 29, 2021 4:48 pm

Re: HELP: script to reset LTE card when internet connection is lost

Tue Aug 31, 2021 4:05 pm

this setup run almost 1 year and half more or less and weeks ago suddenly this problem appeared.
The SIM is OK and the problem persists even swapping to a brand new SIM
 
ConnyMercier
Forum Veteran
Forum Veteran
Posts: 723
Joined: Tue Dec 17, 2019 1:08 pm

Re: HELP: script to reset LTE card when internet connection is lost

Wed Sep 01, 2021 10:18 am

Good Morning,

Script :
You can simply add the Code in Netwatch or
if you need more control use a scheduler-Task
/interface lte disable lte1;
:delay 5;
/interface lte enable lte1;
Extra :
If i had to diagnose the Problem i would,


Step 1:
- Update RouterOS and Bootloader to Current-Tree
- Upgrade LTE-Firmware

Step 2:
If the Problem persists,
I would open up the WAPac_LTE to Clean and
inspect the Board , miniPCIe slot and LTE-Card and Connection.....

After a Year in the outdoors , my routers are usually filthy inside and out !
P.S: This might void your warranty!
 
Zacharias
Forum Guru
Forum Guru
Posts: 3459
Joined: Tue Dec 12, 2017 12:58 am
Location: Greece

Re: HELP: script to reset LTE card when internet connection is lost

Wed Sep 01, 2021 10:49 am

If the SIM card holder is faulty, how can a reboot, as you said earlier, solve the problem ?
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11967
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: HELP: script to reset LTE card when internet connection is lost

Wed Sep 01, 2021 10:54 am

If the SIM card holder is faulty, how can a reboot, as you said earlier, solve the problem ?
Right, sometime I solve similar problems changing PoE injector or the power source...
 
vanille
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 53
Joined: Thu Apr 29, 2021 4:48 pm

Re: HELP: script to reset LTE card when internet connection is lost

Wed Sep 01, 2021 5:52 pm

I agree with you.
What I understood is that, most probably, SIM holder's contacts some time loose the connection so the message in the LOG is "SIM removed" even if no one touched anything and is fixed with a power off\on, a reboot or a LTE card disable\eneable
 
Zacharias
Forum Guru
Forum Guru
Posts: 3459
Joined: Tue Dec 12, 2017 12:58 am
Location: Greece

Re: HELP: script to reset LTE card when internet connection is lost

Wed Sep 01, 2021 7:50 pm

I dont't think that a reboot would solve such a problem... but anyways...

But even if the sim holder is faulty, it is easy to check it... Wap has a screw at the bottom, when you remove it you can pull it and reveal the SIM holder ...
https://help.mikrotik.com/docs/display/UM/wAP+R+ac
 
vanille
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 53
Joined: Thu Apr 29, 2021 4:48 pm

Re: HELP: script to reset LTE card when internet connection is lost

Thu Sep 02, 2021 12:00 am

Not so easy to reveal the SIM holder.
You have to remove the white cover, I mean the one protecting the electronics.
Then remove the two WiFi antennas, remove some screws around, remove the LTE modem card from the miniPCI slot, remove other screws under the modem then finally you can split the electronc board from the alluminum black base.
The SIM holder is "hidden" between the electronic board and the alluminum base.
 
Zacharias
Forum Guru
Forum Guru
Posts: 3459
Joined: Tue Dec 12, 2017 12:58 am
Location: Greece

Re: HELP: script to reset LTE card when internet connection is lost

Thu Sep 02, 2021 9:01 pm

The SIM card holder, as far as i remember from the last time i replaced the LTE modem on a WAP, is just on the back side of the PCB... no need to remove the modem...
But if you don't feel comfortable checking the SIM card holder, sure don't try it...
 
User avatar
SiB
Forum Guru
Forum Guru
Posts: 1888
Joined: Sun Jan 06, 2013 11:19 pm
Location: Poland

Re: HELP: script to reset LTE card when internet connection is lost

Mon Sep 06, 2021 10:20 pm

I do two that scripts:
Simple watchdog: viewtopic.php?f=7&t=153622&hilit=watchdog#p767767
Advance watchdog: viewtopic.php?f=9&t=151492&hilit=watchdog#p768392

You welcome. If you need assistance I help remotely too, ask at Telegram. For LTE stuff it's always FREE.

Who is online

Users browsing this forum: Amazon [Bot], carcuevas and 31 guests