palazzem / adk-toolkit Goto Github PK
View Code? Open in Web Editor NEWADK Toolkit to manage UsbManager and UsbAccessory without any headaches!
License: Other
ADK Toolkit to manage UsbManager and UsbAccessory without any headaches!
License: Other
Rename whole class/method:
Now is: http://docs.adktoolkit.org/
In this way we can initialize the AdkManager instance through:
mAdkManager = new AdkManager(this);
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.
read
and write
methods.My Nexus 6 seems not recognise the Arduino.
UsbManager#getAccessoryList()
does not return resultsAdk#isReady()
returns always falseJust 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.
My Galaxy Nexus works better. Very often the usb connection works and I can send and receive.
For developers usage:
Use application context in ADK constructor and use it with Android API version checking:
Because this library doesn't need any Android resources, it can be assembled as a JAR library. This allows Eclipse to use the library without any import problem
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! ;)
Hi all,
I'm using this tutorial by UDOO to communicate with the Arduino board from Android:
http://www.udoo.org/tutorial/android-arduino-udoo-simple-hello-world-tutorial/. I have updated the Android dependency to 0.3 and successfully flashed the Arduino sketch, but when I run the Android app, I get:
java.lang.SecurityException: User has not given permission to accessory UsbAccessory
on the adkManager.open();
call.
Any idea how to solve this?
Thank you.
It should use StringBuilder to publishProgress of a String object as result
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:
Cons:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.