Getting back to this a bit late... I don't know if specialData needs to be placed in sendData or sendCommand. I have tried various data structures, but none of them work. Looking over your code, I see two things that concern me: First, I believe command type 2 is for command ack's, so I think that should be 1 instead. I don't think you're accounting for endian-ness. The ISO-15740 spec is written using big endian notation (sensible), but the actual endian format is transport defined (not sensible). In the case of USB, I believe that means everything is little endian. Lastly, we have an old sample project named PTPPassThrough in the documentation archive. I'm not sure how hard it would be to get it working*, but it does provide an example of how to build commands. *Shockingly, the only build error I got was that Xcode couldn't find the 10.6 SDK (yes, SnowLeopard!), but I don't have the hardware at hand to see if it actually works. __ Kevin Elliott DTS Engineer, CoreOS/Hardware
Topic:
App & System Services
SubTopic:
Hardware