2

Is there any way to make a communication between a peripheral with android OS with RS232 support and a non android smart TV with RS232 support? Basically, I have to create an app which will be installed on the android based peripheral so that when it is connected to the TV using single RS232 cable, commands could be sent from peripheral to TV.

I have not been able to proceed because I am unable to find a process for that.

  • Is the Android device that is supposed to run the app a stock Android device using a USB to serial connector or does it have customizations for RS232 serial? – Morrison Chang Mar 08 '18 at 03:20
  • Basically, it has to be customized for RS232. But, in case we don't find a way to establish a connection and there is a way to make it work with USB to RS232 then also it will work. – prashant sharma Mar 08 '18 at 03:36

1 Answers1

0

From what I understand, in stock Android unless you are doing something special in NDK (C code) with specific hardware there isn't a serial connector.

Android Things has a UART but that is specific to Android Things hardware.

If you are trying to get a off-the shelf phone/tablet to connect via serial, a USB-serial dongle would probably be the quickest route. See: Communicating with serial USB device over Android

Since the microUSB connector will be occupied you can run adb over Wifi. See: Run/install/debug Android applications over Wi-Fi

Morrison Chang
  • 11,691
  • 3
  • 41
  • 77
  • Thanks for your quick response. The device manufacturer will be providing the serial connector in the device. I just have to establish the connection and send commands. – prashant sharma Mar 08 '18 at 05:16