Show Posts
Pages: [1]
1  Products / Arduino Due / Re: Arduino Due and ADK 2012 on: January 08, 2013, 04:02:14 am
Ensure you selected the right com port and read above about the erase button.
2  Products / Arduino Due / Re: Arduino Due and ADK 2012 on: January 07, 2013, 05:36:38 pm
There's an erase button on the Due. Press it for a few seconds before you upload a new sketch.
3  Products / Arduino Due / Re: Arduino Due and ADK 2012 on: January 06, 2013, 03:00:54 pm

1. adk2012 ide / mac. Please note that the libraries/core contained in the adk2012 ide differs significantly from the arduino ide. Thus the adk2012 sources are probably not compatible with the arduino ide.

2. None. I just tested audio output. The adk2012 audio feature automatically reroutes all audio output to the adk hardware if activated. I.e. you can use every app that makes some noise (youtube, one of my virtual instrument apps ("Opus #1" / "Grand Piano" / "Keyboard Sounds"), ...). BTW: if audio stutters, you may want to adjust the size of audrecvbuf in accessory.c to the buffer size of the audio endpoint.

3. I powered the Due via the usb cable from my mac -> due programming port. A usb power supply on the programming port seems to work too. However, a power supply on the power connector does not work for me.
4  Products / Arduino Due / Re: ADK2012 audio output on: January 06, 2013, 09:09:22 am
On the due side, I hacked the USBHost lib that comes with the arduino ui.

In the meantime, I got audio out working (more or less) by following the instructions in http://arduino.cc/forum/index.php/topic,139279.0.html. Audio output still stutters slightly and latency is high (> 200ms).

I also checked the switch to alternate setting based on that version. It seems like the android devices switch but don't report the correct alternate setting.

5  Products / Arduino Due / Re: Arduino Due and ADK 2012 on: January 06, 2013, 09:04:06 am
Great. That works for me. Thanks!

6  Products / Arduino Due / ADK2012 audio output on: January 04, 2013, 04:56:38 am
I'm trying to extend the USBHost/ADK lib to ADK2012. I'm interested in the audio output. Basically, I want to know the audio latency of such a solution.

So far, I find the correct interface (audioIf=1) & endpoint. I set the correct device configuration "1" (I checked this) and try to select the alternate setting that contains an endpoint (alternate setting altSet=1). However, if I check the active alternate setting, I get a 0 back.

The relevant code:

rcode = pUsb->ctrlReq(bAddress, 0 /* control endpoint */,
      USB_SETUP_HOST_TO_DEVICE |USB_SETUP_TYPE_STANDARD| USB_SETUP_RECIPIENT_INTERFACE,
      USB_REQUEST_SET_INTERFACE, altSet /* valLo */,0 /* valHi */, audioIf /* index */, 0 /* total */, 0 /* bytes */, NULL /* data */, NULL /* read parser */ );
TRACE_USBHOST(printf("AndroidAccessory2::Init : set interface %d\r\n", rcode); )
if (rcode) {
   goto FailSetConf;
}

delay(2000);

rcode = pUsb->ctrlReq(bAddress, 0 /* control endpoint */,
      USB_SETUP_DEVICE_TO_HOST |USB_SETUP_TYPE_STANDARD| USB_SETUP_RECIPIENT_INTERFACE,
      USB_REQUEST_GET_INTERFACE, 0 /* valLo */, 0 /* valHi */, audioIf /* index */, 1 /* total */, 1 /* bytes */, &alt/* data */, NULL /* read parser */ );
TRACE_USBHOST(printf("AndroidAccessory2::Init : alternate setting set %d\r\n", alt); )
if (rcode) {
   goto FailSetConf;
}

I compared it with the code from the google ADK2012 download, but cannot find the difference/error. Any tips?
7  Products / Arduino Due / Re: Arduino Due and ADK on: January 04, 2013, 04:42:42 am
I used the version that comes as sample with the arduino ide version 1.5.1/mac (file menu -> samples -> USBHost -> ADKTerminalTest) and the apk from the address in the ADKTerminalTest sketch (http://labs.arduino.cc/uploads/ADK/ArduinoTerminal/ThibaultTerminal_ICS_0001.apk).

8  Products / Arduino Due / Re: Arduino Due and ADK on: December 29, 2012, 11:16:12 am
I could get the ADKTerminalTest demo to work without changes with a
- Galaxy Nexus / Android 4.2.1
- Nexus 7 / 4.2.1
- Acer A500/4.0.3.

First I had the same problems: only loading, nothing else. It started to work after I connected the Due directly with my Macbook (i.e. no hub in between etc.). If a power supply is connected, it does _not_ work either. To me, it looks like a power issue.

My setup:
Macbook -> Due/programming port (as I said, no hub/other device on that port)
Due / native USB -> USB-OTG adapter (Samsung ET-R205U) -> USB cable -> Android device

The due runs the ADKTerminalTest sample (I just added Serial.begin(9600) at the beginning of setup()). The android device runs the "Thibault ICS Termial" app as stated in ADKTerminalTest.
Pages: [1]