1

I need to connect 10 device via usb at once. Does adb detect multiple android devices connected via usb hub? I have explored connecting via tcpip one by one using the existing ports, but the problem is if the LAN is not very stable , it gets disconnected and I have to connect all over again. If I could connect all my devices via usb hub I wont have that issue.

I have gone through this issue: Using USB peripherals with hardware debug

Boladin
  • 111
  • 3
  • 1
    ADB should detect multiple devices (check using adb devices) on USB, have you tried it? However, it depends on the USB hub and ports whether they provide enough power for multiple devices to be detected. – Andrew T. Jan 02 '21 at 06:44
  • afaik all devices must set to same port (5037 or 5555) and connected via -s – alecxs Jan 02 '21 at 08:36
  • A related post on Stackoverflow says that by default adb can handle up to 15 devices. If you need more you have to start separate instances of adb. – Robert Jan 02 '21 at 10:09
  • @AndrewT. That's what the question is for, if you can check adb devices and update the answer, I can place an order for a USB hub on amazon. – Boladin Jan 03 '21 at 06:13
  • @Robert Yes I have gone through that answer, but doesn't answer whether the devices connected via hub are automatically detected or do we need some sort of driver to get it going. – Boladin Jan 03 '21 at 06:16
  • @Boladin The USB standard defines that USB hubs are transparent for the the PC and the devices. Therefore it does not make any difference if you connect a device directly or with 6 USB hubs in between. – Robert Jan 03 '21 at 10:49
  • @Robert Thanks for confirming, even my understanding was hinting so. Before placing an order for a USB hub, I just wanted to confirm from someone who have tried debugging multiple devices in parallel connecting via USB hub. – Boladin Jan 03 '21 at 20:10
  • 1
    @Boladin FWIW, I've debugged more than 1 Android devices connected to a hub on Macbook. All of them were detected, but Mac disabled them soon afterward because they used too much power. That's why I mentioned the "provide enough power" remark on my previous comment. – Andrew T. Jan 04 '21 at 02:03

0 Answers0