Show Posts
|
|
Pages: [1]
|
|
4
|
Using Arduino / Networking, Protocols, and Devices / Arduino ADK r3 + Samsung Galaxy S3
|
on: January 11, 2013, 10:47:07 am
|
|
Hi there.
I'm currently trying to build a robot based on the Arduino Mega. Now I wanted to expand my project by using an Arduino Mega ADK r3 + Samsung Galaxy S3 so I can use the S3's Wifi and sensor capabilities. Also I wanted to use the much faster processor and the mass storage inside the smartphone.
But trying this, I have encountered the problem, that my phone doesn't communicate with the ADK. The ADK's sample sketches to parse descriptors of usb devices works with mass-storages, mice or keyboards but my S3 seems not to be sending any data. It just uses the arduinos power to recharge.
Any ideas what I could be doing wrong?
Thanks
|
|
|
|
|
5
|
Using Arduino / Networking, Protocols, and Devices / Re: Problem w/ USB-Host Shield
|
on: November 14, 2012, 12:18:05 pm
|
Mhm. Ya. Well I checked the solderings. If I'm not completely incompetent (which is possible, but I don't think so  ) the solderings are okay. And since I neither have an oscilloscope nor am from America (Germany) I think I just have to accept that it doesn't work. -.- Maybe I'll try to send it back to my supplier (lipoly).. Thanks for your help!
|
|
|
|
|
7
|
Using Arduino / Networking, Protocols, and Devices / Re: Problem w/ USB-Host Shield
|
on: November 13, 2012, 02:30:36 pm
|
Hi, the result I get is the following: Circuits At Home 2011 USB Host Shield Quality Control Routine Reading REVISION register... Die revision invalid. Value returned: FF Unrecoverable error - test halted!! 0x55 pattern is transmitted via SPI Press RESET to restart test But there is no error I could skip 
|
|
|
|
|
8
|
Using Arduino / Networking, Protocols, and Devices / Re: Problem w/ USB-Host Shield
|
on: November 13, 2012, 01:14:57 pm
|
Hi, I've tested it with everything I could find here. USB-Sticks, Keyboards, Mice and my Android-Smartphone. Of course I used the example Sketches related to my device (Mass Storage, HID, ADK). But the error code appears always. Even if there is no device connected. As long as the shield is connected and powered up I get this error code. Btw. Thanks for trying to help. You're the first one that does  TheJokerzz
|
|
|
|
|
10
|
Using Arduino / Networking, Protocols, and Devices / Problem w/ USB-Host Shield
|
on: November 12, 2012, 02:12:18 pm
|
Hey, I have a problem with my new usb host shield. I'm relatively new to the arduino platform, so I could use your help  Here it is: I've bought a shield ( http://www.circuitsathome.com/products-page/arduino-shields/usb-host-shield-2-0-for-arduino) and assembled it. I also checked the solderings. But when I attach it to my Arduino, it just gives no response. This is the example sketch I am running: #include <avr/pgmspace.h> #include <avrpins.h> #include <max3421e.h> #include <usbhost.h> #include <usb_ch9.h> #include <Usb.h> #include <usbhub.h> #include <avr/pgmspace.h> #include <address.h> #include <hidboot.h> #include <printhex.h> #include <message.h> #include <hexdump.h> #include <parsetools.h>
class MouseRptParser : public MouseReportParser { protected: virtual void OnMouseMove (MOUSEINFO *mi); virtual void OnLeftButtonUp (MOUSEINFO *mi); virtual void OnLeftButtonDown (MOUSEINFO *mi); virtual void OnRightButtonUp (MOUSEINFO *mi); virtual void OnRightButtonDown (MOUSEINFO *mi); virtual void OnMiddleButtonUp (MOUSEINFO *mi); virtual void OnMiddleButtonDown (MOUSEINFO *mi); }; void MouseRptParser::OnMouseMove(MOUSEINFO *mi) { Serial.print("dx="); Serial.print(mi->dX, DEC); Serial.print(" dy="); Serial.println(mi->dY, DEC); }; void MouseRptParser::OnLeftButtonUp (MOUSEINFO *mi) { Serial.println("L Butt Up"); }; void MouseRptParser::OnLeftButtonDown (MOUSEINFO *mi) { Serial.println("L Butt Dn"); }; void MouseRptParser::OnRightButtonUp (MOUSEINFO *mi) { Serial.println("R Butt Up"); }; void MouseRptParser::OnRightButtonDown (MOUSEINFO *mi) { Serial.println("R Butt Dn"); }; void MouseRptParser::OnMiddleButtonUp (MOUSEINFO *mi) { Serial.println("M Butt Up"); }; void MouseRptParser::OnMiddleButtonDown (MOUSEINFO *mi) { Serial.println("M Butt Dn"); };
USB Usb; USBHub Hub(&Usb); HIDBoot<HID_PROTOCOL_MOUSE> Mouse(&Usb);
uint32_t next_time;
MouseRptParser Prs;
void setup() { Serial.begin( 115200 ); Serial.println("Start");
if (Usb.Init() == -1) Serial.println("OSC did not start."); delay( 200 ); next_time = millis() + 5000; Mouse.SetReportParser(0,(HIDReportParser*)&Prs); }
void loop() { Usb.Task(); } The only output I get is the initial "Start". I did a little research and found that the Method Usb.getUsbTaskState gives me an error code 19, which is related to an error called "USB_DETACHED_SUBSTATE_ILLEGAL". I am working with an Arduino Mega (ATMega 1280) and the Arduino Library by "Circuits@Home" ( https://github.com/felis/USB_Host_Shield_2.0). I would be very grateful if you could help me! PS: If you need more information, just tell me. PPS: aaand forgive me if my english is bad -.-
|
|
|
|
|
11
|
International / Deutsch / Problem mit USB-Host Shield
|
on: November 09, 2012, 05:58:14 am
|
Hi, ich habe mir letzte Woche eine USB-Host Shield ( http://www.circuitsathome.com/products-page/arduino-shields/usb-host-shield-2-0-for-arduino) für meinen Arduino Mega(ATMega 1280) gekauft. Die Pins habe ich alle angelötet und die Lötstellen (soweit möglich) überprüft. Jetzt habe ich allerdings das Problem, dass der Arduino anscheinend keinerlei Geräte erkennt, die ich an ihn anschließe. Bei der zum Shield gehörenden Library sind einige Beispielprogramme dabei, die allerdings alle nicht funktionieren. Da stellt sich mir natürlich die Frage nach der Fehlerursache. Da ich noch nicht soo lange mit dem Arduino arbeite, dachte ich mir, dass ich hier nochmal frage, ob vielleicht schonmal jemand mit dem USB-Shield gearbeitet hat und sich damit auskennt. Hier noch das Beispielprogramm: #include <avr/pgmspace.h> #include <avrpins.h> #include <max3421e.h> #include <usbhost.h> #include <usb_ch9.h> #include <Usb.h> #include <usbhub.h> #include <avr/pgmspace.h> #include <address.h> #include <hidboot.h> #include <printhex.h> #include <message.h> #include <hexdump.h> #include <parsetools.h>
class MouseRptParser : public MouseReportParser { protected: virtual void OnMouseMove (MOUSEINFO *mi); virtual void OnLeftButtonUp (MOUSEINFO *mi); virtual void OnLeftButtonDown (MOUSEINFO *mi); virtual void OnRightButtonUp (MOUSEINFO *mi); virtual void OnRightButtonDown (MOUSEINFO *mi); virtual void OnMiddleButtonUp (MOUSEINFO *mi); virtual void OnMiddleButtonDown (MOUSEINFO *mi); }; void MouseRptParser::OnMouseMove(MOUSEINFO *mi) { Serial.print("dx="); Serial.print(mi->dX, DEC); Serial.print(" dy="); Serial.println(mi->dY, DEC); }; void MouseRptParser::OnLeftButtonUp (MOUSEINFO *mi) { Serial.println("L Butt Up"); }; void MouseRptParser::OnLeftButtonDown (MOUSEINFO *mi) { Serial.println("L Butt Dn"); }; void MouseRptParser::OnRightButtonUp (MOUSEINFO *mi) { Serial.println("R Butt Up"); }; void MouseRptParser::OnRightButtonDown (MOUSEINFO *mi) { Serial.println("R Butt Dn"); }; void MouseRptParser::OnMiddleButtonUp (MOUSEINFO *mi) { Serial.println("M Butt Up"); }; void MouseRptParser::OnMiddleButtonDown (MOUSEINFO *mi) { Serial.println("M Butt Dn"); };
USB Usb; USBHub Hub(&Usb); HIDBoot<HID_PROTOCOL_MOUSE> Mouse(&Usb);
uint32_t next_time;
MouseRptParser Prs;
void setup() { Serial.begin( 115200 ); Serial.println("Start");
if (Usb.Init() == -1) Serial.println("OSC did not start."); delay( 200 ); next_time = millis() + 5000; Mouse.SetReportParser(0,(HIDReportParser*)&Prs); }
void loop() { Usb.Task(); }
Die einzige Ausgabe die ich am Rechner erhalte ist "Start".
|
|
|
|
|