Help needed with usb split

Thread Starter

ceefna

Joined Feb 21, 2012
42
Hi I’m having an issue with what I thought was going to be super simple.
I have a Teensy 4.1 connected via its micro usb b connector to a USB B and mini USB B breakout pcb’s.
CE14DE0F-372B-471A-94A5-C7B5F068B9DF.jpeg0FFE62EE-3036-466B-B7CA-4BB67DFEA35B.jpeg83AC77DF-C6E0-4208-AD60-BD214A2DAF1D.jpeg9435D12A-AF1B-45ED-BE15-FDA0EE627FA3.jpeg5E967568-FBA4-4F75-A208-9025BB7F57CB.jpeg

I need to be able to connect 2x mini pc’s to the teensy but only ever one at a time so one host to one device which I thought would be ok.
This works perfectly if I just connect mini pc 1 to mini usb or mini pc 2 to usb b.
the issue is that I can connect pc1 ok but if I have an open ended usb cable plugged but not connected to pc2 then pc1 will error device not detected, and vice versa if I have pc2 connected and floating wire not connected to pc1 then device not detected.
this is making no sense how I’m trying to describe the problem so I’m at work am tried to draw some diagrams.
The usb cable from mini usb b is built inside my project and can only be disconnected from pc1 at the pc end.
Does any of this make sense?
I need to understand why a floating usb cable stops the device being recognised?
Can I make it work with how I have it setup?
Thanks and sorry for my terrible description!

ceefna
 

geekoftheweek

Joined Oct 6, 2013
1,201
I think your best bet is going to be to get some sort of adapter to be able to use the one cord with both PCs. It's probably a matter of the extra cord adding enough capacitance to throw off timings. USB is very particular.

The diagrams are worth 1000 words as they say. Makes it easy to follow what you are trying to say.
 

tindel

Joined Sep 16, 2012
936
USB is a matched impedance differential protocol. Your usb isn’t being recognized because you have stub lengths that are not terminated properly and creating reflections on the line. The shorter stub lengths aren’t adding as many reflections.
 

Thread Starter

ceefna

Joined Feb 21, 2012
42
Thanks for all your replies, I have come up with a solution that is not very pretty but does exactly what I need.
I used 2x motherboard splitters, connected one of the 4 outputs on each board together so the board that has its input disconnected is ignored when the other input is used. Doesn’t matter if there is a floating cable and connects every time via which cable I choose.
Can you see any issues with this? Apart from accidental connection of both pc’s but that will not happen.
many thanks
Ceefner
6D63EC39-8D36-4181-8FFE-1A3FC7E8795D.jpegE5D7515E-E679-4E38-8A45-A4B26BBF59BD.jpeg
 

Ya’akov

Joined Jan 27, 2019
9,070
Thanks for all your replies, I have come up with a solution that is not very pretty but does exactly what I need.
I used 2x motherboard splitters, connected one of the 4 outputs on each board together so the board that has its input disconnected is ignored when the other input is used. Doesn’t matter if there is a floating cable and connects every time via which cable I choose.
Can you see any issues with this? Apart from accidental connection of both pc’s but that will not happen.
many thanks
Ceefner
This seems like an extremely complicated replacement for a couple of resistors in series with the data lines. Try something in the range of 20-30Ω on each side. Your problem, as mentioned above is an impedance mismatch causing reflections from the unterminated data lines.
 
Top