Toggling USB power

I have a router Zbtlink ZBT-WR8305RT with openwrt-19.07 branch (git-21.018.57536-6ba9740).

I need a way to reset my USB-modem connected to the router by toggling the power OFF and ON from the command line.

I tried exporting GPIOs (not all of them can be exported), setting them as outs and trying to change values to 0 or 1 and it doesn't work.

What I'm trying to achieve can be done through LuCI (Modem -> Miscellaneous -> RESET USB 1), I can see the power on the modem disconnected and connected again. But is there a way to replicate the effect through the command line and later in a script?

Thanks.

Even if this device have been EOLed by OpenWRT, you should probably update to the latest available release, which appears to be 22.03.

Ah, I see. I'll try to update it, thanks.

Find the "authorized" file under /sys/bus/usb/devices/1-1/ (or whatever port your modem is using) and write a "0" to it, wait a short time and then write "1". I've tried just now with my USB UPS and it disconnected and reconnected, but I don't have a multimeter to check if power was actually cut.