Controlling a usb device if I dont have the source code?

This is a discussion on Controlling a usb device if I dont have the source code? within the Tech Board forums, part of the Community Boards category; hallo, I found usb controlled missile launcher online which looks kind off fun to play with. But it would be ...

  1. #1
    Registered User
    Join Date
    Oct 2006
    Location
    UK/Norway
    Posts
    485

    Controlling a usb device if I dont have the source code?

    hallo,

    I found usb controlled missile launcher online which looks kind off fun to play with. But it would be a lot more fun if I could control it myself from my own program.

    Would it be possible to write my own programs for it (maybe by sending commands to the default program?) without having the source code for it?

  2. #2
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,185
    If they wrote it, you can write it too. You just have to know how to talk to something hanging off a USB port (looks like a device driver from here, so this is the hard part) and what the device expects to be told (if you don't have any docs about this, then this is also the hard part) and figuring out what the device is trying to tell you (this is also the hard part).

    Depending on what their software looks like (I don't know), it might be easily macro-izable.

  3. #3
    Registered User
    Join Date
    Oct 2006
    Location
    UK/Norway
    Posts
    485
    If they wrote it, you can write it too.
    There is probably a gap between their level of experience and mine. And im fairly sure the gap is not in my favor :P

    You just have to know how to talk to something hanging off a USB port (looks like a device driver from here, so this is the hard part) and what the device expects to be told (if you don't have any docs about this, then this is also the hard part) and figuring out what the device is trying to tell you (this is also the hard part).
    I dont know how to do any of this and im not sure this would be a good/easy exorcise for me to learn it.

    Depending on what their software looks like (I don't know), it might be easily macro-izable.
    What does that mean?

    Regards,

  4. #4
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,535
    http://www.lvr.com/usb.htm
    Scroll down to "Protocol Analyzers"
    They're for USB like ethereal is for networking.

    Once you know the protocol, you can set about making your own.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. 'Type' Error on Build of Officially Released Source Code
    By Jedi_Mediator in forum C++ Programming
    Replies: 5
    Last Post: 07-07-2008, 05:28 PM
  2. How to make a program that prints it's own source code???
    By chottachatri in forum C++ Programming
    Replies: 38
    Last Post: 03-28-2008, 07:06 PM
  3. Replies: 4
    Last Post: 01-18-2008, 06:05 PM
  4. Lines from Unix's source code have been copied into the heart of Linux????
    By zahid in forum A Brief History of Cprogramming.com
    Replies: 13
    Last Post: 05-19-2003, 03:50 PM
  5. C source code for int25 or code help
    By Unregistered in forum C Programming
    Replies: 0
    Last Post: 09-26-2001, 02:04 AM

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