Live data from Hacker News

Uhubctl – Control USB power per-port on smart USB hubs

github.com

11–18 of 18 posts

Re: Uhubctl – Control USB power per-port on smart USB hubs

#11

Super useful, just wish it was easier to find supported devices. I ended up ordering 3 from Amazon that looked like they should work from the list, but ended up not completely cutting power, or having other issues. I think especially the cheap hubs will changes the parts used overtime and not update the revision. Using on a CI pipeline to dfu flash and devices and run some tests. If anyone has some know to work that…

I had a similar usecase and also struggled with supported devices. Ended up grabbing some Yepkit switchable hubs (aka YKUSH), they work great, but a tad on the pricey side.

Re: Uhubctl – Control USB power per-port on smart USB hubs

#12
post #7

Super useful, just wish it was easier to find supported devices. I ended up ordering 3 from Amazon that looked like they should work from the list, but ended up not completely cutting power, or having other issues. I think especially the cheap hubs will changes the parts used overtime and not update the revision. Using on a CI pipeline to dfu flash and devices and run some tests. If anyone has some know to work that…

I created these which I guarantee to work https://modularkvmip.com/product/usb-hub

[deleted]

Re: Uhubctl – Control USB power per-port on smart USB hubs

#13
Is there any way to make it so that when you plug new things in, the power doesn't renegotiate causing other things plugged in to reconnect/flicker/interrupt.

Looking for high power USB C hubs that don't do that, but seems most do as part of PD and need isolated slots that don't draw from shared potential... programmatically locking specific power to laptop hub, while others negotiate would be ideal...

Re: Uhubctl – Control USB power per-port on smart USB hubs

#14

Is there any way to make it so that when you plug new things in, the power doesn't renegotiate causing other things plugged in to reconnect/flicker/interrupt. Looking for high power USB C hubs that don't do that, but seems most do as part of PD and need isolated slots that don't draw from shared potential... programmatically locking specific power to laptop hub, while others negotiate would be ideal...

Jeff Geerling has some videos about that. It's a hardware thing. https://www.youtube.com/watch?v=twoAW0eLiXY

Re: Uhubctl – Control USB power per-port on smart USB hubs

#15
post #7

Earlier quoted context omitted.

I created these which I guarantee to work https://modularkvmip.com/product/usb-hub

These look great. I wish they had existed way back when I did embedded work every day. What was the process like to create them? Did you design them from scratch, get them built to spec, something in between? The switchable host is interesting to me. What do people use that for?

I run virtualhere.com and i referred customers to the uhubctl list over the years so they can powercycle development boards and iLoks remotely that they use via virtualhere. I was tired of the recommended hubs changing internals (some models working some not) so i thought about creating one myself. So just went with a quality usb hub chip from Microchip that is actually documented (registers etc) and followed the spec and found a manufacturer in china to route/complete it. (Did the same with the other KVM/IP stuff i created).

The big issue i encountered is the hub programming software from Microchip is full of bugs and basically unusable and the docs are also a bit wrong. So i had to write a programmer from scratch to remotely program the hub chip registers so they are ready for manufacturing. E.g allocating unique serial number, setting up the chip fuses etc. That actually took most of the time. It programs everything from australia via virtualhere during manufacturing in china. I had trouble with the Great firewall blocking virtualhere half way through too! So i had to turn of ssl

The switchable host im not sure. I dont think many customers use it, I do have a few that use it for switching mouse and keyboard they plugged in. That functionality came with the hub chip so i just wired it up as it didnt cost extra. The hub chip also came with GPIO/uart routing but i didnt hook that part up.

Post reply on HN