Ask a Question related to Mac Programming, Design and Development.
-
Laura #1
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
-
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... -
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... -
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... -
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... -
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 ,... -
David Phillip Oster #2
Re: USB programming?
In article <bkut6t$iio$2@hercules.btinternet.com>,
Laura <nospam_lbassett@bigfoot.com> wrote:
Go to Apple's developer web site, download the USB Driver Development> 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?
Kit (DDK), and start reading!
David Phillip Oster Guest
-
Michael Milvich #3
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 OSXMichael Milvich Guest
-
Peter Ammon #4
Re: USB programming?
Laura wrote:
A lot of people are going to suggest that you write a driver. However,> 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
>
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
-
Laura #5
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



Reply With Quote

