This has been asked a few times, but I haven't found any actual resolution to how to accomplish this. I will admit, I am a Linux programmer, not MACOS, so this is a very different world, but this shouldn't be so difficult.
I am attempting to send a Vendor command to a USB stick. It is a 16 byte CDB command that I want to send, with 32 bytes of payload, and read back 4096 bytes of payload.
I find I can iterate to the drive using the Vendor ID and Product ID, open the DeviceInterface, but I cannot open the InterfaceInterface. It shows it is already open. I assume this is the block driver holding the drive.
I find also there is an API IOConnectCallStructMethod() which seems to be something interesting, but the API is documented so sparcely on apple.com.
Any hints, nudges, help, examples, are greatly appreciated.
/dan