Rocket Division Software
http://www.starburnsoftware.com/forum/

CDB Failure
http://www.starburnsoftware.com/forum/starburn-sdk-f3/cdb-failure-t139.html
Page 1 of 1

Author:  bbriggstkd [ Thu Sep 16, 2004 11:56 pm ]
Post subject:  CDB Failure

I ran the TestUnitReady function without a disk in my drive thinking that would force an error. It returned a exception of 8 which means a CDB error correct? How do I look at the CDB Error structure to know what happened. I have those arrays of bytes but that doesn't mean anything to me. What am I looking for?

Author:  anton (staff) [ Fri Sep 17, 2004 8:58 am ]
Post subject:  Re: CDB Failure

You need to look at the m__UCHAR__Sense[...] member of the structure. It contains SCSI sense information. Complete info (17+ bytes) describing WHY the command failed. See, it's too large and complex to wrap it into the single status code... We'll be adding some sort of the macro of function extacting interesting bytes (f.e. Sense Code and Additional Sense Code Qualifier -- most signigican bytes you should be interested in). So

//
// SCSI sense positions
//

#define SCSI_SENSE_KEY_POSITION 2

#define SCSI_ASC_POSITION 12

#define SCSI_ASCQ_POSITION 13

are inside the m__UCHAR__Sense[...] array. If you'll drop me an e-mail I'll send you complete ASC/ASCQ meaning interpretation.

Thank you!

bbriggstkd wrote:
I ran the TestUnitReady function without a disk in my drive thinking that would force an error. It returned a exception of 8 which means a CDB error correct? How do I look at the CDB Error structure to know what happened. I have those arrays of bytes but that doesn't mean anything to me. What am I looking for?

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/