ZuLuuuuuu
Posts: 26
Joined: Thu May 23, 2013 6:30 am

How to get raw data from USB touch screen controller

Thu Apr 06, 2017 9:01 am

Hello, I have a touch screen and I received a USB controller (EETI MER4040UPBG to be specific). I want to use the touch screen for a custom device controlled by Raspberry Pi. I don't want touch screen to control the Raspberry mouse, I want to get raw data from it. But when I plug the USB controller, it automatically acts like mouse and reflects my touches to the OS UI. How can I prevent this and instead get raw data from the USB controller?

User avatar
topguy
Posts: 5958
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: How to get raw data from USB touch screen controller

Thu Apr 06, 2017 6:29 pm

I believe this post should put you in the right direction of how to disable it in X: http://unix.stackexchange.com/questions ... ix-under-x

The raw data can be read by a program by opening the correct device in "/dev/input/", reading from it and interpret the information. You will find libraries/modules helping you with this for most programming languages. ( libevdev for C/C++, "evdev" module for Python etc. )

ZuLuuuuuu
Posts: 26
Joined: Thu May 23, 2013 6:30 am

Re: How to get raw data from USB touch screen controller

Thu Apr 27, 2017 5:25 pm

topguy wrote:I believe this post should put you in the right direction of how to disable it in X: http://unix.stackexchange.com/questions ... ix-under-x

The raw data can be read by a program by opening the correct device in "/dev/input/", reading from it and interpret the information. You will find libraries/modules helping you with this for most programming languages. ( libevdev for C/C++, "evdev" module for Python etc. )
Thank you for your answer, I am stuck at something else so I couldn't get back to you but will get back to you once I have the chance to test.

Return to “Automation, sensing and robotics”