A13_OLinuXino added touchscreen GSL1680,it workesbut it cannot calibrate ?

Started by Guess0God1, December 09, 2014, 06:03:39 AM

Previous topic - Next topic

Guess0God1

I have compiled A13-SDK Android 4.1 JB which is downloaded from OLIMEX,it can work.Then I added touchscreen gslX1680 which is from www.linux-sunxi.com,the gslX1680 drive program runs on the system too,but it can't calibrate completely.When boots up,it keeps on
calibrating all the way.It cannot quit.Then i find a TSCalibration2.apk in sysytem/app,i delete it.It does not hint me to calibrate
any more,which take a new problem,the gslX1680 cann't calibration.I think about for a few days,it seems i have nothing to do on it.
so who can help me out?thanks thanks.

the log message for touchsreen gslX1680:
6>[    1.514008] ===========================gsl_ts_init=====================

<4>[    1.514028] ctp_fetch_sysconfig_para.

<3>[    1.514052] ctp_fetch_sysconfig_para: script_parser_fetch err.

<6>[    1.514061] ctp_fetch_sysconfig_para: gslx680_cfg=

<4>[    1.514074] ctp_fetch_sysconfig_para: after: ctp_twi_addr is 0x40, dirty_addr_buf: 0x40. dirty_addr_buf[1]: 0xfffe

<4>[    1.514088] ctp_fetch_sysconfig_para: ctp_twi_id is 1.

<4>[    1.514095] ctp_fetch_sysconfig_para: ctp_tp_type is 0.

<6>[    1.514105] ctp_fetch_sysconfig_para: screen_max_x = 800.

<6>[    1.514115] ctp_fetch_sysconfig_para: screen_max_y = 480.

<6>[    1.514124] ctp_fetch_sysconfig_para: revert_x_flag = 0.

<6>[    1.514133] ctp_fetch_sysconfig_para: revert_y_flag = 1.

<6>[    1.514142] ctp_fetch_sysconfig_para: exchange_x_y_flag = 0.

<4>[    1.514152] gsl_ts_init: after fetch_sysconfig_para:  normal_i2c: 0x40. normal_i2c[1]: 0xfffe

<4>[    1.514201] script parser fetch err.

<4>[    1.514211] ctp_init_platform_resource: tp_reset request gpio fail!

<6>[    1.514524] ctp_detect: Detected chip gslX680_ts at adapter 1, address 0x40

<4>[    1.514682] GSL Driver Version:<2013/08/30/V1.3>

<4>[    1.514693] GSL Driver build@14:11:21,Dec  4 2014

<4>[    1.514700] GSL I2C Address:0x40

<4>[    1.514706] GSLX680 Enter gsl_ts_probe

<6>[    1.514713] ========Begin gslx68x IC i2c test============

<6>[    1.514969] ret = 1.

<6>[    1.514976] ===== gslx68x i2c test ok=======

<4>[    1.514984] ==kzalloc success=

<4>[    1.514990] [GSLX680] Enter gsl_ts_init_ts

<6>[    1.515313] input: tp as /devices/platform/sun5i-i2c.1/i2c-1/1-0040/input/input2

<6>[    1.515584] ctp_set_irq_mode: config gpio to int mode.

<6>[    1.515615] ctp_set_irq_mode, 353: gpio_int_info, port = 7, port_num = 11.

<6>[    1.515623]  INTERRUPT CONFIG

<4>[    1.600715] I read reg 0xf0 is 0

<4>[    1.620520] I write reg 0xf0 0x12

<4>[    1.640803] I read reg 0xf0 is 0x12

<4>[    1.810421] [i2c1] incomplete xfer (0x48)

<4>[    1.810442] read 0xfc = 0 0 0 0

<4>[    1.830771] read 0xfc = a0 82 0 0

<4>[    1.830788] ==925====used default data!=====

<4>[    1.830797] ======source_len = 5412=======

<4>[    1.830820] =============gsl_load_fw start==============

dave-at-axon

From what I have gathered in using 2 different cap touch LCD displays is that they don't require any calibration.

The panel is factory calibrated and should output coordinates based on it's internal resolution. My panel is 1500 x 900 but works with a 800x480 LCD. Android takes care of the scaling.

What are you seeing when you touch the screen? Use a mouse to enable the debugging tools for the touch so you can see where Android thinks you are touching.

I see from you FEX settings that the Y is inverted. Is this correct?

Guess0God1

My board cannot connect with a mouse.That i cannot calibrate with a mouse. I  only calibrate through touch the touchsreen.Can you give some ideas for me?i feel that i should change the usb event to touchsreen event.But i could not make sure i should alter what file.can you give me some advices.Thanks !

dave-at-axon

Don't you have a spare USB port to plug a mouse into? It would be good to do this as it will allow you to set the debugging and show touches so you can see where the OS believes you are touching.

You talk about USB but the info below shows the touch is via I2C.