Author Topic: Driver problem  (Read 13869 times)

lcpoon

  • Frequent Contributor
  • ****
  • Posts: 58
Driver problem
« on: April 11, 2012, 09:34:39 am »
Hi,

I am using the provided winusbdemo.inf in the winusb_vb folder and configured my uController to match the PID and VID. The driver works fine and same to the VB program too.

Next, I modified the PID, VID and DeviceInterfaceGUIDs information in the winusbdemo.inf. I too configured my uController to match the PID and VID. Now, the driver works fine but the program failed. Anything that I missed out?

Listed below are the modifications to the .inf file. Other information remains untouched.
Original winusbdemo.inf
[MyDevice_WinUSB.NTx86]
%USB\MyDevice.DeviceDesc% =USB_Install, USB\VID_0925&PID_1456

[MyDevice_WinUSB.NTamd64]
%USB\MyDevice.DeviceDesc% =USB_Install, USB\VID_0925&PID_1456

[Dev_AddReg]
HKR,,DeviceInterfaceGUIDs,0x10000,"{42CA71EC-CE1C-44c2-82DE-87D8D8FF6C1E}"

Modified winusbdemo.inf
[MyDevice_WinUSB.NTx86]
%USB\MyDevice.DeviceDesc% =USB_Install, USB\VID_0957&PID_A118

[MyDevice_WinUSB.NTamd64]
%USB\MyDevice.DeviceDesc% =USB_Install, USB\VID_0957&PID_A118

[Dev_AddReg]
HKR,,DeviceInterfaceGUIDs,0x10000,"{400B501E-5A37-472D-B4A7-998BF4E9A7CD}"

Listed below is the modification to VB codes.
Original
Private Const WINUSB_DEMO_GUID_STRING As String = "{42CA71EC-CE1C-44c2-82DE-87D8D8FF6C1E}"

Modified
Private Const WINUSB_DEMO_GUID_STRING As String = "{400B501E-5A37-472D-B4A7-998BF4E9A7CD}"

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: Driver problem
« Reply #1 on: April 11, 2012, 09:50:30 am »
What do you mean by "the program failed"? What line of code caused an error and what was the error message?

Jan

lcpoon

  • Frequent Contributor
  • ****
  • Posts: 58
Re: Driver problem
« Reply #2 on: April 16, 2012, 04:15:04 am »
Found out that the problem was due to Windows registry where it has the PID and VID defined for HID operation before.

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: Driver problem
« Reply #3 on: April 16, 2012, 10:48:47 pm »
A common problem...

Jan