How can i convert file .ino to hex file so that i can compile new sketch via bluetooth. Can you help me to figure out the way to do this? thanks for helping
It is very hard to understand exactly what you want to do, but from what I can gather you want to:
- Write an Android application that lets you edit sketches
- Compile those sketches on an android device, and
- Upload those compiled sketches to an Arduino over Bluetooth
While what you are asking is technically possible, it is not realistically practical.
Writing a text editor in Android is easy enough. That's not a problem. It's the compilation of the code that is not practical.
You would need to port the compiler (a very large project written in C) to Android. That would essentially need to remain as compiled C code, and so you would have to individually port it to each possible platform you want it to run on (various different types of ARM, Intel, etc) and for different versions of android.
Unless you're a genius at Android and C programming that's just not going to happen.
A more practical way would be to write a web-based application that allows you to edit your sketches, which can then run the compiler on a real computer (no porting needed then), which can then download the compiled HEX file to your Android device, then use a pre-existing application to program that HEX file over bluetooth.
Alternatively, just use the Arduino Create website to compile and download your HEX file.