0

Scenario

I have a running setup like this

enter image description here

My laptop is connected to a USB hub on which attached 2 smartphones.

The phones are plugged in NOT FOR CHARGING, but for debugging apps on the phones.

Now, I need the phones to also be connected to ethernet (wifi won't work for my specific case) at the same time they're being connected to the hub.

How do I do that?

Research

I saw there are USB-C to Ethernet & USB-A adapters like these:

here, here. They're all in the form of:

Male USB-C <======> female Ethernet & female USB-A

A set up using this type of adapter would look like this:

enter image description here

I'm not sure why but I have run into situations where simply connecting smartphones to multiple hubs before it reaches a laptop will prevent the laptop from programmatically access the device. The devices are only charged.

I'm not sure if the setup above will work. Will I be able to programmatically access the devices?

3
  • Please explain why Wifi is not an option to you. Are your devices rooted? If yes you can try to perform reverse tethering using the existing USB connection. Hence no additional hardware would be needed. If you only need HTTP(S) access on the phone this is even possible without root using a HTTP proxy on the PC and performing port-forwarding from the device to the proxy.
    – Robert
    May 16, 2020 at 12:02
  • I can't use wifi because it's not stable enough for my use case. Our devices can't be rooted. The proxy solution is what I have right now, though it's slightly different from your suggestion.
    – Tran Triet
    May 18, 2020 at 19:55
  • If you want you can make WiFi rock stable. Just place the devices and a WiFi router/access point (with reduced sending power) in a Faraday cage.
    – Robert
    May 18, 2020 at 20:09

1 Answer 1

1

The USB hubs connected to the phones are assuming that the phone will be the "host" device, which is correct because that means the Ethernet will work. The USB A ports on those hubs will also assume the same.

USB is not a peer to peer network. you cannot have multiple USB host devices connected together. As such a laptop (USB host) cannot work together with the other USB hubs because they already have a host each.

You will have to either get rid of the USB Ethernet adaptors, or connect to the phones via Ethernet for debugging.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .