Raspberry pi AR1100的Android事物驱动程序

Raspberry pi AR1100的Android事物驱动程序,raspberry-pi,android-things,Raspberry Pi,Android Things,我尝试将带有触摸面板AR1100的lcd连接到带有Android设备的Raspberry pi3。Android没有这种触摸的驱动程序,我发现这个解决方案: 创建文件: /system/usr/idc/Vendor_04d8_Product_0c03.idc 并写下: # This is an example of an input device configuration file. # It might be used to describe the characteristics of

我尝试将带有触摸面板AR1100的lcd连接到带有Android设备的Raspberry pi3。Android没有这种触摸的驱动程序,我发现这个解决方案:

创建文件:

/system/usr/idc/Vendor_04d8_Product_0c03.idc
并写下:

# This is an example of an input device configuration file.
# It might be used to describe the characteristics of a built-in touch screen.
# The device is a external device.
device.internal = 0
# The device should behave as a touch screen device.
touch.deviceType = touchScreen
# The device uses the same orientation as the built-in display.
touch.orientationAware = 1
但重启后触摸不工作。怎么了


如何将此触摸连接到android things?

在您的android things应用程序(不在android things系统级别)中,您可以通过实施AR1100数据协议(第14-15页,共页),通过Raspberry Pi添加AR1100触摸支持:

主机应配置为9600波特、8个数据位和1个停止 一点

触摸报告始终源自AR1100,并且 响应触摸检测而传输。文件的格式 触摸报告取决于模式。测量分辨率 触摸坐标为10位。测量值发生偏移 (乘以4)并以12位格式报告。在 报告协议,最低有效坐标位X1:X0 Y1:Y0将是零。报告的结果满标度范围 触摸坐标为0到4095

“标准”5字节触摸报告的格式如表4-2所示:

等等


您可以找到Android Things UART示例。

在您的Android Things应用程序(不在Android Things系统级别)中,您可以通过实现AR1100数据协议(第14-15页,共页),通过Raspberry Pi添加AR1100触摸支持:

主机应配置为9600波特、8个数据位和1个停止 一点

触摸报告始终源自AR1100,并且 响应触摸检测而传输。文件的格式 触摸报告取决于模式。测量分辨率 触摸坐标为10位。测量值发生偏移 (乘以4)并以12位格式报告。在 报告协议,最低有效坐标位X1:X0 Y1:Y0将是零。报告的结果满标度范围 触摸坐标为0到4095

“标准”5字节触摸报告的格式如表4-2所示:

等等


您可以找到Android Things UART示例。

@EvgeniySherbak是的,它不是通用解决方案,但对于您的应用程序它应该可以工作。@EvgeniySherbak是的,它不是通用解决方案,但对于您的应用程序它应该可以工作。