Hereby the situation: I'm working on a Android Tablet that must work in Accessory mode. Reason why is because the tablet can't provide enough power to perform the communication with a Serial USB microcontroller and remain charging it's battery.
In order to achieve a successful communication, I must be able to set a few serial conditions for Modbus/RTU
An excellent example in Delphi would be Modlink.
A good guidance would be UART https://github.com/ytai/ioio/wiki/UART
Meanwhile, I've found some useful projects but they were intended to work on Host mode.
https://github.com/mik3y/usb-serial-for-android https://github.com/ksksue/Android-USB-Serial-Monitor-Lite
I'm looking for any valuable information, guidance and references on how should I proceed to create an Android Application that can communicate with Serial USB.
How can I achieve this?
Note: I'm using Android Studio
.
There's an excellent source code made by FTDI Chip, so if you ever need to perform USB/ftdi connections with Android try this application:
FTDI UART TERMINAL
Source code: http://www.ftdichip.com/Android.htm
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With