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. There
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 =
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?
That's
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_READY ?
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-Win32 List python-win32
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 experience