|
From: Nathan H. <hj...@me...> - 2016-01-17 14:55:05
|
Take a look at libscg. It is a cross-platform SCSI library that supports OS X. It is used by cdrtools. -Nathan > On Jan 17, 2016, at 1:34 AM, Tao Wang <twa...@gm...> wrote: > > 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 > > > ------------------------------------------------------------------------------ > Site24x7 APM Insight: Get Deep Visibility into Application Performance > APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month > Monitor end-to-end web transactions and take corrective actions now > Troubleshoot faster and improve end-user experience. Signup Now! > http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140_______________________________________________ > libusb-devel mailing list > lib...@li... > https://lists.sourceforge.net/lists/listinfo/libusb-devel |