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

2007-12-12 Thread Tony Cappellini
hung up on data transfer now, you can deal with that later once you understand how to get a simple command across. Message: 4 Date: Wed, 12 Dec 2007 21:41:15 +0100 From: Sebastian Friebe <[EMAIL PROTECTED]> Subject: Re: [python-win32] USB access using win32file.deviceIOcontrol To: Python-W

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

2007-12-12 Thread Tim Roberts
Sebastian Friebe wrote: > That's exactly my problem. > I know there are some pointers in the C++ structure pointing to the > data inside the structure. But I don't have an idea at all, how to > port it to Python. > > Could you give me an example of a very basic SCSI command, like the > TEST_UNIT_RE

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 Tim Roberts
Sebastian Friebe wrote: > I saw an implementation in C++ using the winAPI DeviceIOControl() > function to do low-level SCSI operations on a USB mass storage device. > It is defined as follows: > > BOOL WINAPI DeviceIoControl( > ... > following settings have been applied: > dwIoControlCode

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

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

2007-12-11 Thread Tim Roberts
Sebastian Friebe wrote: > 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 experie

[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