Electronics > Beginners

Smart multiple USB connectors handling

(1/3) > >>

Chillance:
H!

So, I have this part of a PCB design that was made earlier for one USB connector. USB mini to be exact. I was thinking it would have been nice to have both USB mini and USB micro in the same circuit, and make it seamless to use either or. As you can see in the attached file, I was first thinking that could kinda work, but I'm guessing if I connect to both at the same time things wouldn't work properly.

Looking around how to do this properly I found some USB switches ICs like the TS3USB30, but those don't seem to be smart enough to detect what USB was connected last. The idea is that if someone connects to both, the last one would be the one that works. Essentially disable the other one. And also, since having two connected probably wouldn't work either way, it would have been nice with a solution that can disable one of them in a smart way. The ICs I've found seems to recommend a microcontroller to control which USB to use, but I think it would be cooler if the circuit itself did this automatically in some smart way.

And thus, I thought I turn here, to this forum hoping that you here would have bright ideas how to do this properly. Since I haven't found a smart enough ICs for this so far, I'm thinking it might be possible to maybe use the VBUS or and something that could possibly set the pins properly on one of those USB switching ICs to enable and disable the USB automatically.

Actually, according to the truth table, I suppose one way to do this would be to put S and OE low having USB1 enabled by default. And then take power from USB2's VBUS (possibly through some regulator to get from 5V to 3.3V) and put that on S to drive that high, which then should enable USB2. Hopefully that will be quick enough for the IC to switch over so the USB communication works properly. Problem here though is that this would mean that as long as USB2 is connected, it wouldn't switch over to USB1 even if I would replug that one.

Thoughts? How would you do this?

Thanks!

Nominal Animal:
From a purely user viewpoint, I'd personally rather have a mechanical switch, or a button with an indicator light, to choose the port to use.
Heuristics always get it wrong in some use cases, you see.

Chillance:
That is interesting feedback for sure. I'm all for convenience here and I just like the thought of just plugging in and it works, but I suppose a switch and a LED would make things quite clear too.

Nominal Animal:
I have a few microcontrollers with different USB connectors (USB 2.0 Mini-B and Micro-B), and I normally use a hub integrated to a splitting cable (with each end being a different port on the hub).  I assume you don't want to use an USB hub, because your device is an USB device and not a host, and you wish to use the connectors to potentially different hosts, not different devices.

So, considering the reverse case, a single device connected to multiple hosts, I'd definitely prefer the button-to-select-which-one approach, especially if it had a small (not too bright!) LED next to the currently active connector.  Any kind of autodetection would most likely surprise me at the worst possible moments; especially if the detection is fooled by host USB PHY powercycling.  (I believe those chips would be, for USB ports with proper power control.)

However, I also worry about ground loops a lot.  If both are connected at the same time, then their grounds are connected; if there is a potential difference in the grounds, trouble.

Considering all this, would an USB Mini-B (F) to Micro-B (M) adapter (or short cable), with only Micro-B (most common nowadays) on the device, be the "easiest" option?

Chillance:
Well, sure, I can have only one connector. For what I'm doing now, I really only need one connector, but still, I like this approach in this case. Personally I still prefer Micro USB because it's more robust in my experience. Mini tends to be more flaky after many usages. It's a shame mini "won" that battle.

So, this is why I wanted to include both USB connector versions. That way, one have more options regarding what cables you might have at home too.

I've actually added the sliding switch JS202011SCQN, that just selects both D- and D+ from one of them. Each VBUS is connected to their own LED (500ohm resistor good enough I suppose). Just before the diode.

This should work I think. :)

Navigation

[0] Message Index

[#] Next page

There was an error while thanking
Thanking...
Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod