Lurker News

Comments (109) 9 threads

Show all comments

Showing thread 1 of 9

jsmith452 replies#
While this does largely work, there are a few complications.

The biggest one being power management, especially the cutting off of power to a specific port. If a host wants to cut off power to a 3.x device, it typically needs to know which 2.x port that device is connected to. The host internally can have some really wild mappings of 2.0 and 3.x hubs, controllers, etc, but the device tree or ACPI tables let it know exactly which ones are paired together for any port leaving the device. After that point it is assumed that the host can learn the topology from any hubs attached. The power management is tied to the 2.0 port. Unexpectedly splitting the topology could lead the host to instruct a hub to cut off power to the wrong port when trying to target a specific USB 3.x device.
Also, if a hub indicates that a device is drawing excessive current, and there is nothing communicating on the 2.0 lines, there is a risk of the wrong 3.x getting blamed by the host, possibly showing a warning popup to the user with the wrong device name, or similar.
This isn't to say this is always a problem, because it isn't but it is something to be aware of.

arcticbull3 replies#
It's also just straight up not permitted per USB3.2, as USB3 devices are supposed to, per spec, be able to drop down to USB2 speeds. OS support varies, it might work, it might not.

FTA: > If you are building an inline USB-C tool where your MCU only needs a slow control channel and the host just needs fast passthrough to the downstream device, you might not need a USB 3 hub. USB-C gives you two independent buses in the same port. The OS knows they're both peripherals are assigned to the same logical connector.
This is bad advice in general because USB-C does not actually give you two independent busses in the same port.

fcjr1 reply#
w/ the hub on the 2.0 lines, the usb3 device can drop down to 2 just fine
arcticbull3 replies#
TI addressed this on their forum a while ago.

> Can you connect a USB 3.0 device and a USB 2.0 device to the same downstream port of a hub? We don't recommend it. The devices will enumerate and traffic will be routed correctly, but as noted above, the two devices would share a single port power control. Also, the USB specification requires all USB 3.0 devices have the ability to drop to USB 2.0 speeds. Since the USB specification does not allow for two different speed devices connected to the same USB port, TI cannot guarantee that all USB drivers / host controller would support that implementation.
https://e2e.ti.com/support/interface-group/interface/f/inter...
Is it gonna work? Usually, but not properly, and it's not an approach I would recommend for any production devices.
If you are okay being non-compliant with the USB spec and hoping for the best, it's an option for some small run stuff you test. For this application it's probably fine because you know how your host controller behaves but it's not a good approach in general, and may stop working at some point in the future as the busses are not independent. They share a power control and the same logical port identifier, and this is not a support configuration per the USB spec.
For the record I do think this is very cool and the only thing I'd change about the blog post is mentioning that the busses are not actually independent and this is not a supported configuration.

fcjr1 reply#
yeah thats fair, thanks for the context and the ti link, super helpful to learn about all potential issues w/ this setup! planning to go through everyone's feedback here and updating the post. to be honest this was mostly an experiment, i had medium confidence that i'd even work, still unsure myself if this is a sku thats worth putting out into the world or if i should just go with the slightly higher cost spec compliant bom

Continue this thread — 1 reply

johnwalkr1 reply#
The TI forum is really good, I was confident the link you posted would be an authoritative reference, and it was. If you ask a very technical question you will often also get follow-up questions that nail down a root cause quickly. Come to think of it, I don't think I've ever asked a question there because whenever I've searched for an error code or seemingly obscure problem, there's already an answer for me with enough detail to know that it also applies to my problem. TI also tends to send engineering samples without much fuss so as an engineer you can essentially bypass your procurement department when doing prototyping. My experience with this is as a grad student in Japan, so they must really have a policy to make engineers fans of the company.

Continue this thread — 1 reply

stephen_g#
I think it's fine for such a niche application when the behaviour of all the hosts (Macs) and targets (Macs, iPhones and iPads) are so consistent and well-known. I've seen the standard abused in much worse ways!

I don't think port power control is even that important in the days of USB-C PD, since ports have to be tolarant to 20+ V and carry current both ways, the inbuilt port protection is way better than the days of USB-A. And even with USB-A, a lot of cheap hubs don't even bother with port power control, they might just have a resettable fuse or something on VBUS on the upstream port and then all the VBUS of the downstream ports are connected together!

amelius2 replies#
> It's also just straight up not permitted per USB3.2

Who cares if it works? We're talking about a tool here that is used by experts, not a mass consumer product.

stkdump#
A disclaimer that would be missing from TFA.
bigstrat2003#
Experts tend to be the ones who care the most if something is not to spec.
gsich#
>It's also just straight up not permitted per USB3.2, as USB3 devices are supposed to, per spec, be able to drop down to USB2 speeds. OS support varies, it might work, it might not.

That does not mean that the host side has USB 2.0 pins for that. Lenovo (ab)uses this for some devices in their notebook.

PaulHoule1 reply#
In a lot of ways I experienced USB 3.0 as a regression.

Like the USB 1.0 spec described how you could hook up 128 devices or so devices to a port although it didn't promise it would work I can say I put together some pretty big USB 1.0 and USB 2.0 trees and they worked.
Back in the late 2010s I had numerous laptops which I would try to make a kind of "docking station" with USB audio and external storage and SD card readers and such and what I always found was that there was some resource limits somewhere in the system and at some point plugging in a new device would cause an old device to drop out which could possibly force the uncontrolled unmounting of a filesystem. Sure, today's commercial filesystems are robust against this, but I hate it.
I looked closely at the USB 3.0 spec and found it didn't make any promises at all about configurations involving hubs and came to the conclusion it didn't make sense to use hubs with 3.0 at all and if you didn't want to be miserable you should just plug in one device into one port on the host.

pwdisswordfishq1 reply#
Pretty weird given that it seems like back in USB 1.0 days, it would have been less of a problem to install extra USB ports directly in the host than now.
PaulHoule1 reply#
Well... Mac laptops have as few ports as they can get away with and I hear they are completely asymmetrical in capabilities. Windows laptops have more ports and they're all FUBAR. I do have a PC that I built a few years back which has about 15 or so USB/USB-C/Thunderbolt ports. That machine never has problems!

Continue this thread — 1 reply