This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Why touch screen does not respond when i touch the program icon in Matrix GUI application

Other Parts Discussed in Thread: AM3352

Hi all

I am using  linux-3.2.0-psp04.06.00.11,the touch screen is HD-4.3-480272EF-ATXL#-T which is resistive touch screen,the schematic is attached as image,please refer to it.

Refered to AM335x Starter Kit,

AM335X_XLeft is connected to AIN0 of AM3352,

AM335X_XRight is connected to AIN1 of AM3352,

AM335X_YUp is connected to AIN2 of AM3352,

AM335X_YDown is connected to AIN3 of AM3352,

The Matrix GUI application could be run correclty and be showed on LCD,

but even if i touched any icon of program(such as Power),there had no response,

so i used Oscilloscope to probe AM335X_XRight,AM335X_YDown,AM335X_XLeft and AM335X_YUp,

these pins all had signal.

We still don't know how the problem came about.

Best Regards

Qin Long

  • Hi Qin,
     
    Did you solve the calibration problem in your other post? If you did then this is probably a software problem.
     
  • Hi Biser

    The calibration seems be solved,the follow infomation was been showed

    Calibrating touchscreen (first time only)xres = 480, yres = 272
    [   44.862701] eth0: no IPv6 routers present
    Took 2 samples...
    Top left : X = 4078 Y = 4041
    Took 8 samples...
    Top right : X = 4078 Y = 4041
    Took 3 samples...
    Bot right : X = 4077 Y = 4041
    Took 2 samples...
    Bot left : X = 4077 Y = 4041
    Took 1 samples...
    Center : X = 4077 Y = 4041
    240.000000 0.058328 0.000000
    136.000000 0.033050 0.000000
    Calibration constants: 15728640 3822 0 8912896 2165 0 65536

    then Matrix GUI Application is run.

    how can i solve the problem.

    Best Regards

    Qin Long

  • From what I see your calibration did not run correctly. The values converge on 1 pixel area. This would explain why the TS does not respond in the application.
  • Hi Biser

    Thanks a lot for your reply,

    Then what should i do to solve the problem.

    Best Regards

    Qin Long

  • Hi,

    When you run the calibrate_ts utility, do you see all the 5 crossmarks that appear on the screen?

    How many wires does you touchscreen use? Is the struct tsc_data am335x_touchscreen_data inside the board-am335xevm.c file correct?

    Best regards,
    Miroslav

  • Hi Miroslav

    Thanks a lot for your reply.

    I saw only one crossbar on the screen.

    I use 4 wire for touch screen,

    I did not modify the content of  struct tsc_data am335x_touchscreen_data.

    i also did not modify anything for touch screen.

    now i still have no idea to fix the problem.

    Best Regards

    Qin Long


  • Hi Miroslav

    addtional question.

    there is only one ethernet on my custom board,

    I just only use RGMII port(the second port) as ethernet,will the OS auto assign the RGMII port  to eth0?

    Best Regards

    Qin Long

  • long qin said:
    Calibrating touchscreen (first time only)xres = 480, yres = 272

    Is this screen resolution correct? Are you able to see the whole Matrix App Launcher on your LCD or is the screen cropped?

    You say you saw only one crossmark on the screen. Where was is located and did you touch the screen 5 times at the same place?

    Best regards,
    Miroslav

  • Hi Miroslav

    The TFT & TSC is NHD-4.3-480272EF-ATXL#-T which is the same with AM335x Starter Kit,so

    i think the resolution of the TFT is correct.

    i'm able to see the whole Matrix app on my TFT,and the Next symbol  also can be seen.

    "where was the crossbar  located?" -->Please refer to the attched image

    Miroslav Kiradzhiyski XID said:
    Where was is located and did you touch the screen 5 times at the same place?

    i  exactly  touch many times(I can not be sure only 5 times ) at above place

    Best Regards

    Qin Long

  • I'm sorry, I didn't understand if the crossbar changes position after you touch it the first time? The sequence should be: Top left, Top right, Bottom left, Bottom right, Center - one touch each.

    Best regards,
    Miroslav

  • Hi Miroslav

    Thanks a lot for your reply.

    Miroslav Kiradzhiyski XID said:
    I'm sorry, I didn't understand if the crossbar changes position after you touch it the first time? The sequence should be: Top left, Top right, Bottom left, Bottom right, Center - one touch each.

    After i touched the crossbar,there was no response,and the position did not change,

    so the sequence you described above did not appear.

    Best Regards

    Qin Long

  • Hi Qin,
     
    Can you check there is noise on the TSC lines? How is your ADC ground connected? Is it separate from common PCB ground? Do you have any additional components, like capacitors, on the TSC lines?
  • Hi,

    I'm attaching my pointercal file, generated on a StarterKit. Please try to replace yours with it. The pointercal file is located in either /etc folder in the rootfs partition or in the boot partition.

    Replace it and see if your touchscreen works properly by running ts_print or ts_print_raw and touching the screen.

    http://e2e.ti.com/cfs-file.ashx/__key/communityserver-discussions-components-files/791/7485.pointercal

    Best regards,
    Miroslav

  • Hi Miroslav

    Thanks a lot for your reply.

    I did follow steps.

    1, I rename the name of 7485.pointercal to pointercal

    2, I replaced old file with pointercal

    3, I ran ts_print,the results are always came out,the results are follow,

    1372208675.183741:    -19    -10     58
    1372208675.185572:    -19    -10     27
    1372208675.187403:    -19    -10     31
    1372208675.191065:    -19    -10     21
    1372208675.192896:    -19    -10     42
    1372208675.194727:    -19    -10     62
    1372208675.196558:    -19    -10     68
    1372208675.202051:    -19    -10     75
    1372208675.203882:    -19    -10     72
    1372208675.211206:    -19    -10      0
    1372208675.214868:    -19    -10     22
    1372208675.216699:    -19    -10     35
    1372208675.218531:    -19    -10     23
    1372208675.220362:    -19    -10     27
    1372208675.222193:    -19    -10     97
    1372208675.224024:    -19    -10    135
    1372208675.225855:    -19    -10     99
    1372208675.227686:    -19    -10      0
    1372208675.229517:    -19    -10    155
    1372208675.231348:    -19    -10    109
    1372208675.233209:    -19    -10     71
    1372208675.235041:    -19    -10     74
    1372208675.236872:    -19    -10     40
    1372208675.249658:    -19    -10     65
    1372208675.253321:    -19    -10      0
    1372208675.255152:    -19    -10     63
    1372208675.256983:    -19    -10     44
    1372208675.262476:    -19    -10     44
    1372208675.264307:    -19    -10     52

    I stopped the command,and i run ts_print_raw,the results are always came out,the results are follow,

    1372208747.259088:   4082   4047      0
    1372208747.260919:   4083   4049     90
    1372208747.264612:   4083   4046     55
    1372208747.268274:   4080   4047     33
    1372208747.271936:   4081   4047     22
    1372208747.273767:   4082   4048      0
    1372208747.279261:   4083   4047     37
    1372208747.284754:   4083   4048    164
    1372208747.286585:   4081   4046     36
    1372208747.288416:   4084   4047    155
    1372208747.292078:   4083   4047     44
    1372208747.293939:   4084   4051     33
    1372208747.295771:   4084   4046    122
    1372208747.297602:   4083   4045     12
    1372208747.301264:   4082   4048     22
    1372208747.304926:   4085   4046     11
    1372208747.308588:   4083   4047     35
    1372208747.310419:   4083   4047     22
    1372208747.312281:   4082   4047     22
    1372208747.314112:   4083   4047    110
    1372208747.317774:   4082   4046     55
    1372208747.323267:   4083   4045      0
    1372208747.326929:   4082   4048      0
    1372208747.330591:   4083   4047     11
    1372208747.332422:   4079   4047     21
    1372208747.334253:   4083   4052    133
    1372208747.337946:   4083   4048    147
    1372208747.339777:   4080   4045    144
    1372208747.341608:   4083   4048     22

    I stopped the comand,

    during above two commands executing,there were not anything happened on screen.

    I touched the icon on screen ,it still not work correctly.

    Best Regards

    Qin Long

  • Just to be clear - you didn't just touch on one exact place, right? You moved your finger around and these were the results while moving your finger?

    Another thing: Which file did you replace - the /etc/pointercal file or the one in the boot partition? Please replace both.

    Best regards,
    Miroslav

  • Hi Miroslav

    Miroslav Kiradzhiyski XID said:
    Another thing: Which file did you replace - the /etc/pointercal file or the one in the boot partition? Please replace both.

    I replaced both.

    Miroslav Kiradzhiyski XID said:
    you didn't just touch on one exact place, right? You moved your finger around and these were the results while moving your finger?

    During executing ts_print or ts_print_raw caommand,i did nothing.

    Best Regards

    Qin Long

  • Hi Biser

    Biser Gatchev-XID said:
    Can you check there is noise on the TSC lines?

    I did not

    Biser Gatchev-XID said:
    How is your ADC ground connected?

    In my PCB board,the common PCB groud is DGND,

    the ADC groud is GNDA_TSC,so It is separated from common PCB groud.

    Biser Gatchev-XID said:
    Do you have any additional components, like capacitors, on the TSC lines?

    There are no additional componets on the TSC lines.

    Best Regards

    Qin Long

  • Hi,

    long qin said:
    During executing ts_print or ts_print_raw caommand,i did nothing.

    You shouldn't get any output from these two commands if you don't touch the touchscreen. This means that your touchscreen is generating input on its own. Judging by the output from the print commands you posted, it seems like your touchscreen is pinched in the Top left corner (the close to 0 values from ts_print confirm this and also the close to 4000 values from ts_print_raw). Please check your touchscreen for any deformations in the Top Left corner.

    Best regards,
    Miroslav

  • Hi Miroslav

    Thanks a lot for your reply.

    I used another new TSC,it was also not able to work correctly.

    I will buy a stylus tomorrow,and i will try to calibrate by a stylus .

    Best Regards

    Qin Long