EZ100PU/EZMINI/PISCES(EZUSB) Windows CE 3.0/4.1/4.2/5.0 Driver Installation Guild

Driver Version: 1.3.3
Data: Sep, 2004

Installing Step:

1. In your Platform Builder 3.0/4.1/4.2/5.0 project, add the driver "ezpuce.dll" by the 
   following setting in the file of common.bib:

	Destination Path	Source Path		Attributes
	ezpuce.dll    		ezpuce.dll             NK  SH

2. In your Platform Builder 3.0/4.1/4.2/5.0 project, add the following registry value into 
   the file of common.reg:

	; USB - EZ100PU/EZMINI/PISCES(EZUSB)
	[HKEY_LOCAL_MACHINE\Drivers\USB\LoadClients\3238_16\Default\Default\EZPUCE_Driver]
   	    "Prefix"="EZU"
   	    "DLL"="EZPUCE.dll"

	[HKEY_LOCAL_MACHINE\Drivers\USB\Ezpuce]
   	    "Prefix"="EZU"
   	    "DLL"="EZPUCE.dll"

3. This is option. We have a simple testing program to test if the reader is installed correctly.
	In your Platform Builder 3.0/4.1/4.2/5.0 project, add the driver "sccetest.exe" by the 
	 following setting in the file of common.bib:

	Destination Path	Source Path		Attributes
	sccetest.exe    	sccetest.exe              NK
	casmcard.dll    	casmcard.dll              NK


	 The following Description describe the arguments of "sccetest.exe".
	    For CPU card Testing - 
		sccetest [-h] CurrentReader Test_Part1_Loop Test_Part2_Loop Test_Part3_Loop SleepTime Repeat MessageLevel
	    For Memory card Testing -	
		sccetest [-h] -m CurrentReader MemoryCardType Repeat MessageLevel

		-h : optional, display help
		-m : Test Memory card
		CurrentReader : which reader to select, 0-based
		Test_Part1_Loop : loop times for testing Part1 
		Test_Part2_Loop : loop times for testing Part2 
		Test_Part3_Loop : loop times for testing Part3 
		SleepTime : thee time to starting next testing, in second
		Repeat : the times to repeat the whole testing
		MessageLevel : 0 - no message
			       1 - show loop
			       2 - show action
			       3 - show data
		MemoryCardType : 0 - SLE4442
				 1 - SLE4428
				 3 - I2C Read  (256 bytes)
				 4 - I2C Write (256 bytes from 00 to FFh)
		ex : 
			sccetest -h 0 1 1 1 0 2 2
			sccetest -h -m 0 3 1 3

	Notice:  This testing program uses PC/SC interface to access the card.
		 So before starting using it, you should make sure that Microsoft Smart 
                    Card Base Component (Resource Manager) has been built in.
		 To add this component, set the variable SYSGEN_SMARTCARD to 1 in your
		    platform builder project.   

4. Rebuild your platform.

5. Connect EZ100PU/EZMINI/PISCES(EZUSB) readers when loading your new-built platform.

6. This is option, only useful when you did the step 3.

	Insert a smart card into the EZ100PU/EZMINI/PISCES(EZUSB) reader 
	and 
	run the testing program : sccetest.exe
		This testing program will 
		(1) Power on the smart card (the led of reader becomes red).
		(2) Do a single APDU command.
		(3) Power off the smart card (the led of reader becomes green).

Q&A:
   1.  Q : How do we know if the driver is correctly installed and successfully running?
       A : Insert a smart card and execute the testing program sccetest.exe. 
	   If the reader light turns red during the execution, it means you have successfully installed the driver and
	   have added Microsoft Smart Card Base Component (Mandatory).
   
   2.  Q:  Why does a dialog show us to input the driver name as connecting the EZ100PU/EZMINI/PISCES reader?
       A:  Please make sure that you have registered EZPUCE in the registry. This content is in the installation step 2.
           If you did, it may result from the binary code (ezpuce.dll) not suitable for this machine or this version of CE,
	   and should be recompiled.
  
   3.  Q:  Why can't we execute sccetest.exe?  (even if with casmcard.dll)
       A:  This is because you have not installed Microsoft Smart Card Base Component.

   4.  Q:  How do we install Microsoft Smart Card Base Component?
       A:  Set the variable SYSGEN_SMARTCARD to 1 (cesysgen.bat) and this will make your platform add Microsoft Smart Card 
	   Component. This action will add scard.dll and winscard.dll.
	   The registry value for Microsoft Smart Card Base Component:
		[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\SmartCard]
   		    "Prefix"="SCA"
   	            "Dll"="scard.dll"
   		    "Index"=dword:1
   		    "Order"=dword:1  

   5.  Q:  After inserting a card, why does the light of the reader not turn red in Windows CE whereas it turns red in 
	   Windows 9x/Me/NT/2000/XP?
       A:  The Microsoft Smart Card Component determines the behavior. In the Windows 9x/Me/NT/2000/XP, it powers on
	   the card once inserting a card. In Windows CE 3.0/4.1/4.2/5.0, however, it does not do this action.   