Search

Technical Discussion Group Forum

This forum is provided for user discussion. While Beacon EmbeddedWorks support staff and engineers participate, Beacon EmbeddedWorks does not guarantee the accuracy of all information within in the Technical Discussion Group (TDG).

The "Articles" forums provide brief Articles written by Beacon EmbeddedWorks engineers that address the most frequently asked technical questions.

To receive email notifications when updates are posted for a Beacon EmbeddedWorks product download, please subscribe to the TDG Forum of interest.

TDG Forum

PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 10 Apr 2008 06:41 AM by  olco
Linux - Testing the touchscreen
 3 Replies
Sort:
You are not authorized to post a reply.
Author Messages

olco



New Member


Posts:
New Member


--
11 Mar 2008 10:08 AM
    Hello,

    I'm at the end of testing and debugging the LiteKit with the Freescale linux BSP rel 3 (linux 2.6.19.2 + SPI/PMIC patch) .
    I'm using the 10.4 display kit.
    Most of the board is working ( video, audio, etc..)
    I have still an issue with the Touch screen. It is not working.
    Below it is the result from the test tool software.
    It is always the same results, except that randomly there is some "0".
    I don't know if it is an sofware or hardware issue.

    may someone have any hints

    regards
    Olivier

    ---------------------------------------------------


    mx31# ./pmic_testapp_adc -T TS MON
    pmic_testapp_adc 0 INFO : Testing if 47276 test case is OK

    Test Touch Screen ADC
    Value of X position is -1065369876
    Value of Y position is -1073587740
    Value of contact resistance is -1073450825
    pmic_testapp_adc 1 FAIL : Not valid coordinates

    pmic_testapp_adc 2 FAIL : 47276 test case did NOT work as expected

    mx31# ./pmic_testapp_adc -T TS MON
    pmic_testapp_adc 0 INFO : Testing if 47276 test case is OK

    Test Touch Screen ADC
    Value of X position is -1065369876
    Value of Y position is -1065369828
    Value of contact resistance is 1205245571
    pmic_testapp_adc 1 FAIL : Not valid coordinates

    pmic_testapp_adc 2 FAIL : 47276 test case did NOT work as expected

    mx31# ./pmic_testapp_adc -T TS MON
    pmic_testapp_adc 0 INFO : Testing if 47276 test case is OK

    Test Touch Screen ADC
    Value of X position is 0
    Value of Y position is -1065369852
    Value of contact resistance is -1067622372
    pmic_testapp_adc 1 FAIL : Not valid coordinates

    pmic_testapp_adc 2 FAIL : 47276 test case did NOT work as expected

    mx31# ./pmic_testapp_adc -T TS MON
    pmic_testapp_adc 0 INFO : Testing if 47276 test case is OK

    Test Touch Screen ADC
    Value of X position is 0
    Value of Y position is -1065369852
    Value of contact resistance is 65535
    pmic_testapp_adc 1 FAIL : Not valid coordinates

    pmic_testapp_adc 2 FAIL : 47276 test case did NOT work as expected

    mx31# ./pmic_testapp_adc -T TS MON
    pmic_testapp_adc 0 INFO : Testing if 47276 test case is OK

    Test Touch Screen ADC
    Value of X position is 0
    Value of Y position is -1065369852
    Value of contact resistance is 1205245576
    pmic_testapp_adc 1 FAIL : Not valid coordinates

    pmic_testapp_adc 2 FAIL : 47276 test case did NOT work as expected

    mx31# ./pmic_testapp_adc -T TS MON
    pmic_testapp_adc 0 INFO : Testing if 47276 test case is OK

    Test Touch Screen ADC
    Value of X position is -1065369876
    Value of Y position is -1065369828
    Value of contact resistance is 1205245577
    pmic_testapp_adc 1 FAIL : Not valid coordinates

    pmic_testapp_adc 2 FAIL : 47276 test case did NOT work as expected

    mx31# ./pmic_testapp_adc -T TS MON
    pmic_testapp_adc 0 INFO : Testing if 47276 test case is OK

    Test Touch Screen ADC
    Value of X position is -1065369876
    Value of Y position is -1065369828
    Value of contact resistance is 65535
    pmic_testapp_adc 1 FAIL : Not valid coordinates

    pmic_testapp_adc 2 FAIL : 47276 test case did NOT work as expected

    Badguy



    New Member


    Posts:
    New Member


    --
    11 Mar 2008 12:05 PM
    These programs do not work for me.
    I assume they are for the ADS board, or something else.

    what you can do to test your touchscreen:

    cat /proc/bus/input/devices
    locate here your event id

    if you load the keyboard driver it will probably be event1 otherwise if you just have the touchscreen driver loaded
    it should be event0

    then you can do a quick and dirty test:
    cat /dev/input/event[N]
    then touch the screen.
    if you see gibbly goop here, then it works.

    control-c to kill it, type reset if it borked your console output.

    now you can write some code to parse the input_event structure.


    But, I have some other problems with the touchscreen.
    I have a deadzone on the left side, the driver is filtering these events.
    also I get inconsistent flesh press information.

    when I use flesh of finger to press, I can get events upto 600 pixels away.
    if I use rigid object, fingernail stylus I get more consistent press information.
    but still some bad press data.

    seems it is the driver doing it all.

    olco



    New Member


    Posts:
    New Member


    --
    13 Mar 2008 07:34 AM
    Thank you, it's working !

    Regards
    Olivier

    olco



    New Member


    Posts:
    New Member


    --
    10 Apr 2008 06:41 AM
    Now I have a fully working touching screen.

    I want now to control and tweak the finger pressure on the screen.
    I analyse the code and it seems that it is the MC13783 that detects a finger/stylus touch, then send an IRQ to the imx31.

    Does someone know how to configure the detection level of the MC13783 ?


    regards
    Olivier
    You are not authorized to post a reply.