samrajaf / pinguino32

Automatically exported from code.google.com/p/pinguino32
0 stars 1 forks source link

Pinguino does not connect to Android #26

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Win-XP(SP3)
Pinguino-IDE,rev468
Emperor 460
Android 2.2 phones/tablet

void setup()
{
    Adb.init();

}

void loop()
{
    unsigned char connected = Adb.refresh();
}

The variable "connected" never becomes TRUE. However, it should change to TRUE 
as soon as an Android device is attached to the USB host port.

I have tested with two different Android 2.2 phones and one Android 2.2 tablet.
Please note: All three Android devices connect via ADB, and work perfectly when 
plugged into the USB host port of an Arduino Mega ADK board.

Is the connection from the Pinguino rejected because the Android device 
requests the maximum current (500mA)? How much current does the 
Pinguino-generated code permit?

Must be a certain VIP/PID specified, or will the Pinguino-generated firmware 
connect to all possible VIDs/PIDs? 

Thank you for any advice.

Original issue reported on code.google.com by chai.sir...@yahoo.com on 7 Jun 2012 at 1:49