Hi, I’d like to power off my wifi dongle connecting to Hex Poe USB port during weekend. But seems like RouteOS lacks the capability to power off/on the USB port. What I can find is the USB power reset feature. Not sure what’s the max seconds duration of the power reset can be set. If I put a large number, eg. 172,800 seconds (48 hours), will that cause unexpected behaviour, like memory leak on hex poe? Anyone has experience on that? Thanks.
Why “power off” specifically? Are you trying to save watts or just disable its function?
If the latter, then this will work:
ssh myrouter /interface bridge port disable [find interface=wlan1]
Call “enable” early Monday morning to revert the change.
Obviously this depends on SSH. You could do this instead with on-router scripting or with calls to the router’s REST API.
As for getting it to happen at the times you want, I’d use cron, but I’m an old Unix geek, so there you go. Any decent command scheduler will have a way to express the weekend rules you want.
Thanks @tangent.
To be specific I want to save power during night.
The USB Wifi Dongle I am using can pass data both through wifi and USB connection. On RouteOS interface, it shows up as lte1. I’ve already disabled that as I don’t use this USB data function. I purely use hex poe USB port for that dongle powering.
So I want every night, this wifi dongle can be turned off (save power & turn off wifi signal).
What I put in RouteOS script is ‘/system routerboard usb power-reset duration=36000s’ and use scheduler to run the script each day on 9pm.
@florid, buy a 7 days programmable socket timer that power_all_off, not only the wifi…