Community discussions

MikroTik App
 
dfdf
newbie
Topic Author
Posts: 36
Joined: Wed Dec 08, 2021 3:51 pm

/system routerboard usb power-reset duration=9999d

Thu Nov 24, 2022 4:53 am

Hello, I'm having issue with ROS 7.6 regarding to
/system routerboard usb power-reset duration=9999d
In ROS 6 I was able to issue
/system routerboard usb power-reset duration=9999d
/system routerboard usb power-reset duration=0
and didn't get any error, but in ROS 7 if I do the same, I'm getting "ERROR: reset in progress"
Moreover, entire script using this code is halted with the same error and even do { } on-error={} construction dosn't help to catch the error.
And after duration=9999d (this is more than 27 years) the only way to reset USB in ROS 7 is to reboot router

This was a VERY USEFUL feature in ROS 6 and it's broken in ROS 7.
Consider the following scenario:
primary link to internet is wired connection
backup link to internet is an LTE usb modem connection with pay-for-connection-per-day subscription (if you have your modem on during the day, you pay, next day - off -- no payment)

Monitoring script can do
/system routerboard usb power-reset duration=9999d
to turn USB modem off until primary link goes down, after that the script issues /system routerboard usb power-reset duration=0 and LTE modem is up and running until primary link is back so monitoring script issues /system routerboard usb power-reset duration=9999d to turn modem off again, and so on...

But in ROS 7 this is no more possible.

Tested at least on two different devices running ROS 7.6

Any comments regarding this issue are appreciated.
You do not have the required permissions to view the files attached to this post.
 
jzyken
just joined
Posts: 1
Joined: Sun Mar 26, 2023 1:08 pm

Re: /system routerboard usb power-reset duration=9999d

Sun Mar 26, 2023 1:18 pm

I totally agree! There was a convenient function to disable and enable the USB port using the script, now it is broken =(
Please add the ability to cancel the reset process.
Last edited by jzyken on Sun Mar 26, 2023 1:19 pm, edited 1 time in total.
 
Vorderwaeldler
just joined
Posts: 7
Joined: Wed Aug 09, 2023 2:49 pm

Re: /system routerboard usb power-reset duration=9999d

Sun Mar 10, 2024 6:21 pm

Stupid fix for the problem:
# Deactivate USB for a "normal" time
/system/routerboard/usb/ power-reset duration=604800s

# Reactivate USB
/system/routerboard/usb/ power-reset bus=1

Who is online

Users browsing this forum: No registered users and 26 guests