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

Issue with GetDeviceInformation
http://www.starburnsoftware.com/forum/starburn-sdk-f3/issue-with-getdeviceinformation-t2077.html
Page 1 of 1

Author:  Phil Rounds [ Thu May 27, 2010 7:03 pm ]
Post subject:  Issue with GetDeviceInformation

I'm just getting started with the SDK, and have an issue with the GetDeviceInformation function. I'm scanning the computer for writers, and attempting to get the device info for any and all writers. I find the dvd drives, but when I isssue the GetDeviceInformation command, I get an error at the first drive found, iPort = 0, iTarget = 0. chException 0x0012e904 "CStarBurn_ScsiTransportASPI::CStarBurn_ScsiTransportASPI(): m__pfn__SendASPI32Command( SC_GET_DEV_TYPE ) for target ID 15 failed with ASPI status 0x82"

The targetID ( my iTarget) is clearly 0 when I request the Device info.

Any help would be appreciated.

My code is as follows:

for (int iBus = 0; iBus < 1; iBus++)
{
for (int iPort = 0; iPort < 16; iPort++)
{
for ( int iTarget = 0; iTarget < 16; iTarget++)
{
for ( int iLun = 0; iLun < 1 ; iLun++)
{
LONG lException = StarBurn_CdvdBurnerGrabber_Create(
&pBurner, (PCHAR) &chException, sizeof(chException),
&sysError, &cdbFail, (PCALLBACK) Callback,
NULL, iPort, iBus, iTarget, iLun, 32);

if ( lException == EN_SUCCESS)
{
TRACE("\r\nFound Burner @ Port = %i, Bus = %i, Target = %i, Lun = %i", iPort, iBus, iTarget, iLun);
StarBurn_CdvdBurnerGrabber_GetDeviceInformation(
&pBurner,
(PCHAR) &chVendorId ,
(PCHAR) &chProductId,
(PCHAR) &chRevision,
&ulBufferSize);

TRACE("\r\n Vendor = %s, ProductID = %s, Revision = %s", chVendorId, chProductId, chRevision);


}
else
{
//TRACE("\r\nNo Burner @ Bus = %i, Port = %i, Targer = %i, Lun = %i", iBus, iPort, iTarget, iLun);
}

}
}
}
}

Author:  anton (staff) [ Fri May 28, 2010 6:36 am ]
Post subject:  Re: Issue with GetDeviceInformation

1) Don't use ASPI. It's present for compatibility reasons only. Use SPTD as primary device enumeration method and SPTI as backup (if no SPTD driver installed). CreateEx and CreateExEx.

2) We don't need your source code YET. When submitting reports please keep StarBurn logs near you to attach to forum or send to us by e-mail. They do provide valuable information to us.

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