How to get a USB resistive touch screen to work on Android.

I know that most of you may have seen that there are many Android PCs on the PC. They are very small, but, of course, do not have an input device. They use Android 4.0 and higher. Two of them that I use are MK802 (Android 4.0) and MK808 (Android 4.1). I am trying to use these devices in a mobile / automotive environment. These units make excellent and affordable car computers. I already had a Windows-based system in the machine, so I have all the VGA-based screens. They come with 4-wire resistive USB touch panels.

Of course, I connect USB to devices, but nothing happens. What do I need to do to enable and configure touch screens? I would think that it will be native and will be installed like a mouse, but this is not so. I know that there is a universal driver in Linux that works, but has no idea to get it in Android. And what place can I find, perhaps edit the current drivers in Android?

Any help would be greatly appreciated! I am very new to this, so please don’t bash me with tons of conversations on Android, please leave it if you can.

+4
source share
1 answer

Making work with a new device on Android is not so simple ... Android is not yet a universal OS, and its core is not identical to the kernel that we launch on the desktop.

Here are some suggestions:

After connecting the USB device, run "adb shell dmesg" to check if Linux has found the correct driver for you or not. I know that there is usbtouchscreen.c lying in the source tree of the kernel (driver / input / touch screen), but you must confirm that:

a. The driver itself supports your device.
b. The device on which Android runs compiled and linked this driver module.

I assume that you have already confirmed. For b, you can find out by listing all the related drivers from directories such as / sys / class / input / driver / ... and check if this particular driver exists.

After that, do an "adb logcat | grep EventHub" to find out if Android is satisfied with this input device. I think that if you can get the driver to work on Linux, there shouldn’t be too many problems for Android, because it just interacts with the kernel input from / dev / input / eventX node.

Good luck

0
source

Source: https://habr.com/ru/post/1438489/


All Articles