how to create driver for my USB device

Pramod Ranade 1 Reputation point
2021-10-30T06:30:07.037+00:00

Hi,

Our product has USB interface. It emulates UART over USB. It uses our own USB VID and PID. We also wrote a Windows desktop GUI application to communicate with our product over USB. We connected our product to a PC with Windows 10 Pro. The device was automatically detected and our GUI software could communicate with it. No driver was needed.
Unfortunately, the same doesn't hold true for Windows 8.1, Windows 8 and Windows 7. It complains about "unknown device" when our product is connected to a PC with those older Windows. Hence we thought of creating a driver for our product, so that it can be used with Windows 8.1, Windows 8 and Windows 7. How do we create such a driver? My understanding based on Internet search is:

  1. Create a .inf file - which is a text file specifying some information, such as VID and PID. Unfortunately, I didn't find a proper template for the .inf file. I referred to some inf files available on the Internet and created a similar one for our product.
  2. Then I installed Windows SDK and WDK. That WDK includes a utility called inf2cat. It supposedly creates a .cat file from a .inf file.
    Questions: is the above understanding correct? It isn't working anyway. I tried running inf2cat as per instructions on this page. Unfortunately, I always get the error "Operating systems parameter invalid". I tried all OS codes (such as "10_19H1_X86") but none worked. What am I missing?

Regards,
Pramod

Windows 10 Network
Windows 10 Network
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Network: A group of devices that communicate either wirelessly or via a physical connection.
2,272 questions
Windows Hardware Performance
Windows Hardware Performance
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.Hardware Performance: Delivering / providing hardware or hardware systems or adjusting / adapting hardware or hardware systems.
1,543 questions
0 comments No comments
{count} votes