Git Product home page Git Product logo

adk-toolkit's People

Contributors

palazzem avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

adk-toolkit's Issues

How stable does Arduino and Android work for you?

Hi,
for some hours I'm trying to connect my Android phones with my Arduino Mega ADK. I tried this library too, but regardless what I did, the results are very unstable.

I saw the example sketch in this repo.

  • Which USB-Host library are you using? I cannot compile it because the USB-Host lib that I use does not have those read and write methods.
  • How reliable does the connection between Android and Arduino work for you?
  • Do you have some tips or a more complete example that works for you?
Nexus 6

My Nexus 6 seems not recognise the Arduino.

  • The intent filter in the AndroidManifest.xml seems not to work, the app is not started.
  • UsbManager#getAccessoryList() does not return results
  • Adk#isReady() returns always false

Just once the Android App was started when I connected the phone with the board and I could send and receive data. But after that it did never work again. I can see a 'USB device connected' notification for some seconds but nothing else happens.

Galaxy Nexus

My Galaxy Nexus works better. Very often the usb connection works and I can send and receive.

  • I have to press the reset button on Arduino and reconnect the phone several times to establish a connection
  • After Killing the Android app and restarting it the connection does not work again

My setup:

  • Example (Arduino sketch and Android app) that I'm using ArduinoBlinkLED
  • USB-Host-Shield-20
  • Arduino Mega ADK
  • Galaxy Nexus with Cyanogen 11 (Android 4.4.4)
  • Nexus 6 with stock ROM, Android 5.1.1

Better documentation

For developers usage:

  • strip README only with essentials
  • documentation with usage explanation
  • simple tutorial (serial echos) in docs

Documentation doesn't mention to resume adk

The documentation should say that one needs to resume and close the adk in onResume and onPause respectively.

Thanks for finding this out at the hackathon at cebit, palazzen! ;)

include a common interface to read/write from/to ADK

Create an IMessage interface for the AdkMessage class that exposes:

  • getString()
  • getFloat()
  • getByte()
  • getBytes()
  • getInt()
  • ...

In this way a developer can simply use mAdkManager.read().getInt() to read an Int value from the ADK.

Pros:

  • better abstraction
  • avoid developers to parse returned value

Cons:

  • lesser control and flexibility for returned result

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.