felis / USB_Host_Shield_2.0

Revision 2.0 of USB Host Library for Arduino.
https://chome.nerpa.tech
1.76k stars 781 forks source link

Intel Edison breakout board compatibility. #132

Open r2DoesInc opened 9 years ago

r2DoesInc commented 9 years ago

I am trying to use this library with the AndroidAccessory Library to communicate with my Intel Edison. Currently your library does not seem to support the edison. Do you have plans to bring Edison support to this project?

xxxajk commented 9 years ago

Donate one so we have one to work with and we can possibly do just that, :-)

On Tue, Jan 27, 2015 at 4:40 PM, Ken notifications@github.com wrote:

I am trying to use this library with the AndroidAccessory Library to communicate with my Intel Edison. Currently your library does not seem to support the edison. Do you have plans to bring Edison support to this project?

— Reply to this email directly or view it on GitHub https://github.com/felis/USB_Host_Shield_2.0/issues/132.

Visit my github for awesome Arduino code @ https://github.com/xxxajk

r2DoesInc commented 9 years ago

The company I am employed with - Cloudspace, https://github.com/cloudspace - would love to send you one if you think we could get a relatively decent turn around. We are currently using this library with our in progress ArdroBot project, and we are looking to switch to the Intel Edison chip from our ATmega2560 based current board.

Do you have a way we can setup a more direct communication?

xxxajk commented 9 years ago

email/hangouts?

On Mon, Feb 2, 2015 at 3:47 PM, Ken notifications@github.com wrote:

The company I am employed with - Cloudspace, https://github.com/cloudspace

  • would love to send you one if you think we could get a relatively decent turn around. We are currently using this library with our in progress ArdroBot project, and we are looking to switch to the Intel Edison chip from our ATmega2560 based current board.

Do you have a way we can setup a more direct communication?

— Reply to this email directly or view it on GitHub https://github.com/felis/USB_Host_Shield_2.0/issues/132#issuecomment-72534348 .

Visit my github for awesome Arduino code @ https://github.com/xxxajk

r2DoesInc commented 9 years ago

Sure, send me an email @ ken@cloudspace.com

Lauszus commented 9 years ago

@r2DoesInc I just added support for the Intel Edison at the following branch: https://github.com/felis/USB_Host_Shield_2.0/tree/Galileo. Please test and report back, as I can not test it, as I don't have the hardware.

Lauszus commented 9 years ago

Also please play around with the following value: https://github.com/felis/USB_Host_Shield_2.0/blob/Galileo/usbhost.h#L55 and report back what the maximum speed you can reliable use is.

Lauszus commented 9 years ago

Also see the following PR: https://github.com/felis/USB_Host_Shield_2.0/pull/142.

r2DoesInc commented 9 years ago

Apologies, I have only recently switched back to this project to test your changes. Unfortunately, the board is unable to connect to the device.

Using the basic code

void setup() {
  Serial.begin(115200);
  while (!Serial); // Wait for serial port to connect - used on Leonardo, Teensy and other boards with built-in USB CDC serial connection
  if (Usb.Init() == -1) {
    Serial.print("\r\nOSCOKIRQ failed to assert");
    while (1); // halt
  }
  Serial.print("\r\nArduino Blink LED Started");
}

I only get the OSCOKIRQ failed to assert message.

Lauszus commented 9 years ago

Okay. Could you try to set this to 0: https://github.com/felis/USB_Host_Shield_2.0/blob/master/avrpins.h#L1026.

Also this example might give some more information: https://github.com/felis/USB_Host_Shield_2.0/blob/master/examples/board_qc/board_qc.ino.

r2DoesInc commented 9 years ago

Changing the value to 0 did not seem to have an effect.

Circuits At Home 2011
USB Host Shield Quality Control Routine
Reading REVISION register... Die revision invalid. Value returned: 00
Unrecoverable error - test halted!!
0x55 pattern is transmitted via SPI
Press RESET to restart test
Lauszus commented 9 years ago

Okay. Try lowering this value: https://github.com/felis/USB_Host_Shield_2.0/blob/master/usbhost.h#L55.

r2DoesInc commented 9 years ago

Stepping that value down by a power of 10 4 times did not seem to have any effect.

Note, this is using the latest tagged 1.1 release of the library.

Lauszus commented 9 years ago

Okay. It's pretty hard for me to debug since I don't have an Edison.

Lauszus commented 9 years ago

@r2DoesInc if you are still happy to donate one I will look into this issue.