简体   繁体   English

通过单条RS232电缆在android设备和非android智能电视之间进行通信

[英]Communication between an android device and non android smart TV over single RS232 cable

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? 有什么方法可以在具有RS232支持的android操作系统的外围设备与具有RS232支持的非android智能电视之间进行通信? 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. 基本上,我必须创建一个应用程序,该应用程序将安装在基于android的外围设备上,以便使用单根RS232电缆将其连接到电视时,可以将命令从外围设备发送到电视。

I have not been able to proceed because I am unable to find a process for that. 我无法继续,因为我无法为此找到过程。

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中,除非您使用特定的硬件在NDK(C代码)中做一些特别的事情,否则没有串行连接器。

Android Things has a UART but that is specific to Android Things hardware. Android Things有一个UART,但是它专用于Android Things硬件。

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. 如果您想让现成的电话/平板电脑通过串行连接,则USB串行加密狗可能是最快的方法。 See: Communicating with serial USB device over Android 请参阅: 通过Android与串行USB设备通信

Since the microUSB connector will be occupied you can run adb over Wifi. 由于microUSB连接器将被占用,因此您可以通过Wifi运行adb。 See: Run/install/debug Android applications over Wi-Fi 请参阅: 通过Wi-Fi运行/安装/调试Android应用程序

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM