|
From: Alan S. <st...@ro...> - 2016-01-16 16:50:01
|
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 |