All Forums
 Microsoft Windows CE
 CE Drivers
 Enabling touch panel debug data
 Forum Locked  Topic Locked
 Send Topic to a Friend
 Printer Friendly
Author Topic  

akidder

1519 Posts

Posted - 18 Dec 2002 :  18:09:38  Show Profile  Email Poster
Enabling Touch Panel Debug Data

Do you suspect that there may be a problem with your touch panel? Are you curious if you built your touch panel cable correctly?

A quick way to find out is to enable debug output for the touch panel driver. The following registry key will cause the raw (pre-calibration) data from the touch panel driver to be echoed to the debug port.


[HKEY_LOCAL_MACHINE\Drivers\TOUCH]
"EnableDebugMsg"=dword:1 ; 1=echo raw touch data to debug port, 0=normal(no debug output)
If your touch panel cable is built correctly, you should see low numbers for x and y when pressing in the upper-left corner and larger numbers for x and y when pressing in the lower-right. Values should range from 0 to 1023 (10-bit A/D).

Here's some sample output when pressing in the lower-right corner...
TmpX,=837, TmpY =786
TmpX,=846, TmpY =783
TmpX,=844, TmpY =782
TmpX,=843, TmpY =783
...and upper left corner...
TmpX,=106, TmpY =143
TmpX,=109, TmpY =141
TmpX,=103, TmpY =143
TmpX,=108, TmpY =140
TmpX,=103, TmpY =143
Note that this key is not available for all builds of CE.

For further reading about touch panels on ADS products, see the touch panel topic index.

Drew Kidder
ADS Technology Transfer

jjoseph

47 Posts

Posted - 10 Jan 2008 :  14:35:31  Show Profile
The above registry key and resultant output refers to touch drivers previous to the 1.0 touch panel specification. The registry key for Touch drivers version 1.0 and beyond is:

[HKEY_LOCAL_MACHINE\Drivers\TOUCH]
"ShowDebug"=dword:3F ; 3F=show all debug output, 0=normal(no debug output)
Notes:
The touch panel will not function properly while the debug output is on.
Not all CE builds support this feature.
Go to Top of Page
  Topic  
 Forum Locked  Topic Locked
 Send Topic to a Friend
 Printer Friendly
Jump To:
Eurotech Support Forums © Eurotech Inc. Go To Top Of Page
This page was generated in 0.02 seconds. Snitz Forums 2000