Community discussions

MikroTik App
 
kiloon
just joined
Topic Author
Posts: 12
Joined: Sat Jul 09, 2022 2:14 pm

LTE device disonnecting

Thu Aug 18, 2022 8:03 pm

Hello dear friends. Here is my subject: LTE device has disconnecting some times and I am loosing internet connection.
Solution is to disconnect USB power for 5 seconds (system/routerboard/usb/power-reset duration=4)
So i would like to automate this as a script. When LTE device not searching for network it will run this script.
Any help will be very appreciated!
 
eldoncito2019
Member
Member
Posts: 332
Joined: Fri Jun 14, 2019 1:07 pm

Re: LTE device disonnecting

Fri Aug 19, 2022 1:55 pm

:if ([/ping 8.8.8.8 count=5] = 0) do={/system reboot}



EL DONCITO.
 
BillyVan
newbie
Posts: 36
Joined: Tue Sep 04, 2018 10:29 pm
Location: Greece

Re: LTE device disonnecting  [SOLVED]

Fri Aug 19, 2022 2:17 pm

Give a try on Schedule interval time 00.01.00

:if ([/ping address=8.8.8.8 count=5 interface=lte1 size=50]=0) do={
:log error "LTE DOWN";
/interface disable lte1
/delay 1s
/interface enable lte1}
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11967
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: LTE device disonnecting

Fri Aug 19, 2022 2:23 pm

«only 1 minute between try» = «continuosly activation and reactivation of lte»
 
User avatar
Jotne
Forum Guru
Forum Guru
Posts: 3279
Joined: Sat Dec 24, 2016 11:17 am
Location: Magrathean

Re: LTE device disonnecting

Fri Aug 19, 2022 4:43 pm

 
kiloon
just joined
Topic Author
Posts: 12
Joined: Sat Jul 09, 2022 2:14 pm

Re: LTE device disonnecting

Sat Aug 20, 2022 1:44 pm

Thank you guys so much for answering! I would definitely use Netwatch but my first question is what should i write In the field that is named "Host"
Do i have to put ip address of this device? (let say it does have 192.168.8.1)
My understanding is that if the host is "down" in the Down field i should put my script.
Sorry for being newbie =) but i am learning.
 
User avatar
Jotne
Forum Guru
Forum Guru
Posts: 3279
Joined: Sat Dec 24, 2016 11:17 am
Location: Magrathean

Re: LTE device disonnecting

Sat Aug 20, 2022 8:32 pm

See script here: viewtopic.php?p=888800#p888800
It can be changed to use email/pushbullet etc to send information.

Who is online

Users browsing this forum: No registered users and 23 guests