OSR USB-FX2 Issue

I just received my USB-FX2 learning kit i bought some time ago. I tried to test it with the WDF samples that comes with the latest WDK and with the sample driver made by OSR Online. The problem is that when i connect it and manually select the .inf file when Windows asks me if i have a disk, an error occurs.

Here’s what i do in detail:
Right click on Computer -> Manager -> Device management
Right click on USB OSR-FX2 LK -> Update driver software…
Then: Browse my computer for driver software, Search for driver software in this location: <location of the .inf file> (search for subfolders is enabled).
When i press Next, i got the error that says: “Windows encountered a problem installing the driver software for your device”. The only error description i have is “The system cannot find the file specified”.
Last note: i’m using Windows 7 Ultimate x86 RTM

Assuming the hardware is fine, where am i going wrong?

Thanks for your help!

Looking at the .INF file, where does it expect to find the .SYS file and where are you putting it?

The .SYS file is usually expected in a sub-directory, by architecture (relative to the location of the INF file) – but it depends on the .INF… I’m not sure what we did in the .INF for the OSR-provided sample driver (I haven’t touched that example in years, in fact… it’s probably due for an update).

Peter
OSR

I don’t really know how to fix this issue since, as you may already have understood, i’m still a newbie (that’s why i bought the learning kit :slight_smile:
I also bought both Programming the Windows Driver Model (2nd edition) and Developing drivers with the Windows Driver Foundation. Do you guys recommend other books? I would start with WDM first.

Thanks in advance to anyone who will help me out

This is the inf file: http://pastebin.com/f17fa3c7e
This is the output of tree for the “install” folder:

| osrbulk.exe
| usbfx2lk.inf
| USBFXTEST.exe
|
±–chk
| ±–amd64
| | usbfx2lk.pdb
| | usbfx2lk.sys
| |
| -–i386
| usbfx2lk.pdb
| usbfx2lk.sys
|
-–fre
±–amd64
| usbfx2lk.pdb
| usbfx2lk.sys
|
-–i386
usbfx2lk.pdb
usbfx2lk.sys

If your goal is to get something done, I would NOT recommend that you start with WDM first. My experience, after having taught lots of people how to write drivers, is that if you don’t ALREADY know WDM and you want to learn WDF, you’re better off starting by JUST learning WDF.

No, it’s the output of the tree from the BUILD.

You’re using TWO SYSTEMS, right? One is your development system (where you’re building your driver) and the other is your test system (where you’ll be installing your driver for testing).

Sooooo…

Copy the files to the test system on which you wish to install them – which you really want to be running 32-bit Windows (any version, just not 64-bit). For example, copy the .INF file to:

C:\FX2\usbfx2lk.inf

on your test system.

THEN, copy the checked build of the x86 executable from “chk\i386\usbfx2lk.sys” to your test system in the directory:

c:\FX2\i386\usbfx2lk.sys

Then, on your test system, after plugging-in your hardware, select the C:\FX2\ directory to install your driver.

**** NOTE!!

When you first plug-in the OSR USB-FX2, Windows MIGHT automatically try to find a driver for the device (depending on the settings on your system). As of Windows 7, we noticed that if Windows DOES attempt to auto-install a driver for the USB FX-2 device, it will go to Windows Update and find and install the Diamond XtremeTV PVR600 USB WDM Encoder drivet, which is clearly not correct (This is Diamond’s problem, actually… they’re using an invalid VID and PID. How this was approved by WHQL and accepted by WU I’ll never know, but that’s a different topic).

If the Diamond driver gets installed automatically, t you’ll need to replace the Diamond driver with our USB FX2 driver. To do this, go into Device Manager, select Update Driver Software, select Browse my computer. Select Let me pick from a list of device drivers on my computer, selected Have Disk and select the directory where you have the OSR USB files for installation, The USB driver should show up in the display and you can select that for installation

OK??

Peter
OSR

I didn’t build the source myself (yet), i’m using the zip file you provided (it contains both source and binaries under the install directory). Yes i am using 2 system (both Windows 7) to test this. I couldn’t use VMware Workstation (i don’t really know why, it just gives me an error when i try to connect the learning kit to the vm)

Anyway, that worked, thanks! I will have to find documentation about inf files ( didn’t check the books yet)