FEAT REQ - USB Reset

A great feature would be a usb reset for devices such as ilok which is painfull when you need to switch over another computer ...

#2

Its already there and automatically triggered, but you need a server or hub that supports per port power switching. Some synologys support this and the pi supports this on some of its usb ports..

#3

I have ilok over on an amazon basic switch on my router synology RT1900AC, do you mean if i plug directly it will reset usb ?

Ok just found a list of compatible hub :
https://github.com/mvp/uhubctl

And thank, i have an old Hub USB D-Link DUB-H7, i will try when i get back home...

Thank you Michael !

#4

Yes i was going to recommend that list except that, i have found e.g the Amazon Basics hub they recommend doesn't work anymore with per port power switching (the one i ordered about 6 months ago does, but the another customer just ordered one recently and it didnt work, amazon must have changed the insides for the hub to another manufacturer)

If you plug a per port power switched hub in then virtualhere server WILL automatically power off/on the hub so that ilok can be used

#6

Yes its strange, there is a market for a USB Hub device that follows the usb spec with per port power switching but i dont know of any manufacturer that is producing such a hub (nevermind actually following the USB spec as they should!) They must be trying to save production costs if they can save a trace or two...

The only device i know to work for sure as of now is the raspberry pi 2 and 3

#7

USB D-Link DUB-H7 SILVER behind RT1900ac seems to send power on / off command because the led switch on/off but not long enough ... still have the message.

Is there a way to set the duration of the usb reset with onClientBeforeUnbind ?

#8

I think that hub was on the list (https://github.com/mvp/uhubctl) but i recommend a pi as im not sure that list is accurate anymore...

#9

Hello,

In fact connected to the mac i can switch on and off the power supply :

Fred-MacBookProMobile:~ admin$ uhubctl -a off -p 4
Current status for hub 20-2, vendor 2001:f103, 7 ports
Port 4: 0103 power enable connect [0000:0000]
Sent power off request
New status for hub 20-2, vendor 2001:f103, 7 ports
Port 4: 0000 off
Fred-MacBookProMobile:~ admin$ uhubctl -a on -p 4
Current status for hub 20-2, vendor 2001:f103, 7 ports
Port 4: 0000 off
Sent power on request
New status for hub 20-2, vendor 2001:f103, 7 ports
Port 4: 0100 power
Fred-MacBookProMobile:~ admin$ uhubctl -a off -p 4
Current status for hub 20-2, vendor 2001:f103, 7 ports
Port 4: 0103 power enable connect [0000:0000]
Sent power off request
New status for hub 20-2, vendor 2001:f103, 7 ports
Port 4: 0000 off

It's virtualhere that restart to fast the power supply so the previous computer is still memorized ... could you add more time after the usb port is set free ?

#10

I think you are staying virtualhere is powering off then powering on the port too quickly.

I dont think that is the case. VirtualHere powers off the port waits 500ms , then powers on the port.

What kernel version is your rt1900ac running? do "uname -a"

Maybe its a really old kernel that doesnt properly support the power cycle code. If you tell me the kernel version it might help diagnose the issue.

You can m

#11

> uname -a
Linux 3.6.11+ #6542 SMP Tue Oct 3 16:23:26 CST 2017 armv7l GNU/Linux synology_northstarplus_rt1900ac

#12

You can power off/ on the port as single instructions like this

Right click on the iLok and select "Custom Event Handler..." then enter

port=off

then click ok.

Then to turn the port back on again do

port=on

Now you can control the interval between power off and power on

#14

Wow, thats a surprise, i didnt think it would make a difference. The default power cycle waits 500ms, perhaps i should switch that to a longer value....

#16

Can you try the power off/ on with the Amazon basics hub and tell me if it works

#17

The ilok light switched off and on very well, but i still have the message from the ilok manager ! :(

#19

OK i thought you might have had the amazon basics hub on the uhubctl list, but yes that 2.0 hub wont work with power switching..

#20

I'm having a related question and problem (let me know if I should start a new thread)

I have a windows 10 virtualhere server running as a service on a desktop and the client running on a Windows 10 laptop, all on a local network. I'm using the free version of the server if that matters. VirturalHere seems set up correctly, I can see the iLok and can use it, but I get the dreaded iLok sharing error even when the iLok is plugged directly into the desktop tower and not a hub.

Does windows 10 support power switching?

Even when I physically disconnect and reconnect the iLok I still get the error. I actually haven't been able to use the iLok successfully once through virtualhere on my laptop. I get the sharing error every time. Am I doing something wrong or will the iLok just not work on the windows server?

Being able to access the iLok plugged into my desktop on my laptop while on my home network is my main motivation for using VirtualHere, so any help figuring this out would be appreciated. Thanks in advance!

#21

No, windows or osx as the server does not support port power switching, there is no way to access the actual hub on those operating systems. Only linux can do that.

#22

Aw ok. At least I know I'm not doing anything wrong now. I've been thinking about getting a raspberry pi for awhile, now I have a good excuse to buy one.

Thanks!

#23

Is this auto trigger feature still functional?

I have an ILok licenser connected to a Synology NAS running the VH server, but I always have to manually do a port=off/on cycle to get it working.
The clients OS is Win10.

Nils

#24

Yes its all still functional. Try updating your virtualhere server to the latest (the synology app center has an older version of virtualhere) https://www.virtualhere.com/nas

#25

OK, I will try, thanks!
Do I have to deinstall the old package before updating?

Nils

#26

No

#27

Now it works great! Thanks a lot!

Nils