Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: need desperate help!!



At 6:40 PM -0800 1/6/05, She Jian, Chia wrote:

how
do i know the values of request.wValue,etc.

That's part of the problem you're trying to solve. These are the values you have to know, they're what make your driver unique. In other words, that's your problem.


Ideally you'd have documentation which told you this. As you don't you're trying reverse engineering. If you had a bus trace, it'd probably display the data with each field labelled clearly, but you don't have an analyser.

If you got a transaction sniffer for a Windows box which is working, you'd probably get some output like:

Control: 01 02 03 04 05 06 07 08

Hopefully this is telling you the bytes in the control packet. As Dave suggested you can look this up in chapter 9.

01 is the bmRequestType
02 is bRequest
03 and 04 are wValue, that's actually 0x0403
05 and 06 are wIndex, 0x0605
07 and 08 are wLen, the buffer length 0x0807
--
Barry Twycross
email@hidden
                     ---
         USB, it's not a Dyslexic BUS.        (Thanks to TC.)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Usb mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/usb/email@hidden

This email sent to email@hidden
References: 
 >Re: need desperate help!! (From: "She Jian, Chia" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.