#Idea: official USB hub

1 messages · Page 1 of 1 (latest)

craggy folio
#

a USB hub for the flipper to connect it to multiple hosts or other devices

please don't judge me my mind is an empty box :<

knotty parrot
#

USB protocol doesn’t allow multiple hosts to connect to the same device, there is no such thing as a USB hub with two upstream ports.

Additionally, flipper USB is device only in hardware, cannot be connected to other devices.

So neither of those situations are possible.

sweet sundial
#

I’m probably ignorant but how do usb hubs work then? You have the data from at least two devices going to the pins on one port

knotty parrot
#

On a hub, devices are connected to downstream ports, hosts are connected to upstream ports. Every hub has a single upstream port, and many downstream ports. These ports are not directly wired together, they connect to a hub controller which has the single upstream and multiple downstream ports with each port connecting to separate data pins on the hub. The hub controller does the logic necessary to allow the host to address any of the device ports.

#

Here is a schematic symbol of a USB hub, on the left are the four downstream ports, the right the one upstream port, and the middle is the hub controller which is a 16 pin IC:

craggy folio
#

ohhh okay, yeah i figured that usb wouldn't work

tardy sluice
#

@craggy folio what you are describing is essentially a USB "KVM switch" which allows you to physically link a device to multiple hosts BUT allows connection to only one host at a time.
You usually have buttons on the switch to decide which host you want your device to be connected to (picture given as an example of a KVM switch).
On basic switches it's just as if you unplugged from one host and plugged into another one, with the connection delay and "toudoum" noise from windows. But on better switches, they can "keep the connection live" while the device talks to another host to avoid that delay while switching.

To sum it up, the closest I can see to reach your original idea would be a special kind of USB KVM switch + app for the flipper zero that would connect to the USB C port of the flipper to send the commands, and to some GPIO pins so that the flipper can "tell to the hub" to quickly switch to a different host and resend the command