I am currently working on an Android project, where I have to collect data from a USB thermometer stick called Temper The tablet will be connected.
This device has Linux drivers, which are written in C, and I would like to use them for my Android app.
Do you know how to integrate those drivers into my APK, or elsewhere?
Is it possible to use the Thank you in advance. option a) You only compile kernel modules and use specific device nodes. For this, you will need to compile specific kernel modules for resizing your device and for specific devices (ugly!) option b) You can use the NDK to wrap around Linux drivers Writes and by co-ordinating all the events between the Man-in Android USB Host Interface (Java) and Linux drivers (C) and pushing the data. I started working on the options for USBb-dbb device drivers, and this is an incredible amount of work to do. I hope your driver is not complicated. If your driver is very easy (only 10k + line of some files and low-level code, or not the command line) To translate to Java, proceed and use the option c) Java Re-type the code in. This way you do not need a cover in C and you can leave the NDK part which saves you troubles and bad dreams. android.hardware.usb package (Android 3.0+), thus my own "driver"?
Comments
Post a Comment