Ask a Question related to Mac Programming, Design and Development.

  1. #1

    Default USB programming?

    Hi,

    I know absolutely nothing about dealing with hardware input, but want to
    get a foot in the door of dealing with incoming USB data (ultimately for
    monitoring the input from a hardware measuring instrument).

    As a most basic example how would I monitor the data coming from the
    Apple usb mouse for instance?
    Is there a utility that can monitor data arrving at the ports in realtime?

    Presumably, usb data arriving in the computer has ID, header, and value
    bytes so that the device software recognises the data as theirs?

    As I say, I know nothing about USB input, but want to get a handle on
    how to code for it. Any basic, basic, reference sources would also be
    appreciated.

    Are there CW libraries for handling incoming data?

    Thanks

    Laura


    P.S. For OSX

    Laura Guest

  2. Similar Questions and Discussions

    1. VB6 programming
      I'm new in Adobe SDK programming. I've a question: is it possibile to use SDK api directly in VB6 code.? If yes, how? I've downloaded Acrobat 9 SDK...
    2. freelance web programming, web site design,c programming, java programming, VERY Low Cost web design and more
      Find expert freelance programmers and designers at the prices you want to pay. Post your projects and programmers will place bids, you choose the...
    3. Need help with programming
      My name is Sofia and I have for many years been running a personals site, together with my partner, on a non-profit basis. The site is currently not...
    4. Programming ASP.net
      Whats the best way to make a site with ASP.net and Visual Studio 2003...The visual studio does not seem like the idea environment to make an ASP...
    5. RPC Programming
      Hi I have written RPC client and server codes for unix platforms . now i want to make it cross platform with windows Server and unix client ,...
  3. #2

    Default Re: USB programming?

    In article <bkut6t$iio$2@hercules.btinternet.com>,
    Laura <nospam_lbassett@bigfoot.com> wrote:
    > I know absolutely nothing about dealing with hardware input, but want to
    > get a foot in the door of dealing with incoming USB data (ultimately for
    > monitoring the input from a hardware measuring instrument).
    >
    > As a most basic example how would I monitor the data coming from the
    > Apple usb mouse for instance?
    > Is there a utility that can monitor data arrving at the ports in realtime?
    >
    > Presumably, usb data arriving in the computer has ID, header, and value
    > bytes so that the device software recognises the data as theirs?
    >
    > As I say, I know nothing about USB input, but want to get a handle on
    > how to code for it. Any basic, basic, reference sources would also be
    > appreciated.
    >
    > Are there CW libraries for handling incoming data?
    Go to Apple's developer web site, download the USB Driver Development
    Kit (DDK), and start reading!
    David Phillip Oster Guest

  4. #3

    Default Re: USB programming?

    Hello Laura,

    You should take a look at
    [url]http://developer.apple.com/documentation/DeviceDrivers/Conceptual/USBBook/index.html[/url]

    It will walk you through finding a USB device and downloading data to
    it. It should be easy enough to modify it to read from the device
    instead.

    Michael

    Laura <nospam_lbassett@bigfoot.com> wrote in message news:<bkut6t$iio$2@hercules.btinternet.com>...
    > Hi,
    >
    > I know absolutely nothing about dealing with hardware input, but want to
    > get a foot in the door of dealing with incoming USB data (ultimately for
    > monitoring the input from a hardware measuring instrument).
    >
    > As a most basic example how would I monitor the data coming from the
    > Apple usb mouse for instance?
    > Is there a utility that can monitor data arrving at the ports in realtime?
    >
    > Presumably, usb data arriving in the computer has ID, header, and value
    > bytes so that the device software recognises the data as theirs?
    >
    > As I say, I know nothing about USB input, but want to get a handle on
    > how to code for it. Any basic, basic, reference sources would also be
    > appreciated.
    >
    > Are there CW libraries for handling incoming data?
    >
    > Thanks
    >
    > Laura
    >
    >
    > P.S. For OSX
    Michael Milvich Guest

  5. #4

    Default Re: USB programming?

    Laura wrote:
    > Hi,
    >
    > I know absolutely nothing about dealing with hardware input, but want to
    > get a foot in the door of dealing with incoming USB data (ultimately for
    > monitoring the input from a hardware measuring instrument).
    >
    > As a most basic example how would I monitor the data coming from the
    > Apple usb mouse for instance?
    > Is there a utility that can monitor data arrving at the ports in realtime?
    >
    > Presumably, usb data arriving in the computer has ID, header, and value
    > bytes so that the device software recognises the data as theirs?
    >
    > As I say, I know nothing about USB input, but want to get a handle on
    > how to code for it. Any basic, basic, reference sources would also be
    > appreciated.
    >
    > Are there CW libraries for handling incoming data?
    >
    > Thanks
    >
    > Laura
    >
    >
    > P.S. For OSX
    >
    A lot of people are going to suggest that you write a driver. However,
    there is a potentially easier alternative, which is talking to the
    hardware from outside the kernel. The advantage of this is that you
    won't need to worry about wiring memory, causing a kernel panic, loading
    KEXTs, using kernel safe calls, etc.

    The disadvantage is that the result will be an application, not a
    driver, so the user will only be able to interact with the device
    through your application. So a mouse isn't a good example.

    See
    <http://developer.apple.com/documentation/DeviceDrivers/Conceptual/USBBook/USBDeviceInterfaces/index.html>
    for a discussion of how to go about this.

    -Peter

    Peter Ammon Guest

  6. #5

    Default Re: USB programming?

    Thanks for the help and the link.

    Laura


    Peter Ammon wrote:
    > Laura wrote:
    >
    >> Hi,
    >>
    >> I know absolutely nothing about dealing with hardware input, but want
    >> to get a foot in the door of dealing with incoming USB data
    >> (ultimately for monitoring the input from a hardware measuring
    >> instrument).
    >>
    >> As a most basic example how would I monitor the data coming from the
    >> Apple usb mouse for instance?
    >> Is there a utility that can monitor data arrving at the ports in
    >> realtime?
    >>
    >> Presumably, usb data arriving in the computer has ID, header, and
    >> value bytes so that the device software recognises the data as theirs?
    >>
    >> As I say, I know nothing about USB input, but want to get a handle on
    >> how to code for it. Any basic, basic, reference sources would also be
    >> appreciated.
    >>
    >> Are there CW libraries for handling incoming data?
    >>
    >> Thanks
    >>
    >> Laura
    >>
    >>
    >> P.S. For OSX
    >>
    >
    > A lot of people are going to suggest that you write a driver. However,
    > there is a potentially easier alternative, which is talking to the
    > hardware from outside the kernel. The advantage of this is that you
    > won't need to worry about wiring memory, causing a kernel panic, loading
    > KEXTs, using kernel safe calls, etc.
    >
    > The disadvantage is that the result will be an application, not a
    > driver, so the user will only be able to interact with the device
    > through your application. So a mouse isn't a good example.
    >
    > See
    > <http://developer.apple.com/documentation/DeviceDrivers/Conceptual/USBBook/USBDeviceInterfaces/index.html>
    > for a discussion of how to go about this.
    >
    > -Peter
    >
    Laura Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139