Difference between revisions of "WinUSB Notes"

From HPSDRwiki
Jump to: navigation, search
(WinUSB Notes)
(WinUSB Notes)
Line 3: Line 3:
  
 
This page contains information on using WinUSB with HPSDR hardware.
 
This page contains information on using WinUSB with HPSDR hardware.
 +
 +
The first thing that you will need is the WinUSB driver package from Alberto, I2PHD, from www.weaksignals.com.  [http://www.weaksignals.com Alberto I2PHD's WinRad site]  Go to his website and download his WinRad package, which will give you his WinUSB driver installer.  Using this installer should let you install WinUSB as the driver for your hardware on Windows XP, Vista and Windows 7, whether you have a 32 bit OS, or AMD 64 bit OS or Intel IA64 64 bit OS versions of windows installed.
 +
 +
You will also be able to use WinRad, until Bill KD5TFD ports PowerSDR to WinUSB.
 +
 +
Alberto has some very good notes on installing the driver, or replacing libusb0 with WinUSB, as part of his package.  I suggest that you read his notes and follow his directions.  I think that you have to install WinUSB twice for Ozy, once when Ozy contains no programming, and once when Ozy has has its firware downloaded.
 +
 +
Other interesting projects and info on WinUSB include:
 +
 +
1) The SourceForge (www.sourceforge.net) project called LibUsbDotNet.  You can download both source and binary.  This is a project that allows .Net code to use either libusb0 or WinUSB, without the application program having to know which driver is installed for the hardware.  This is not yet being used by KISS or HPSDR, but does hold some promise on Windows for this option.  Using LibUsbDotNet would allow a single version of KISS, for example, to exist that would work with either libusb0 or WinUSB.
 +
 +
2) the website http://www.lvr.com/winusb.htm, which contains information on WinUSB, USB in general, sample code, much other information and sample code on things like Serial Ports, Parallel Ports, ethernet, and more.  Its maintainer, Jan Axelson, has also written a number of books on these topics.  I found his winusb_cs to be very helpful to study in porting KISS and its support programs from libusb0 to WinUSB. [http://www.lvr.com/winusb.htm Jan Axelson's website]
 +
 +
What has been ported from libusb0 to WinUSB?
 +
1) Phil Harman VK6APH's project KISS Console
 +
2) supporting programs like loadfw.exe, loadfpga.exe and writei2c.exe
 +
3) there is also a Visual Studio 2008 project called WinUSBAPI that is Alberto's Borland C++ Builder code ported to VS2008 C++.  It doesn't yet have all the methods that the C# project WinUSBManaged that I wrote does.  Hopefully, I'll find the time to back-port those methods from WinUSBManaged to WinUSBApi.
 +
 +
Where can I find this new code that uses WinUSB?
 +
Try this svn path: svn://206.216.146.154/svn/repos_hpsdr_kiss/branches/K9TRV, K9TRV's KISS Branch

Revision as of 15:17, 20 December 2009

WinUSB Notes

This page contains information on using WinUSB with HPSDR hardware.

The first thing that you will need is the WinUSB driver package from Alberto, I2PHD, from www.weaksignals.com. Alberto I2PHD's WinRad site Go to his website and download his WinRad package, which will give you his WinUSB driver installer. Using this installer should let you install WinUSB as the driver for your hardware on Windows XP, Vista and Windows 7, whether you have a 32 bit OS, or AMD 64 bit OS or Intel IA64 64 bit OS versions of windows installed.

You will also be able to use WinRad, until Bill KD5TFD ports PowerSDR to WinUSB.

Alberto has some very good notes on installing the driver, or replacing libusb0 with WinUSB, as part of his package. I suggest that you read his notes and follow his directions. I think that you have to install WinUSB twice for Ozy, once when Ozy contains no programming, and once when Ozy has has its firware downloaded.

Other interesting projects and info on WinUSB include:

1) The SourceForge (www.sourceforge.net) project called LibUsbDotNet. You can download both source and binary. This is a project that allows .Net code to use either libusb0 or WinUSB, without the application program having to know which driver is installed for the hardware. This is not yet being used by KISS or HPSDR, but does hold some promise on Windows for this option. Using LibUsbDotNet would allow a single version of KISS, for example, to exist that would work with either libusb0 or WinUSB.

2) the website http://www.lvr.com/winusb.htm, which contains information on WinUSB, USB in general, sample code, much other information and sample code on things like Serial Ports, Parallel Ports, ethernet, and more. Its maintainer, Jan Axelson, has also written a number of books on these topics. I found his winusb_cs to be very helpful to study in porting KISS and its support programs from libusb0 to WinUSB. Jan Axelson's website

What has been ported from libusb0 to WinUSB? 1) Phil Harman VK6APH's project KISS Console 2) supporting programs like loadfw.exe, loadfpga.exe and writei2c.exe 3) there is also a Visual Studio 2008 project called WinUSBAPI that is Alberto's Borland C++ Builder code ported to VS2008 C++. It doesn't yet have all the methods that the C# project WinUSBManaged that I wrote does. Hopefully, I'll find the time to back-port those methods from WinUSBManaged to WinUSBApi.

Where can I find this new code that uses WinUSB? Try this svn path: svn://206.216.146.154/svn/repos_hpsdr_kiss/branches/K9TRV, K9TRV's KISS Branch