Re: SCSI Passthrough Using Write Buffer Command

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Garet,

There is a chance that some CD-ROM filter driver does not support forwarding
of this particular SCSI opcode.
Have you tried use some other kind of SCSI write command (like WRITE 0x2A,
etc) ?

--
Best regards,
Valeriy Glushkov

"Garet Cammer" <gcammer@xxxxxxxxxxx> wrote in message
news:%23ZmHjQPWGHA.2376@xxxxxxxxxxxxxxxxxxxxxxx
Thanks for the ideas, Gary.
Our product is identified as a removable media storage device, similar to
a CDROM, and does support the "Packet" commands, which are generated
through the SCSI_PASS_THROUGH_DIRECT ioctl. This works fine with other
commands, including the "READ BUFFER" (op code 0x3C), so it seems to me
that either we are not mapping the CDB array correctly, or one of the
Windows drivers is not performing as expected...
Regards,
Garet

"Gary G. Little" <gary.g.little@xxxxxxxxxxx> wrote in message
news:44342058$0$15443$6d36acad@xxxxxxxxxxxxxxxxxxxxx
Given that you are on 2000 and using an off the shelf HBA and driver,
does the driver support the command in SPTI? Since it's an ATAPI device
it does seem to me you should be using the ATA command defined by the T13
committee and not the SCSI command defined by the T10 committee. The
question then come up as to how you are mapping the CDB to the TFR.

--
The personal opinion of
Gary G. Little

"Garet Cammer" <gcammer@xxxxxxxxxxx> wrote in message
news:u2Q2OrMWGHA.1352@xxxxxxxxxxxxxxxxxxxxxxx
Hi everyone,
We are trying to send vendor-specific data to an ATAPI device we have
designed, using the WRITE BUFFER command (SCSI op code 0x3B) through an
application running under WIN 2000. The function uses the
IOCTL_SCSI_PASS_THROUGH_DIRECT, just like the spti.c example in the MSDN
library.
The protocol is working but the only data we get is the CDB[] array
repeated over and over, not the data buffer specified in
sptdwb.sptd.DataBuffer.
Can anyone suggest what is wrong, or where to look for a solution?

Thanks in advance,

Garet







.



Relevant Pages

  • RE: PATCH: Further aacraid work
    ... currently unanswered email "error recovery and command completion" on ... > Enabling unmasked SIMD FPU exception support... ... > usbcore: registered new driver usbfs ... > USB Universal Host Controller Interface driver v2.2 ...
    (Linux-Kernel)
  • Re: [Announce] sg3_utils-1.14 available
    ... Drew Winstel wrote: ... No. sg_rmsn issues a READ MEDIA SERIAL NUMBER SCSI command. ... those with removable media, could support it). ...
    (Linux-Kernel)
  • Re: responses to SCSI commands
    ... > documentation on the SCSI command set and I understand that. ... byte will end up in the 'Target status' byte from your driver control block. ... normal course of action is then to send a SCSI Request Sense command. ...
    (comp.periphs.scsi)
  • Re: am2 MBs - 4g + SCSI wipes out root partition
    ... some has an opinion if this is a freebsd issue or MB falure or scsi drv problem? ... Basically the driver doesn't correctly handle DMA above 4GB. ... driver) with a 5th generation RAID card with 8G of ram, both have no such corruption problems. ... Please do keep in mind that 32bit vs 64bit support, and by correlary,>4GB support, is something that is completely isolated on a per-driver basis. ...
    (freebsd-stable)
  • Re: SCSI hba recommendation
    ... but both of them do not support 16 bytes ... SCSI CDBs. ... Driver support for CDB16 ... but it's dual channel and the ...
    (comp.os.linux.hardware)