[Qt-interest] help with tslib

Chris Burke cburke at ics.com
Thu Oct 29 17:20:36 CET 2009


Strange problems that I have not seen before. I would suggest trying to 
hand write a calibration file and see if you can get the touch screen to 
act a little better. It may just be that the calibration isn't working 
correctly so it's throwing the touchscreen *completely* off. It would 
make sense that the mouse disappears when you touch the screen. My guess 
is that the calibration is so off that it moves the cursor to the edge 
of the screen once you touch the touchscreen.

I hope the following links help because I have not seen this problem before:

http://www.armbedded.eu/node/131
http://www.mail-archive.com/aximx50-port@handhelds.org/msg01047.html


Fabio Martins - Gmail wrote:
> /Thank ///Chris Burke
>
> 2009/10/29 Chris Burke <cburke at ics.com <mailto:cburke at ics.com>>
>
>     I'm getting a little confused as to what your problem is now.
>
>     Are you capable of running the test binaries on your target (embedded
>     pc), such as "ts_print", "ts_calibrate", etc.? If not, what kind of
>     errors do you get?
>
>  
> *Yes I can run ts_calibrate, but I can only give a unique touch screen 
> and the program ends. with the following message: "ts_calibrated: 
> determinant is too small -- --0.000000).  *
>
>
>     You said that Qt recognizes your tslib. Do you get any warnings on the
>     console when starting up your Qt application pertaining to tslib?
>     If so,
>     what do they say?
>
>
> *Yes I can run my application. As TSLib I compiled in Debug mode it 
> shows the message TS_READ ----> = -15,020 x, y = -10,387, pressure = 
> 839,641,545.
> Also shows no error, but when I touch the screen the mouse hide. 
> *
>
>
>     Do you have QWS_MOUSE_PROTO set in your environment to something like
>     "tslib:/dev/input/mouse2" ?
>
>
> *Yes I configured QWS_MOUSE_PROTO = "TSLib: / dev/mouse2"  *
>
>     If you run "cat /dev/input/mouse2" and touch the screen, do you see
>     garbage being printed to the console?
>
>  
> *Yes if I cat / dev/input/mouse2 appears garbage*
>  
>
>     Just trying to get on the same page here :)
>
>
> *_Same results:_
> *------------------------------------------------------------------------------------------------
> *./ts_calibrate:
>
> Loading module /opt/tslib/lib/ts/arctic2.so
> Loading module /opt/tslib/lib/ts/pthres.so
> Loading module /opt/tslib/lib/ts/variance.so
> Loading module /opt/tslib/lib/ts/dejitter.so
> Loading module /opt/tslib/lib/ts/linear.so
> Linear calibration constants: -67 36365 -2733100 -48253 -310 45219816 
> 65536
> xres = 1024, yres = 768
> Top left : X =    0 Y =    1
> Top right : X =    0 Y =    1
> Bot right : X =    0 Y =    1
> Bot left : X =    0 Y =    1
> Center : X =    0 Y =    1
> ts_calibrate: determinant is too small -- 0.000000
> Calibration failed.*
> ------------------------------------------------------------------------------------------------
>
> *od /dev/mouse2
>
> 0000000  077410 004177 077577 077410 004065 000064 000051 014777
> 0000020  000377 000010 034000 175377 000011 024400 177400 177431
> 0000040  024400 177400 177431 014400 000377 177471 014777 000377
> 0000060  177431 014400 000377 177431 014400 000377 177431 014400
> 0000100  000376 177431 014400 000376 177431 014400 000376 177431
> 0000120  014400 000376 177431 014400 000376 177431 014400 000377
> 0000140  177431 034400 177776 177431 014400 000377 177431 014400
> 0000160  000377 177431 014400 000376 177431 034400 177777 177431
> 0000200  034400 177777 177031 014400 000377 177071 034777 177777
> 0000220  177031 034400 177776 177071 034777 177775 177071 034777
> 0000240  177376 176471 034777 177376 176471 034777 177375 176471
> 0000260  034776 176774 176471 034775 176774 174471 034771 174771
> 0000300  174071 034771 174772 174471 034771 175373 175471 034771
> 0000320  176776 177071 034775 176776 177071 034775 174774 176471
> 0000340  034771 174774 176071 034770 174374 175471 034771 174374
> 0000360  176071 034771 174373 175471 034771 173773 175071 034771
> *
> ------------------------------------------------------------------------------------------------
> *QT Application:
>
> ./Touch -qws
>
> Loading module /opt/tslib/lib/ts/arctic2.so
> Loading module /opt/tslib/lib/ts/pthres.so
> Loading module /opt/tslib/lib/ts/variance.so
> Loading module /opt/tslib/lib/ts/dejitter.so
> Loading module /opt/tslib/lib/ts/linear.so
> Linear calibration constants: -67 36365 -2733100 -48253 -310 45219816 
> 65536 *
>
> --------------------------------------------------------------------------------------------------------------
>
>
>
>  
>
>     Fabio Martins - Gmail wrote:
>     > /Thank you/ for your quick /reply /Chris Burke
>     >
>     > So,
>     >
>     > I separated the installation of TSLib in the / opt. As I am
>     compiling
>     > for another platform (even x86) but with another processor, I
>     compile
>     > on my machine and put onto the  embedded PC.
>     >
>     > The filesys I made for my embedded application.
>     >
>     > I do not know when I press the "touch" what data do I get?
>     >
>     > Are they the coordinates that I'm getting are more data than the
>     TSLib
>     > is waiting? then so it does not recognize the data?
>     >
>     > Thank you...
>     >
>     > 2009/10/28 Fabio Martins - Gmail <fmnovais at gmail.com
>     <mailto:fmnovais at gmail.com>
>     > <mailto:fmnovais at gmail.com <mailto:fmnovais at gmail.com>>>
>     >
>     >     My application in QT recognizes TSLib normally
>     >     but I can not calibrate.
>     >
>     >     And I am with the following problems:
>     >
>     >
>     >     When I press the touch screen (once only), it seems that it
>     reads
>     >     various
>     >     data and just going through steps that I did not realize the
>     touch
>     >     screen.
>     >     At the end of the message ( "ts_calibrated: determinant is
>     too small -
>     >     0.000000).
>     >
>     >     I think I'm using the right device
>     >
>     >     I'm using a touch of the link.
>     >
>     >     My environment variables are options set like this:
>     >     export TSLIB_CONSOLEDEVICE = none
>     >     export TSLIB_FBDEVICE = / dev/fb0
>     >     export TSLIB_TSDEVICE = / dev/mouse2
>     >     export TSLIB_CALIBFILE = / opt / TSLib / etc / pointercal
>     >     export TSLIB_CONFFILE = / opt / TSLib / etc / ts.conf
>     >     export TSLIB_PLUGINDIR = / opt / TSLib / lib / ts
>     >
>     >     When I run: cat / proc / bus / input / devices
>     >     I: Bus = 0003 Vendor = 04e7 Product = 0020 Version = 0100
>     >     N: Name = "Elo TouchSystems, Inc. Elo TouchSystems 2700
>     >     IntelliTouch (r) USB
>     >     Touchmonitor Interface"
>     >     P: Phys = usb-0000: 00:0 f.4-2/input0
>     >     S: Sysfs = / class/input/input4
>     >     U: Uniq = 20H52332
>     >     H: Handlers = mouse2 event4
>     >     B: EV = 1b
>     >     B: KEY = 10000 0 0 0 0 0 0 0 0
>     >     B: ABS = 100 3
>     >     B: MSC = 10
>     >
>     >     My ts.conf is set up like this:
>     >
>     >     # Uncomment if you wish to use the linux input layer event
>     interface
>     >     # module_raw input
>     >     # Uncomment if you're using a Sharp Zaurus SL-5500/SL-5000d
>     >     # module_raw collie
>     >     # Uncomment if you're using a Sharp Zaurus
>     SL-C700/C750/C760/C860
>     >     # module_raw corgi
>     >     # Uncomment if you're using a device with a UCB1200/1300/1400 TS
>     >     interface
>     >     # module_raw ucb1x00
>     >     # Uncomment if you're using an HP iPaq h3600 or similar
>     >     # module_raw h3600
>     >     # Uncomment if you're using a Hitachi Webpad
>     >     # module_raw mk712
>     >     # Uncomment if you're using an IBM Arctic II
>     >     module_raw arctic2
>     >
>     >     module pthres pmin=1
>     >     module variance delta=30
>     >     module dejitter delta=100
>     >     module linear
>     >
>     >
>     >     When I use the "module_raw input" does not work. I press the
>     touch
>     >     screen
>     >     (once only)
>     >     and the program quits unexpectedly.
>     >     Thank you...
>     >
>     >
>     >
>     >
>     > --
>     > Att.
>     > Fabio Martins
>     >
>     ------------------------------------------------------------------------
>     >
>     > _______________________________________________
>     > Qt-interest mailing list
>     > Qt-interest at trolltech.com <mailto:Qt-interest at trolltech.com>
>     > http://lists.trolltech.com/mailman/listinfo/qt-interest
>     >
>
>
>     --
>     chris burke
>     phone: 617-621-0060 x195
>     email: cburke at ics.com <mailto:cburke at ics.com>
>     skype: chris.burke0
>
>     _______________________________________________
>     Qt-interest mailing list
>     Qt-interest at trolltech.com <mailto:Qt-interest at trolltech.com>
>     http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
>
>
> -- 
> Att.
> Fabio Martins


-- 
chris burke
phone: 617-621-0060 x195
email: cburke at ics.com
skype: chris.burke0




More information about the Qt-interest-old mailing list