Custom event handler

Hello, first of all congrats for this fine piece of software!

I am using an GL-AR300M16 with CloudHub fw, connected to a "dumb" hub with some ilok licences. I bought a DUB-H7 but got rev F1, not working.

But I can power cycle the router port just fine using "power_cycle_port" custom event on the client, and all iloks on the hub will get reset.

However, the custom event command will not persist in the command box if I restart the client (on windows 10). Is this by design? Can I make it permanent?

I would very much want to make it on demand, if possible.

And another question about the licence (that I just bought): 

If I would install OpenWRT on the same router and run the server from that install, will my license code work with that install?

Thank you!

#2

Actually i think i see the issue. The reason is the hub you are using does NOT support PPPS so you are right clicking on the hub in the client and selecting power_cycle_port however this will power-cycle the actual port in the gl-ar300m16 not the individual hub ports.


If your hub correctly supported PPPS then the individual iLoks would automatically power cycle without you having to do anything.

 

 

#4

You need to get a new hub which supports per-port-power-switching then it will be automatic. Otherwise you need to use the power_cycle_port manually like you are doing

#5

Yep, I know. Didn't find any available around here, looking at uhubctl list, and MEGA4 seems to fragile without a case. I hope you will get to sell your hub some time.

I was wondering why the command does not persist in the text box so I don't have to always paste it.

Anyway, I managed to write a small script that that does the power cycling, I can call trough ssh.

#!/bin/sh
echo "hub power off.."
echo 0 > /sys/class/gpio/usb_power/value
sleep 2
echo "hub power on.."
echo 1 > /sys/class/gpio/usb_power/value
sleep 2
 

#6

Yes my hub is currently being manufactured right now. Im doing a run of 500. The VirtualHere hub will work with power cycling since i designed it that way from the start and it has a aluminium case.