Programming a usb communication

This is a discussion on Programming a usb communication within the C++ Programming forums, part of the General Programming Boards category; Hi, I need to communicate with a board using USB protocols and I was wondering if anyone has done this ...

  1. #1
    Registered User
    Join Date
    Dec 2004
    Posts
    205

    Programming a usb communication

    Hi,
    I need to communicate with a board using USB protocols and I was wondering if anyone has done this before and could point me in the right direction as to how I can get started with that. I looked online but could not find anything regarding making a program, using available drivers or otherwise. I will be using Windows 2000 with VS .NET 2003. Thanks a lot,
    Amish

  2. #2
    I am the worst best coder Quantrizi's Avatar
    Join Date
    Mar 2002
    Posts
    644

  3. #3
    Registered User
    Join Date
    Dec 2004
    Posts
    205
    I have read the msdn help files and searched on google but they don't tell you how to actually get started with a program. That's what i need to know. Thanks for the info though
    Amish

  4. #4
    I am the worst best coder Quantrizi's Avatar
    Join Date
    Mar 2002
    Posts
    644
    Quote Originally Posted by axr0284
    I have read the msdn help files and searched on google but they don't tell you how to actually get started with a program. That's what i need to know. Thanks for the info though
    Amish
    Well, to get started, just try to connect to a USB port. If you connect, send/recieve data, then close the port.

    ** What exactly are you trying to do that you can't find info on? MSDN has all the info needed to send/recieve, open, and close a connection to a port [maybe not written code you can copy/past, but it's not that hard to figure it out] **

  5. #5
    Registered User
    Join Date
    Dec 2004
    Posts
    205
    What I want to do is write a small program that blinks the light on a usb keyboard and maybe receives characters also. I looked at the msdn website but was stumped when I reached this page:
    http://msdn.microsoft.com/library/de...k_openpipe.asp
    Where do I get USB_HANDLE hDevice from. It does not say anything about that. Thanks for you help
    Amish

  6. #6
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    Pick up the device driver sdk (i'd post a link but i'm not at home). Also, you know there are easier ways of just making the led blink right? You are trying to use low level calls for something windows has included in its higher level API. Are you writing a DOS program?

  7. #7
    Registered User
    Join Date
    Dec 2004
    Posts
    205
    Well this is just a start. I will eventually want to do some more advanced communication with other usb devices. That's why I want to start with the low level stuff. My application will be a win32 application. Can you elaborate on the Device Driver SDK. What is it exactly?
    Amish

  8. #8
    Registered User Kybo_Ren's Avatar
    Join Date
    Sep 2004
    Posts
    136

  9. #9
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    This USB library list may help you.

  10. #10
    Registered User
    Join Date
    Dec 2004
    Posts
    205
    Thks i'll look into those links today
    Amish

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. usb communication
    By sgh in forum Networking/Device Communication
    Replies: 6
    Last Post: 01-15-2009, 10:43 AM
  2. USB communication
    By programer345 in forum Networking/Device Communication
    Replies: 0
    Last Post: 06-27-2008, 02:51 PM
  3. Xbee module USB board communication
    By ghost1 in forum C Programming
    Replies: 1
    Last Post: 11-27-2006, 05:19 PM
  4. USB Communication
    By Queatrix in forum Windows Programming
    Replies: 4
    Last Post: 08-07-2006, 11:22 AM
  5. Printers On USB
    By (TNT) in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 03-10-2002, 11:48 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21