Hello,
i"m using UsbSerial lib (ver 2.3) to create app that connect android to microcontroler via USB hub. now the company want to connect the microcontroler via UART. and to remove the USB hub from the tablet.
should the UsbSerial connect also via UART serial? or should i use different lib? it look to me that i shouldm since the usb connection needs permissions, and uart connect dosen't reconise the microcontroler at all, or asking for permissions...
UsbSerial and felUsbSerial libraries work with several types of USB to serial converters. A hub is usually not needed. In some cases the hub is needed to provide more power to the connected device.
I like to add that if you don't use a hub then use an OTG (On The Go) cable. The OTG cable tells Android device to switch to USB host mode and source 5V to external devices like USB to serial converter. Without OTG cable the android device behaves like a mass storage device.