|
From: Tao W. <twa...@gm...> - 2016-01-17 08:34:52
|
Hi, Alan Stern, Thanks for your reply. I checked sg3_utils project, OS X is not supported, which is the main reason why I'm looking for another cross-platform solution. If the libusb is not the way to go, I don't know what should I do next, other than writing a SCSI Pass-through kernel driver for OS X, which might be too much for me. Anyway, thanks for your help, I will keep looking. Best Regards, Tao Wang On 17 January 2016 at 03:49, Alan Stern <st...@ro...> wrote: > On Sat, 16 Jan 2016, Tao Wang wrote: > > > Hi, everyone, > > > > I'm thinking about a cross platform solution to communicate with Pentax > > camera, which using USB (Mass Storage) SCSI Pass-Through Interface, with > > 'F0' vendor specific SCSI commands. > > SCSI Pass-Through has nothing to do with USB. You can use it with any > SCSI device that supports it, USB or not. > > > The current solution is via '/sys/class/scsi_generic' with `ioctl(fd, > > SG_IO, xxx)`, but it's not a portable solution. > > Check out the sg3_utils package. It has programs for both Linux and > Windows, maybe other operating systems as well. > > > I didn't find any example of how to use SPTI via libusb. Can anyone give > me > > some help about how to do it? Thanks. > > There is no good way to do it using libusb. Libusb simply isn't the > appropriate tool for this purpose. > > Alan Stern > > |