Skip to content Skip to sidebar Skip to footer

How To Establish Adb Connection Over Usb Between Two Pcs

Summary (What we've done, what we've tried): Basically, the aim is to establish an adb protocol via usb between two linux computers by using adb source codes. Envinronment is Ubunt

Solution 1:

First, let me point out just couple of things about the guide you said you were following:

  1. it requires (it says so in the very first paragraph) you to understand USB, which is the opposite of trying to set a USB connection between two computers with an A to A (both male) cable and expecting it to work.

  2. Linaro (the organization which published the guide) is known for its work on improving Linux on ARM platform. The guide just does not apply to x86 based PCs.

Other than that you need to understand that USB is an asymmetric protocol between a USB Host (master) and a USB Device (slave). There is just no way around this rule. To be able to connect 2 devices using USB - one device needs to have a USB controller configured as USB Host and another needs to have a USB controller configured as USB Device. The problem with the hardware USB Controllers being used in personal computers (standalone or built-in to Intel PCH) is that they can only work as USB Host. No software can change that.

All projects and resources you linked to in your question trying to prove that your desired result is possible were developed for platforms different from PC.

If you insist on using PC as a USB Device - there are very few commercially available USB adapters (mostly USB controller evaluation boards), which use USB controller chips with UDC support. But because of their rarity they are usually pretty expensive (the ones I've seen were being sold for about $200). So if your original intention was to lower your development costs by switching to commodity hardware - this option is not going to help you either.

This is how one of such adapters looks like: NET2280EVB

Post a Comment for "How To Establish Adb Connection Over Usb Between Two Pcs"