当前位置: 代码迷 >> WinCE >> WINCE 5.0 加载 触摸屏驱动 有关问题
  详细解决方案

WINCE 5.0 加载 触摸屏驱动 有关问题

热度:544   发布时间:2016-04-28 13:22:20.0
WINCE 5.0 加载 触摸屏驱动 问题
我使用威盛工业主板
X86 下面 使用WINCE5.0

买了个触摸屏 说明文档上和驱动包里安装注册的说明不一致
我都尝试了 但就是没有反应

USB口没有问题USB鼠标U盘都可以使用 触摸屏在PC上使用没有问题

驱动包里三个文件Calibration.exe touchp.dll USBPort.dll
说明文档如下:
registerity setting for USB 
<i>
[HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\TOUCH]
"DriverName"="Touchp.dll"
"CalibrationData"="102,102 1945,102 1945,1945 102,1945"
"BCLEFT"=dword:64
"BCRIGHT"=dword:64
"BCTOP"=dword:64
"BCBOTTOM"=dword:64

<ii>
[HKEY_LOCAL_MACHINE\Drivers\USB\LoadClients\14371_1\0_0_0\255_255_255\USB_TOUCH_Driver]
"DLL"="USBPort.dll"
[HKEY_LOCAL_MACHINE\Drivers\USB\LoadClients\14371_2\0_0_0\255_255_255\USB_TOUCH_Driver]
"DLL"="USBPort.dll"
[HKEY_LOCAL_MACHINE\Drivers\USB\LoadClients\291_1\0_0_0\255_255_255\USB_TOUCH_Driver]
"DLL"="USBPort.dll"
[HKEY_LOCAL_MACHINE\Drivers\USB\LoadClients\3823_1\0_0_0\255_255_255\USB_TOUCH_Driver]
"DLL"="USBPort.dll"
[HKEY_LOCAL_MACHINE\Drivers\USB\LoadClients\3823_2\0_0_0\255_255_255\USB_TOUCH_Driver]
"DLL"="USBPort.dll"


安装手册ManualCE.pdf 中
却写着
Windows CE.NET & CE 5.0
Steps of installation
Touch driver installation with TouchKit utility. File List:
USBTouch.dll - USB touch screen driver
TouchKit.dll - RS232 touch screen driver
TouchKit.exe - TouchKit utility
DrawTest.exe - DrawTest utility
Calibration.exe - Calibration utility
UpdateEEPROM.exe -Update EEPROM utility
Note: 1. If users use USB controllers, users select the UHCI or OHCI USB Host Controller driver into the platform, which supported by the target device, and check the USB mouse can go well at the same port.
2. If users use RS232 controllers, users have to make sure Windows CE has the driver of serial port.
Select the “Mouse” into your platform. This can find in:
“Catalog\Core OS\Display based devices\Shell and User Interface\Mouse”
1. Create a sub-folder “CEDB” under C:\
2. Copy files USBTouch.dll, TouchKit.dll, TouchKit.exe, DrawTest.exe, Calibration.exe and UpdateEEPROM.exe to the directory.
3. Launch platform builder and open the platform workspace.
4. Edit the PROJECT.BIB in the Parameter View of Platform Builder.
5. Add these two lines in Modules:
a) TouchKit utility:
TouchKit.exe C:\CEDB\TouchKit.exe NK S
DrawTest.exe C:\CEDB\DrawTest.exe NK S
Calibration.exe C:\CEDB\Calibration.exe NK S
UpdateEEPROM.exe C:\CEDB\Calibration.exe NK S
b) If users want to use USB module:
USBTouch.dll C:\CEDB\USBTouch.dll NK SH
c) If users want to use RS232 module:
TouchKit.dll C:\CEDB\TouchKit.dll NK SH
6. Edit the PROJECT.REG in the Parameter View of Platform Builder.
7. Add these lines for registry:
a) Add the registry setting for all modules:
[HKEY_LOCAL_MACHINE\Drivers\TouchKit]
“RBSIZE”=dword:800
“RBTIME”=dword:989680
“FLAGS”=dword:1----------------------->set 0x1 sofware filter enable
set 0x3000 update eeprom function enable
“ZfilterThreshold”=dword:800
“ZfilterBound”=dword:00100001
“SoundType”=dword:0----------------------->This is the default sound type
SoundType = 0 is no sound
SoundType = 1 is Beep in touch down
SoundType = 2 is Beep in lift off
b) If users want to use USB module:
[HKEY_LOCAL_MACHINE\Drivers\USB\LoadClients\14371_1\0_0_0\255_255_255\USB_TOUCH_Driver]
“DLL”=”USBTouch.dll”
[HKEY_LOCAL_MACHINE\Drivers\USB\LoadClients\14371_2\0_0_0\255_255_255\USB_TOUCH_Driver]
“DLL”=”USBTouch.dll”
[HKEY_LOCAL_MACHINE\Drivers\USB\LoadClients\4660_1\0_0_0\255_255_255\USB_TOUCH_Driver]
“DLL”=”USBTouch.dll”
[HKEY_LOCAL_MACHINE\Drivers\USB\LoadClients\3823_1\0_0_0\255_255_255\USB_TOUCH_Driver]
“DLL”=”USBTouch.dll”
[HKEY_LOCAL_MACHINE\Drivers\USB\LoadClients3823_2\0_0_0\255_255_255\USB_TOUCH_Driver]
  相关解决方案