irclog2html for #htc-linux on 20060511

07:16.09*** join/#htc-linux awelux_ (n=awelux__@dslb-084-058-159-116.pools.arcor-ip.net)
08:27.25*** join/#htc-linux jeanseb (n=jeanseb@ipv4.sabine-et-benoit.com)
10:44.21*** join/#htc-linux rob_w (n=bob@213.54.215.105)
18:25.04*** join/#htc-linux goxboxlive (n=goxboxli@26.84-48-79.nextgentel.com)
21:39.56awelux_hehe
21:40.03awelux_<-insane laughter
21:40.18awelux_We don't need to modify tslib :)
21:40.32awelux_I've a perfectly linear TS :)
21:40.58awelux_<PROTECTED>
21:41.04awelux_SSDR_P2 = 0x920000  // for Y
21:46.12cr2hi awelux
21:46.45cr2the numbers were from the datasheet, and i have not changed them.
21:47.18awelux_what datasheet ?
21:47.52awelux_I've a different datasheet then
21:47.59awelux_Mine has 27 pages
21:48.07awelux_And explains every bit
21:48.22cr2yes.
21:48.33cr2differential mode, etc.
21:49.15awelux_yes. exactly. The mode has to match to the TS
21:49.21awelux_and how it is connected
21:49.59cr2so ? :)
21:50.11awelux_well the above works perfectly for me. I bet you will find a linear setting for yours too
21:51.03cr2what are the current settings ?
21:51.06awelux_I've a perfectly linear behavior all over the screen now and completely independent from the preassure
21:51.19awelux_the values I just posted
21:51.22cr2pressure is ignored by the driver
21:51.23awelux_before it was:
21:51.37awelux_SSDR_P" = 0xd00000 // for X
21:51.43awelux_SSDR_P2 = 0x900000 // for X
21:51.47awelux_for Y
21:52.00cr2what bits did you change ?
21:52.28awelux_well mine didn't ignore the preassure wit the above settings. when I pressed harder the cursor shiftet to the left.
21:52.29cr2i think i have checked the values and they looked reasonable...
21:53.08awelux_I changed the power down mode settings
21:53.40cr2interesting.
21:53.43cr2i'll try
21:54.35awelux_They determine how the "open" ends of the TS that are not measured right now are connected to reference sources.
21:54.50goxboxliveawelux: Good job, hope this will do the trick for the Universal to. Yes go on and try cr2, lets cross our fingers.
21:55.10awelux_goxboxlive, thanks
21:58.46cr2booting...
21:59.56goxboxliveexiting :-)
22:02.29awelux_You will have to rerun ts_calibrate
22:02.57awelux_obviously
22:08.40goxboxliveawlux: Is there a lot i have to change in the cvs? Or is it just a couple of lines in the htcuniversal_ts.c ?
22:09.16awelux_just these two lines
22:09.50goxboxliveok so i have to change this one: SSDR_P1 = 0xd00000 /* | (lower_bits << 0) */; /* May want bits 0 and 1 set for keeping power up */
22:09.51awelux_I loaded the ts driver as a module to quickly test different values.
22:09.58awelux_exactly this line
22:10.04awelux_and the one below
22:10.15goxboxliveand this one: SSDR_P1  = 0x900000 /* | (lower_bits << 0) */; /* May want bits 0 and 1 set for keeping power up */
22:10.18awelux_yes
22:10.28goxboxlivethx i'll try my self :-)
22:10.34awelux_we should get some feedback from cr2 soon.
22:11.11cr2hmm. did not help.
22:11.18awelux_sad :/
22:11.27goxboxlivehmm yes.
22:11.41cr2still, great for you ! :)
22:11.43awelux_try ts_test and try to draw horizontal and vertical lines
22:11.57cr2yes, it is the same pattern.
22:12.06awelux_For me, suddenly one coordinate was working perfectly
22:12.21awelux_You could try other values for the last byte
22:13.31awelux_as far as I understand all combinations of the last three bit could make sense for other TS configurationsä
22:13.51awelux_I had horribly distorted values at times.
22:18.46cr2wince is doing & 0xfff000ff with the data ...
22:19.29awelux_?
22:19.35awelux_that looks strange
22:20.49cr2then there is 2^35/11 value...
22:21.10cr2and  2^34/10
22:22.50awelux_cr2, did you get the exact same pattern you got before even so the TI2046 configuration was so different?
22:23.09cr2yes.
22:23.18cr2or a very similar one.
22:23.30cr2hmm. hardcoded 0x4F588
22:24.38awelux_you could try to toggle bit 2 then
22:25.39cr22^38/1000
22:26.12cr2some strange math is inside the driver. can be the affine transform.-
22:27.31awelux_ok. maybe the screen is nonelinear after all :)
22:27.52awelux_but maybe it's not always as bad as in your first harvest
22:28.48awelux_you are dissassembling the wince ts driver right now right?
22:28.58cr2wince must also send the X/Y request and get the response back...
22:29.11awelux_true
22:29.22awelux_and you are looking for that?
22:30.09awelux_It's possible that the X/Y requests are hard to identify
22:30.39awelux_since it's possible to use 16 bit requests and overlapping requests/response
22:31.08cr2the ssp port is set for 24bit mototola SPI.
22:31.48awelux_ah ok
22:32.19cr2i see heavy bitshifting >>16 and >>7
22:32.36cr24 times.
22:32.44awelux_can you upload the dll somewhere ?
22:33.31awelux_they probably outsorced the development of the driver and it's a complete mess.
22:51.42cr2it's not a dll.
22:52.04awelux_bu
22:52.09awelux_but ?
22:52.28cr2bootloader
22:52.57awelux_ah. you identified a section with a ts driver in there ?
22:53.35cr2yes.
22:56.30awelux_can I somehow get that bootloader ?
22:57.20cr2e-mail?
22:59.22awelux_alexander.werth at gmx.de
23:01.14cr2sent.
23:02.01cr2you'll see.
23:09.26awelux_got it. thx.
23:28.00*** join/#htc-linux amgad (n=amgad@82.201.251.137)
23:30.14awelux_gn8

Generated by irclog2html.pl by Jeff Waugh - find it at freshmeat.net! Modified by Tim Riker to work with blootbot logs, split per channel, etc.