Porting a win32 app to android for sending serial data
-
hi !
I have a small win32 (18k) app that i developed years ago for my electronic hobby project. Basically, it takes the text from the screen or from a file, stores it internally in arrays and writes at regular time intervals data packets to the COM1 port(as a file). On windows and linux(using wine) on my PC i used a virtual COM port and installed a driver for a rs232 to usb adapter(ft232 chipset). I want the same on android. The win32 app was written in C, the only language i know, and i would like to port the app "as is"(no code rewriting) to android, because i have no clue of android programming at all. The search on the internet returned no results - i didn't find any solution. Is the following way possible :
General : Installing a minimal linux distro on android with usb acces/ Installing FT232 driver in the terminal
1.compiling the code for arm(32) linux/ Run it in the terminal
Or- Port the exe to windows rt/arm / Run the .exe with wine in the terminal ?
The linux distros in the android app(userland, andronix) are bare-bone ones and do not seem to provide usb support( when i run lsusb i get -99 code error) I've also installed visual studio 2019 (win 10 SDK) and cannot build my project because .h files are not found, even if i change the path in the project properties. If i enter the complete path in my code file they are found, but then i still have 200 error messages because things like Bool, Handle, are not defined. The original/initial application i build 10 years ago was generated by CodeBlocks on my old PC which i dont have anymore(broken,but i still have all original project files).
The project files can be found here (link temporary available for your analisys and answers): https://drive.google.com/file/d/1DTcnfRDubXJN12wzhC8KzvhW97AQn1uA/view?usp=drivesdkThanks.