Show Posts
Pages: 1 [2]
16  Products / Arduino Due / Re: Arduino Due and ADK 2012 on: January 09, 2013, 01:19:44 am
I appreciate your sharing! I couldn't do it if no your help. Is it possible to share BT if you have done? I am interested everything in ADK2012. Thanks.
17  Products / Arduino Due / Re: Arduino Due and ADK 2012 on: January 08, 2013, 05:16:58 pm
Another question:
I just use left channel or right channel to DAC0. Is it possible to use both of left and right channel? Thanks.
18  Products / Arduino Due / Re: Arduino Due and ADK 2012 on: January 08, 2013, 03:14:11 pm
Hello, All
I did it!!!
I changed port to Native USB for uploading sketch into Due.  Now I am enjoying the music from Nexus 7.

Thanks Aleu, Ardroid and all!!
19  Products / Arduino Due / Re: Arduino Due and ADK 2012 on: January 08, 2013, 04:23:54 am
Thanks Aleu!

It should be correct com port(Arduino Due programming port on PC). And I pressed the erase button before uploading.

It seems that Due was not recognized by ADK2012 IDE after erasing (erasing done).

IDE should prompt like below if it uploads successfully?
.....
Verify successful
Set boot flash true
CPU reset.
20  Products / Arduino Due / Re: Arduino Due and ADK 2012 on: January 08, 2013, 04:00:31 am
It still can't work. PC-->Programming port, Nexus 7-->OTG-->Native port. Due can't be reconginzed by Nexus 7 or i9300.
OS: Android 4.2.1 on Nexus 7 or i9300.


I got error when I was uploading sketch into Due board. What is wrong I did?

C:\ADK2012_IDE_0/hardware/tools/adk2tool.exe COM3 erase
erasing...done.
C:\ADK2012_IDE_0/hardware/tools/bossac.exe --port=COM3 -w -b C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\build5785210613214747736.tmp/Arduino_Terminal_App_Sample.cpp.bin
No device found on COM3
C:\ADK2012_IDE_0/hardware/tools/adk2tool.exe COM3 reset
resetting...done.
21  Products / Arduino Due / Re: Arduino Due and ADK 2012 on: January 06, 2013, 09:13:12 am
Great! I have the following questions:

1. Which Arduino IDE do you use? arduino-1.5.1r2? or adk2012_ide-win32-20120629?
2. What app do you use on Nexus 7 to transfer data to Due?
3. Is DC to supply power a must? Arduino Due can't work when I use a DC--3.3V & 2.0A. What DC do you use?
22  Products / Arduino Due / Re: ADK2012 audio output on: January 04, 2013, 05:27:36 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?


Perhaps we just need common music player to output Audio via MicroUSB? What code do you use on Due side? I am also interested in Audio out via MicroUSB.
23  Products / Arduino Due / Re: Arduino Due and ADK on: January 04, 2013, 05:23:54 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).



Thank you very much! I will try it.
24  Products / Arduino Due / Re: Arduino Due and ADK on: January 04, 2013, 03:14:50 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.


Did you download ADKTerminalTest  from :https://github.com/arduino/Arduino/pull/127/files#diff-720? I couldn't download it. Could you send it to me? Thanks.
25  Products / Arduino Due / Re: Arduino Due and ADK on: December 25, 2012, 01:22:10 am
OK, I hope this can help figure it out.
Part of the problem, at least with the Note II, is timing. The error I get when debugging the USB host code is a timeout (error code 0xFF) on one of the USB packets. This doesn't happen if (for instance) I output a whole lot of serial data to slow the sketch down. It is not enough to add a delay() in the main loop, since the whole thing fails if we delay() too much as well. Adding a delay(50) between each call to Usb.Task() and a few delay(100) at strategic places inside USBHost::Task() makes it work pretty reliably. I haven't had the time to make it work well yet or I would post code.

Another issue is the fact that the USB code stops working if you soft-reset the Due, such as by opening the serial console after a sketch has started running. This can be worked around by uploading the sketch, then unplugging the Due and as fast as humanly possible after plugging it in, you open the debug console. I guess this works because you can actually soft-reset the Due before the USB initialization takes place, and therefore it doesn't try to initialize it twice.

If you have the phone connected to the Due and your sketch either crashes or your code is timed wrong, you might confuse the USB stack on the Android. This is only solved by rebooting. So if it stops working, you might get it running again by simply rebooting the Android. I power-cycle the Due between every run.

I ran a modified version of the ADK2012 sketch and library, compiled with the ADK2012 version of the IDE. This powered up the USB port even when running on external power, so there's nothing wrong with the hardware. There has to be a mistake somewhere in the library, I just don't have enough knowledge to find it!

Could you share the setup you did? Thanks.
26  Using Arduino / Audio / Re: Stream music from a cell phone to an Arduino on: December 16, 2012, 06:23:59 am
The newest Arduino Due should support BT. Maybe need a BT shield.
27  Using Arduino / Audio / Re: Arduino mega adk and sound over usb on: December 16, 2012, 06:15:23 am
Do you get any progress? I have the same problem like yours.
28  Products / Arduino Due / Arduino Due Does Support to Output Audio via MicroUSB? on: December 03, 2012, 09:53:35 pm
Arduino Due Does Support to Output Audio via MicroUSB? I want to output music with Arduino Due from Android devices like Nexus 7, Samsung S3 and etc. How should I connect the speaker to the Due?
I will be appreciate if there are any hints. Thanks.
29  Community / Products and Services / Re: Arduino Music Palyer Shield - Just Plug and Play on: December 03, 2012, 09:48:07 pm
Can I use Nexus 7 or Samsung S3 to output music to the player shield via MicroUSB?
Pages: 1 [2]