Re: [python-win32] USB access using win32file.deviceIOcontrol

2007-12-12 Thread Sebastian Friebe
Tim Roberts wrote: TR> That's fundamentally correct. How are you creating the TR> SCSI_PASS_THROUGH structure in "byte_list"? Are you sure it is 42 TR> bytes? Are you setting all the fields correctly? How are you setting TR> the DataBuffer pointer? Have you set the Length field correctly? Tha

Re: [python-win32] USB access using win32file.deviceIOcontrol

2007-12-12 Thread Sebastian Friebe
Tim Roberts wrote: > This can't be done as you have described it. > > The problem is that the SCSI-like command set is only used between the > USB mass storage driver (usbstor.sys) and the USB host controller > driver. Above usbstor.sys, the device looks like a standard mass > storage device. The

[python-win32] USB access using win32file.deviceIOcontrol

2007-12-11 Thread Sebastian Friebe
Hi all, I'm trying to get access to a USB mass storage device in order to send low-level SCSI commands, like TEST_UNIT_READY and REQUEST_SENSE. I'm looking for a pure Python solution using the deviceIOcontrol function out of the win32file package. Does anyone has experience with it? I heared abo