Recently received my Sweep and so far I've had fun playing around with it! My project right now is to use the Sweep directly on an Android phone. When I say directly, I mean through an OTG Y USB cable for an android app.
I was wondering if I'm not the only working on something like this... i.e. integrating with android? Am I missing something simple? Does anyone have this working already?
I'm sort of a new android developer but I was able to compile libsweep with the jsweep wrappers and run the code in Android studio spitting out the distance values (YAYYY). But this was using my computers usb port. The problem as I see it is the next step. Libsweep is set up to run on Linux/Windows but when opening USB host capabilities on a phone there is a bit more to it. As far as I'm aware I won't be able to just pass a port value to the jsweep wrapper and it all work fine. Android has its own USB Host api that won't just swap with the libsweep serial setup.
As far as I can tell I can use another library to set up serial communication and that's been done with lots of examples online. However, once I have a serial packet I'll need to either modify the libsweep library to accept and pass packets through the serial library or rewrite the libsweep specifically for android. If the second was the case then I thought I should involve and share with the community. If it's the first case then maybe I could write up a step by step guide.
If someone has any ideas on this I'd love to hear it.