How to make a driver, connecting to a device through USB?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Hanna1980
    New Member
    • Mar 2008
    • 1

    How to make a driver, connecting to a device through USB?

    I have been sitting 3 days and reading hundreds of websites, forums and articles and still not sure how I can do this. I am very new and this is a huuuuge task for me.

    I have a small electronic device which I can connect to my pc with an USB cable. I need to write a driver which
    1- connect to this device
    2- read the power and current in this device (the info is in the device) and return the information to my PC.

    Where should I start??? By the way, I have Windows XP and I know only C#.

    I have seen this component "serialPort " in C#. I also have been reading about Windows DDK but I am not sure. How do I do this? Where should I start?

    When I plug in this device, how can my application go inside and check???
  • balabaster
    Recognized Expert Contributor
    • Mar 2007
    • 798

    #2
    Ooh, nasty. This might be a tough project for someone that's new to .NET. I've gotta say, I don't envy your task.

    First up, I would consider contacting the manufacturer of the device to get some details about how it connects to the system. USB is only a standard hardware mechanism - that doesn't mean that it connects to Windows using some standard mechanism - you may want to confirm that. If you're lucky, they may even have an SDK to do this which will simplify your task greatly.

    If that's a no go, then we have to look into hooking into the DLLs for the driver. There may or may not be any documentation for these DLLs so it might not be easy.

    What type of device is it? Do you have a make and model?

    Comment

    Working...