android - How to establish adb connection over USB between two PCs -


summary (what we've done, we've tried):

basically, aim establish adb protocol via usb between 2 linux computers using adb source codes.

envinronment ubuntu 16.0.4. there's android-tools-adbd (adb daemon) package ready use in pool source available.

there source on link (adbd) compilable gcc option -stc=c++14 supported in 16.0.4 default (or gcc 5.2).

we able build package source or use already-built 1 using adb connect (tcp/ip dependent). there's no problem on adb connection via tcp/ip if 2 computers connected same network.

unfortunately, not able set usb connection between 2 computers a (both male) cable. adb gadget isn't working , none of devices recognize other. can't decide whether there's need explicit driver besides adb gadget.

question (real question answered):

how set usb protocol between 2 linux computers adb communication can done via usb?

is there solution it?

[---edit---]

notes:

  • going further day day, small issues left. want involved; following this guide.

  • (kernel version 4.4.0-38-generic)

  • having problems running correct udc (usb device controller) driver. after activating configfs modprobe usb_f_fs, xdg-adbd (executable source link, adbd) works fine until if(...) detects udc driver. tried running modprobe musb_hdrc didn't see explicit driver name under /sys/class/udc.

(27.09.2016)


first, let me point out couple of things the guide said following:

  1. it requires (it says in first paragraph) understand usb, opposite of trying to set usb connection between 2 computers a (both male) cable , expecting work.

  2. linaro (the organization published guide) known work on improving linux on arm platform. guide not apply x86 based pcs.

other need understand usb asymmetric protocol between usb host (master) , usb device (slave). there no way around rule. able connect 2 devices using usb - 1 device needs have usb controller configured usb host , needs have usb controller configured usb device. problem hardware usb controllers being used in personal computers (standalone or built-in intel pch) can work usb host. no software can change that.

all projects , resources linked in question trying prove desired result possible developed platforms different pc.

if insist on using pc usb device - there few commercially available usb adapters (mostly usb controller evaluation boards), use usb controller chips udc support. because of rarity pretty expensive (the ones i've seen being sold $200). if original intention lower development costs switching commodity hardware - option not going either.

this how 1 of such adapters looks like: net2280evb


Comments

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -

javascript - Why jQuery Select box change event is now working? -