Hello,
I would like to ask you how would you solve following problem with 3G dongle and RB750UP. We have RB750UP with 3G dongle configured together and use watchdog with some ping IP configured. In situation when 3G dongle hangs, watchdog resets Mikrotik, but it seems that there is no outage of USB power during reset, so freezed 3G dongle will not recover.
Do you have any experience with this? Why Mikrotik do not reset also USB power during restart of RouterOS? It would help in situations like this…
We had to write our own script to do this…
We schedule it to run every minute.
:global wdtimer
:local count [ /ping count=5 address=some.ip.address interval=0.5s ]
:if ( $count > 3 ) do={
:if ($wdtimer > 0) do={
/log info "WATCHDOG Recovered"
}
:set wdtimer 0
:return 0
}
:set wdtimer ($wdtimer +1)
/log warning "WATCHDOG DOWN $wdtimer"
:if ( $wdtimer = 4 ) do={
/log error "WATCHDOG DOWN $wdtimer RESET USB POWER"
beep frequency=1000
/sys routerboard usb power-reset duration=2s
}
:if ( $wdtimer = 5 ) do={
/log error "WATCHDOG DOWN $wdtimer WAITING FOR USB"
beep frequency=1000
}
:if ( $wdtimer > 5 ) do={
/log error "WATCHDOG DOWN $wdtimer REBOOT"
beep frequency=1000 length=60
/sys reboot
}
Thank you for your script, but it is something different I have asked for. RB750UP does not have USB reset implemented, so I hoped that full RouterOS restart will also reset USB dongle, but it seems it does not.
Mine has it…
[root@sw07] /system routerboard> pr
routerboard: yes
model: 750UP
serial-number: 4C9904XXXXX
firmware-type: ar7240
current-firmware: 3.17
upgrade-firmware: 3.24
[root@sw07] /system routerboard>
settings usb export get print upgrade
[root@sw07] /system routerboard> usb
edit export get power-reset print set
[root@sw07] /system routerboard> usb
Looks like I should update the bootloader though. ![]()
What ROS and bootloader version are you running?
Please, try to use it. What message do you see?? It really means nothing that this command is listed in terminal.
My apologies. You’re absolutely correct. “ERROR: USB power reset not implemented on this hardware”
I’m guessing that the reset not implemented and the fact that the power doesn’t cycle on reboot are related. The USB power is probably coming directly from a voltage regulator fed directly by the PoE or adapter.