Results 1 to 4 of 4

Thread: How to Calibrate Touchscreen

  1. #1
    Join Date
    Dec 2007
    Location
    London
    Posts
    206
    Thanks
    40
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android

    Question How to Calibrate Touchscreen

    Hello friends,

    I have a board ads5121e with mpc5121 processor and Qt Embedded for linux. I want to use ELO 1715L touchscreen with my qt applications.

    When i connect the touchscreen over usb, Linux recognizes it as a HID device automatically.

    But the problem is that;in my Qt application , the cursor position does not point where I touch on the screen. I mean that; when I touch upper part of the screen, mouse cursor goes a bit more upper; when i touch lower part of the screen, mouse cursor goes a bit more lower than the touched point.. There is a mapping problem i think...

    I guess that the resolution of the touchscreen and the resolution of the application are different.. Any idea how to solve that issue? Or is that a calibration issue? If yes how

    I also tried tslib and use the touchpanel by serial connection(since there is already a driver in the kernel for my touchscreen). But i couldn't manage it(Thats another story...)

    Any little idea is appreciated..
    Thanks in advance...

  2. #2
    Join Date
    Dec 2007
    Location
    London
    Posts
    206
    Thanks
    40
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android

    Default Re: How to Calibrate Touchscreen

    Ok guys, I gave up trying to use usb connection... Now I am trying to make rs232 connection work.

    When I "cat /dev/ttyPSC0" , I can see the output from touch screen...
    I set export "QWS_MOUSE_PROTO=elo:/dev/ttyPSC0" kind of something. but in my application the touchscreen doesn't function at all..Any advice ?

    I tried "QWS_MOUSE_PROTO=LinuxTP:/dev/ttyPSC0" in this case, when i touch on the screen the mouse cursor disappears.

    I also tried "QWS_MOUSE_PROTO=MouseMan:/dev/ttyPSC0" in this case, when i touch on the screen, the cursor goes left bottom of the screen and doesn't move any more...
    Last edited by yagabey; 18th September 2009 at 10:07.

  3. #3
    Join Date
    Feb 2010
    Posts
    2
    Qt products
    Qt4 Qt/Embedded

    Default Re: How to Calibrate Touchscreen

    Hi Yagabey,

    I have same problem . Did you solve your?

    Regards, moidom.

  4. #4
    Join Date
    Feb 2010
    Posts
    2
    Qt products
    Qt4 Qt/Embedded

    Default Re: How to Calibrate Touchscreen

    Hi,
    do you have a driver for your touch? if yes, you should have a /dev/yourDriverOutputDevice. Loof in ts.conf file if tslib support your touch. If yes, select QWS_MOUSE_PROTO=tslib:/dev/yourDriverOutputDevice and be sure you have in your plugin dir the appropiated plugin.

    In my case, I solved in this way: As I hadn't touch driver, I modified a choosed I plugin of ts.conf and I modified its soruce code to read on /dev/tty in a raw mode and I filled ts_event properly.

    Regards, moidom.

Similar Threads

  1. QTEmbedded tslib -> tsharc touchscreen
    By Honta in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 11th February 2009, 05:36
  2. touchscreen API
    By rbp in forum Qt Programming
    Replies: 9
    Last Post: 20th November 2008, 11:09
  3. touchscreen help
    By aj2903 in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 3rd October 2008, 00:54
  4. touchscreen QTe
    By damien in forum Qt for Embedded and Mobile
    Replies: 16
    Last Post: 18th September 2008, 16:46
  5. Qtopia4.2:Usage of both TouchScreen and Mouse
    By arunvv in forum Qt for Embedded and Mobile
    Replies: 2
    Last Post: 21st June 2007, 18:18

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.