*************************************************************************

 README.TXT for the Windows CE .Net 4.1/.Net4.2/.Net5.0 
 
                        Touch Panel Driver

 Copyright(C) 2002-2005 Fujitsu Component Limited.  All rights reserved.

*************************************************************************

1. Introduction

  This driver works on Windows CE .Net4.1/.Net4.2/.Net5.0(x86).
  This driver supports Fujitsu Component USB interface Touch Panel devices.  
  USB I/F Controller : NC41120-0004,-0015


2. Installation

    (1) Modify PROJECT.REG or PLATFORM.REG and COMMON.REG and COMMON.BIB files 
        in your project on Windows CE Platform Builder.

        a)PROJECT.REG or PLATFORM.REG
          Search for the registry key [HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\TOUCH].
          Delete all lines (and other references) in this key , then add the 
          following lines.

          [For  NC41120-0004]
          "DriverName"="Fidrtpce.dll"
          "SpinTop"=dword:0
          "XYConvert"=dword:0
          "VendorID"=dword:430
          "ProductID"=dword:508
          "CMD"=hex:00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
                   ,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00

           ## Details of parameter ##
           1) SpinTop
              The coordinates are rotated by the following values.
              Set up 0 in the parameter when the coordinates are not rotated.
                0 : The coordinates are not rotated.
                1 : The coordinates are rotated right 90 degrees.
                2 : The coordinates are rotated right 180 degrees.
                3 : The coordinates are rotated right 270 degrees.

           2) XYConvert
              X and Y coordinates (The reversal of origin coordinate and maximum 
              coordinate) are changed by the following values.
              Set up 0 in the parameter when the coordinates are not changed.
                0 : X and Y coordinates are not changed.
                1 : X coordinate is reversed.
                2 : Y coordinate is reversed.

           3) VendorID
              Input VendorID of Touch Panel Controller.

          ## Attention ##
            *Input VendorID with hex decimal.

           4) ProductID
              Input ProductID of Touch Panel Controller.

          ## Attention ##
            *Input ProductID with hex decimal.

           5) CMD
              Command to transmit at the time of the start is set up. 
              It is used for one command 8 bytes. 
              5 commands can be set up in this driver at the same time.
              The following is the example to do a setup of DELAY and a setup 
              of BUTTONMAP. 

            "CMD"=hex:40,01,07,07,23,00,00,00,40,02,01,00,00,00,00,00,00,00,00,00
                     ,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00

          ## Attention ##
            *Input CMD with hex decimal.
            *Refer to the specification of USB I/F Controller for the command. 
            *The output mode can't be set up in this driver. 

        b)COMMON.REG
           Add the following registry key and line.

          [HKEY_LOCAL_MACHINE\Drivers\USB\LoadClients\%VendorID%_%ProductID%\Default\3\FCL_Touch_Driver]
               "DLL"="Fidusbce.dll"
               "Prefix"="HID"
               "Index"=dword:2

          [HKEY_LOCAL_MACHINE\Drivers\USB\ClientDrivers\FCL_Touch_Driver]
               "DLL"="Fidusbce.dll"
               "Prefix"="HID"
               "Index"=dword:2

          %VendorID% and %ProductID% are to mention VendorID and ProductID of 
          the control IC which is actually used. The following is a mentioned 
          example in case of NC41120-0004. 

          [HKEY_LOCAL_MACHINE\Drivers\USB\LoadClients\1072_1288\Default\3\FCL_Touch_Driver]

          ## Attention ##
            *Input VendorID and ProductID with decimal.


        c)COMMON.BIB
           Add the following line in your COMMON.BIB file.

           Fidrtpce.dll    $(_FLATRELEASEDIR)\Fidrtpce.dll        NK  SH
           Fidusbce.dll    $(_FLATRELEASEDIR)\Fidusbce.dll        NK  SH


          ## Attention ##
            *Please do not add this line to the head of COMMON.BIB file.
             The following is the example of the position where a setup mentions it.

         ; @CESYSGEN IF CE_MODULES_GWES
               gwes.exe        $(_FLATRELEASEDIR)\gwes.exe            NK  SHM
               Fidrtpce.dll    $(_FLATRELEASEDIR)\Fidrtpce.dll        NK  SH
         ; @CESYSGEN ENDIF
         ; @CESYSGEN IF CE_MODULES_DEVICE
               device.exe      $(_FLATRELEASEDIR)\device.exe          NK  SHM
               regenum.dll     $(_FLATRELEASEDIR)\regenum.dll         NK  SH
               Fidusbce.dll    $(_FLATRELEASEDIR)\Fidusbce.dll        NK  SH


    (2) Build platform on Windows CE Platform Builder. At this time, five error 
        messages are indicated. because there is no DLL of this driver to include 
        to make an image. Ignore this message, and proceed in the next process. 

    (3) Copy "Fidrtpce.dll" and "Fidusbce.dll" to the Build-Release directory.
        Normally this directory would be located in 
        "WINCE410\PUBLIC\%MyProjectName%\RelDir\X86_Release".
        %MyProjectName% should specify an actual project name. 
  
    (4) Create image on Windows CE Platform Builder. (default nk.bin)
        At this time, warning messages are indicated to include this driver not 
        which is being made this time. Ignore this message, and proceed in the 
        next process. 

    (5) Transfer the WindowsCE image file which included Touch Panel driver to
        the target system.

    ## Attention ##
       *The pass of the Build-Release directory of the process (3) is the following 
        by the version of Windows CE Platform Builder. 

        Windows CE Platform Builder .Net 4.1 
           :"WINCE410\PUBLIC\%MyProjectName%\RelDir\X86_Release"
        Windows CE Platform Builder .Net 4.2 
           :"WINCE420\PUBLIC\%MyProjectName%\RelDir\X86_Release"
        Windows CE Platform Builder .Net 5.0 
           :"WINCE500\PBWorkspaces\%MyProjectName%\RelDir\CEPC_X86_Release"


3. Calibration
   The adjustment of touch position uses the standard calibration software included
   in Windows CE.  Please refer to help of the stylus properties. 

   ## Attention ##
     *Add the following lines to the registry key [HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\TOUCH]
      of PROJECT.REG or PLATFORM.REG when the effective range of the Cailbration Point is small. 

     "MaxCalError"=dword:12

     ## Details of parameter ##
     1) MaxCalError
        The effective range becomes wide as much as this value is big. 

     *Write it in the registry key [HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\TOUCH] of PROJECT.REG 
      or PLATFORM.REG as "CalibrationData" when you input an initial Calibration point value. 
 
