Winusb problem on Visual Studio 2015 RRS feed

  • Question

  • Hi

    I want to communicate with the Telit 3G modem that support CDC USB standard.

    1.I search about Winusb and find this page:

    I confused because the description does not match with Visual Studio 2015 .


    2.I search in web to resolve this problem I see this page:


    3.after correction my project when I compile that I see this error:

    "Error    TRK0002    Failed to execute command: ""C:\Program Files (x86)\Windows Kits\10\bin\x86\inf2cat.exe" /os:10_x64 /driver:C:\Newfolder\USBapp\x64\Debug\USBpac\". The operation identifier is not valid.    USBpac    C:\Newfolder\USBpac\TRACKER    1"


    4.I wrote my problem under the page that I mentioned in top but unfortunately Sara do not answer to me.


    5.I solved the problem with run inf2cat from Command prompt and make Cat file as you can see:

    "C:\Program Files (x86)\Windows Kits\10\bin\x86>inf2cat /os:10_x86 /driver:c:\newfolder\usbapp\x64\debug\usbpac
    Signability test complete.

    Catalog generation complete."


    6.I find the hardware ID   %DeviceName% =USB_Install,USB\VID_1BC7&PID_0021 and the GUID then put the Inf file .

    and make a Cat file .

    Inline image

    8.My problem to detect Hardware commonly continue .This function (SetupDiEnumDeviceInterfaces) returns NULL.

    Could you please help me?


    Best regards,



    • Edited by Mehran_hqz Friday, May 12, 2017 9:01 PM
    • Moved by Baron Bi Monday, June 5, 2017 8:06 AM more related to driver issues
    Friday, May 12, 2017 9:00 PM

All replies

  • Is the modem visible in Device Manager with your driver installed?

    What GUID do you use? What is the InterfaceClassGuid parameter when you call SetupDiEnumDeviceInterfaces?

    -- pa

    Saturday, May 13, 2017 7:50 PM
  • Hi

    Modem is visible as you can see:

    Inline image

    Saturday, May 13, 2017 7:56 PM
  • Sorry... the picture does not show up for me. Try again, in plain text?

    -- pa

    Saturday, May 13, 2017 8:09 PM
  • first I use the driver from Telit  and find the GUID from Device Manager.But after that some body say we must use Winusb driver for device I uninstall them and allow windows select driver 

    Driver Management concluded the process to install driver usbser.inf_amd64_5cc59e887dec04f4\usbser.inf for Device Instance ID USB\VID_1BC7&PID_0021\357164045031138 with the following status: 0x0

    Saturday, May 13, 2017 9:42 PM
  • So, in Device Manager, is it as a "serial port" with class GUID {4d36e978-e325-11ce-bfc1-08002be10318} or WinUSB device?

    -- pa

    Sunday, May 14, 2017 9:07 AM
  • In Device manager it is a "Serial port" with class GUID {36FC9E60-C465-11CF-8056-444553540000}. This GUID show my Hub GUID I find that you mentioned in my modem INF file. i do not understand WinUSD device? another problem that I said :I have problem to compile my project. and another question :If we have a INF file why we add an INF file to the project? I am confusing!?
    Sunday, May 14, 2017 3:04 PM
  • > In Device manager it is a "Serial port" with class GUID {36FC9E60-C465-11CF-8056-444553540000}. 

    Well, you have a WinUSB driver installed on this device. It will not function as a modem or com port. If you still are confused, please ask in the drivers forum.

    -- pa

    • Proposed as answer by Baron Bi Thursday, May 25, 2017 5:57 AM
    Sunday, May 14, 2017 4:52 PM