usb communications to uC

Discussion in 'Windows Vista Drivers' started by Eric, Mar 8, 2005.

  1. Eric

    Eric Guest

    I need to be able to send & receive "text data" to a remote micro-controller
    connected to my windows XP host via USB.
    Do i need a driver to do that or can i do it on an application level.
    If on the application level what kind of api is there to use? I'm
    thinking i could use CreateFile/WriteFile/ReadFile api's but what would
    I use for a device name?
    I dont want to spend a lot of time in a development process and learning
    curve because while important to be able to talk to this thing, its only a
    small part of the whole picture and as always I'm very time constrained.

    Eric, Mar 8, 2005
    1. Advertisements

  2. Eric

    Marc Reinig Guest

    You can make your device a HID device and use Windows' built in class
    support. Depending on the data rate you need: low speed USB devices are
    ~9600 baud, high speed devices can handle ~250Kbaud.

    Marc Reinig
    System Solutions
    Marc Reinig, Mar 8, 2005
    1. Advertisements

  3. Eric

    Eric Guest

    So if i open it with CreateFile I can use WriteFile and ReadFile to talk to
    it? What do i use for a device name? Where can i find some sample C code?
    Eric, Mar 8, 2005
  4. Eric

    Tim Roberts Guest

    It depends on what class the device advertises and what kinds of pipes it
    uses. USB is more structured than RS-232; you can't just start talking to
    a USB device. You have to know quite a bit about the device first.
    There has to BE a driver somewhere. In some cases, it is a driver supplied
    by the system, and in some cases you have to provide it.

    There is an open source package called libusb-win32 that provides a simple
    driver to allow access to USB endpoints from user mode, but you'll still
    need to know some details.
    Perhaps you should hire this out. Many folks on this newsgroup do contract
    driver work.
    Tim Roberts, Mar 8, 2005
  5. Eric

    Eric Guest

    I'll see what i can find out, at this time i dont even have the device, I'm
    only being told "what it will be"
    I'm a little familiar with that same package for linux - i didnt know it was
    available for windows.
    I cant, I'm just a peon in a big company.
    Eric, Mar 8, 2005
  6. Eric

    Marc Reinig Guest

    Probably the best bet is, this book and these websites:

    "USB Complete" Jan Axelson, Lakeview Research, ,


    Marc Reinig
    UCO/Lick Observatory
    Laboratory for Adaptive Optics
    Marc Reinig, Mar 8, 2005
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.