Ports
May 21, 2013, 01:19:59 pm *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: SMF - Just Installed!
 
   Home   Help Search Login Register  
Welcome to the PORTS Forum. Please post your questions, answers, and comments relating to USB and other hardware interfaces in the appropriate forums below. - Jan
Pages: [1]
  Print  
Author Topic: Driver problem  (Read 655 times)
lcpoon
Member
***
Posts: 40


« on: April 11, 2012, 08: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}"
Logged
Jan Axelson
Administrator
Frequent Contributor
*****
Posts: 1627


WWW
« Reply #1 on: April 11, 2012, 08: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
Logged
lcpoon
Member
***
Posts: 40


« Reply #2 on: April 16, 2012, 03: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.
Logged
Jan Axelson
Administrator
Frequent Contributor
*****
Posts: 1627


WWW
« Reply #3 on: April 16, 2012, 09:48:47 pm »

A common problem...

Jan
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!