No, don't do that! You could trash one of the USB chipsets. USB is not like a 
Serial interface; it is better understood as a protocol. USB is not 
peer-to-peer, it is a master / slave configuration. The slave (or client 
device) cannot talk to the host unless the host requests it. BTW, the USB-IF 
had banned Type A to A connectors from the very beginning. These types of 
cables were originally produced by vendors who didn't understand the USB 
Specifications and were sold by stores that didn't know any better. Since they 
got out into the market some board layout people have used them because they 
had wrongly put Type A connectors on their devices (again not knowing any 
better).

 Anyway, what you may be looking for is USB OTG (On-The-Go). Either that or the 
device must have a USB Type B connector and function as the Slave (client).
 In any case, you will probably need special drivers on both ends to turn the 
master / slave configuration into a peer-to-peer. The host side driver will 
have be designed to "listen" for the client device. This can be accomplished by 
using an Interrupt Pipe that the client will NAK until it wishes to send 
something to the host (note that there should be no CPU usage since the USB 
chipsets or microcode should be doing all of the work). The host driver would 
then turn around and request the data on a Bulk IN pipe.

----- Original Message -----
From: darkstar
Sent: 06/28/12 02:29 PM
To: [email protected]
Subject: [android-developers] Android Eclipse USB and Linux

 After a LOT of Googling I am not finding any answers to this question I have, 
so hopefully someone here has forged this path and can enlighten me? I have set 
up Eclipse to develop for Android and gotten some success with using a couple 
of the Android simulators. (Most don't seem to work out of the box BTW) Anywise 
I now would like to use a real Android device (I have an ASUS pad to play with, 
will be getting an Android phone shortly though I dunno yet which one) and 
understand I can do so using a USB connection.

 I presume (correct me if I am wrong!) I must use a peer to peer (also called a 
host to host or crossover) USB cable with Type A connectors on each end? (at 
least for the pad, dunno what sort of connector the phone will have...) Looking 
around I found several companies selling crossover cables but all I can find 
are supported with Windows drivers. From what I can grok, it appears that one 
must have a special driver in order to have a protocol that will allow 
communication to take place between two hosts making each appear as a device to 
the other, hence the need for a special driver. Trouble is, I am developing 
under Linux (openSuSE12.1 to be exact) so before I go and order one of these 
cables I would like to know if A) Does Linux/Eclipse support these cables out 
of the box? B) If not, can someone recommend a cable the is supported under 
Linux/Eclipse? C) If so, I would still appreciate recommendations on what 
cables others have had a good experience with....

 Marc..
 --
 You received this message because you are subscribed to the Google
 Groups "Android Developers" group.
 To post to this group, send email to [email protected]
 To unsubscribe from this group, send email to
 [email protected]
 For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to