                        LIBUSB 64-bit Installation
                       for Dallas Semiconductor's
               DS2490-based USB 1-Wire host devices
                        (DS9490R and DS9490B)
                           

This file contains installation instructions for the libusb drivers for  
use with DS2490-based USB 1-Wire host devices on Windows 64-bit platforms 
(Windows XP x64 and Windows 2003 x64).

Located in the "install" directory are the following 2 directories:

amd64\
ia64\

Each directory represents a 64-bit platform.  The amd64 directory stands for 
the x64 platform (includes AMD 64-bit processors) and the ia64 directory stand 
for the Intel Itanium 64-bit platform.  Each of these directories has the following 
drivers and files:

libusb0.dll                            - libusb API dll (one exists for each 64-bit platform)
libusbds_amd64.inf               - libusb install file for x64 (AMD 64)
libusbds_ia64.inf                   - libusb install file for ia64 (Intel Itanium)
libusb0.sys                          - libusb driver file (one exists for each 64-bit platform)
testlibusb.exe                       - command line test program to see if libusb working correctly.
                                             (one exists for each 64-bit platform)

Follow these procedures to install the libusb drivers.
1)  Unplug any 1-Wire USB adapters.
2)  Uninstall any 1-Wire USB drivers that you may have previously loaded.
3)  If uninstalling 1-Wire USB drivers, please do the following:
    a.  Remove the "inf" file from the windows\inf directory.  Remove the 
        oemxx.inf file where xx stands for the number assigned to the file 
        when Windows installs the drivers and "inf" file.
    b.  Remove (or "delete") the driver from the device manager list (in 
        Control Panel).
    c.  Remove the libusb0.sys driver from the windows\system32\drivers
        directory.
4)  Plug in the 1-Wire USB adapter.
5)  This should prompt the "Add New Hardware" wizard to run.  If not, the
    wizard can be run from the Control Panel. 
6)  Point the wizard to the appropriate "install" directory (either \install\amd64 or 
     \install\ia64) where the libusbds_amd64.inf or libusbds_ia64.inf file can 
     be found respectively. Then continue the installation.  Please 
     ignore the warning message about driver signing.  While installing, you 
     should see the following string displayed:  
    "Dallas Semiconductor LIBUSB 1-Wire USB Adapter, Version 04/25/2006, 0.1.10.2"  
7)  When finished, you can run the testlibusb-win.exe to see if libusb was 
    installed correctly.  It should locate the 1-Wire USB adapter.

Build Instructions:
1)  Install the Windows Server 2003 Device Driver Kit (DDK).  It can be obtained for 
free from Microsoft (mailed on a CD to you for a nominal shipping charge).  For more info
see:  http://www.microsoft.com/whdc/devtools/ddk/orderddkcd.mspx
2)  Install Cygwin from http://www.cygwin.com.  This provides the CVS client and the 
"dos2unix" programs used in the build scripts.
3)  Click on either the "Windows Server 2003 Checked x64 Build Environment" command prompt window (located in the "Development Kits" directory of "Program Files"), which is the amd64 build environment or the "Windows Server 2003 Checked IA-64 Build Environment", which is the ia64 build environment.  This will bring up a comman-line prompt.  From it, you can compile 64-bit device drivers and programs.
4)  Depending upon which 64-bit build environment you chose above, change to the \builds\libusbw64ddk subdirectory and run the appropriate build batch file (either build_all_amd64.bat or build_all_ia64.bat) batch file.  This will check out the libusb source code, compile it and the Public Domain Kit software examples.
5)  If you just want to compile a single program, from the above command-line, run the appropriate batch file with the 64-bit build string (amd64 or ia64) next to it:

make_tstfind amd64

IMPORTANT NOTE:
* Although ia64 (Itanium) driver files are located in this kit build, they have not been tested.

The libusb sourceforge project can be found here (support for
Linux, MacOSX, FreeBSD, etc):
  http://libusb.sourceforge.net

The Win32 (which now includes 64-bit support) port of libusb can be found here:
  http://libusb-win32.sourceforge.net
