Rocket Division Software

CD/DVD/Blu-Ray/HD-DVD recording, iSCSI and AoE (ATA-over-Ethernet)




 [ 6 posts ] 
AuthorMessage
 Post subject: Determining if there is a disc in drive...
Posted:
Offline

Joined: T
Posts: 51
Location: Germany
Hi all.
Calling StarBurn_CdvdBurnerGrabber_TestUnitReady should be the right way to test, if there is a disc mounted...
But: Calling this function on an empty drive will take about 10 seconds! (debug and release port) and the debug-out looks like:

CStarBurn_ScsiTransportASPI::ExecuteCDB(): Command failed!!!

SCSI request block dump:
SRB_Status: 0x04, SRB_HaStat: 0x00, SRB_TargStat: 0x02
CDB Length: 6, CDB dump: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00


SCSI sense data dump:
Error Code: 0x70, Is Sense Valid: No, Segment Number: 0x00 (0)
Sense Key: 0x02, Reserved: 0x00, Incorrect Length: No
End Of Media: No, File Mark: No, Information: 0x00 0x00 0x00 0x00
Additional Sense Length: 0x0A (10)
Command Specific Information: 0x00 0x00 0x00 0x00
Additional Sense Code (ASC): 0x3A, Additional Sense Code Qualifier (ASCQ): 0x00

First-chance exception at 0x77e53887 in SnapIt!.exe: Microsoft C++ exception: CStarBurn_Exception @ 0x0012c3f8.


Repeated 20 times.

Have I missed something?

Thanks
Spin


Top
 Profile  
 
 Post subject: Re: Determining if there is a disc in drive...
Posted:
Offline
Site Admin

Joined: F
Posts: 3332
Location: British Virgin Islands
SpinDoctor,

everything is correct:

Additional Sense Code (ASC): 0x3A, Additional Sense Code Qualifier (ASCQ): 0x00

this means "no disc in drive". Also code waits for drive to become ready (possibly). If such a large timeout is deadly for you may wish to use

StarBurn_CdvdBurnerGrabber_GetDiscInformation(...) and analyze returned SCSI sense in CDB_FAILURE_INFORMATION for the same combination (0x3A, 00). A bit unfriendly I know...

Thanks!

SpinDoctor wrote:
Hi all.
Calling StarBurn_CdvdBurnerGrabber_TestUnitReady should be the right way to test, if there is a disc mounted...
But: Calling this function on an empty drive will take about 10 seconds! (debug and release port) and the debug-out looks like:

CStarBurn_ScsiTransportASPI::ExecuteCDB(): Command failed!!!

SCSI request block dump:
SRB_Status: 0x04, SRB_HaStat: 0x00, SRB_TargStat: 0x02
CDB Length: 6, CDB dump: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00


SCSI sense data dump:
Error Code: 0x70, Is Sense Valid: No, Segment Number: 0x00 (0)
Sense Key: 0x02, Reserved: 0x00, Incorrect Length: No
End Of Media: No, File Mark: No, Information: 0x00 0x00 0x00 0x00
Additional Sense Length: 0x0A (10)
Command Specific Information: 0x00 0x00 0x00 0x00
Additional Sense Code (ASC): 0x3A, Additional Sense Code Qualifier (ASCQ): 0x00

First-chance exception at 0x77e53887 in SnapIt!.exe: Microsoft C++ exception: CStarBurn_Exception @ 0x0012c3f8.


Repeated 20 times.

Have I missed something?

Thanks
Spin

_________________
Regards,
Anton Kolomyeytsev

Rocket Division Software


Top
 Profile  
 
 Post subject:
Posted:
Offline

Joined: M
Posts: 235
Hello Support,

I am Using VB.NET Sample of StarBurnX.

1) In my application on the burn form. I am having one button which starts creating ISO image from the disc. In a case when I insert the disc in the drive and close the tray and then immediately press the button then it shows me no disc in the drive. It's OK disc is not detected yet but detection is going on.

2) But I have to handle this process in case of the slow machines and old drives. So I refreshed the current selected drive's disc information programaticlly on main thread. My requirement are fulfilled, but application hangs until disc is not detected by drive.

3) To solve this problem I put the drive.DiscInfo.Refresh in another Thread but after putting this in Thread hanging problem is gone, but Information about disc retrieved is wrong. It detects disc as Empty. I have searched from my side nothing is wrong.

Will you please kindly try to simulate the problem and then look into this Refresh problem?

Thank you.


Top
 Profile  
 
 Post subject:
Posted:
Offline

Joined: T
Posts: 183
Hello,

Ok, we will try to simulate this problem today.

Thanx for information!

Regards,

Dmitry


Top
 Profile  
 
 Post subject: Re: Determining if there is a disc in drive...
Posted:
Offline

Joined: M
Posts: 235
Hello Sir,

1) I am having only one source for any problem to discuss which is your forum. Even help file is also not that much updated. So I am asking questions over here.
2) The problems I have discussed so far are many times not documented in Samples and also in Help files.
3) I don't know what all things are still pending from your side to be updated from Starburn Core to StarBurnX. I know those all are important tasks.
4) I have observed on some of other SDKs, those are having TODO list on their main website. How I will come to know what to ask and what to not (because you are still working on it). Even those sites are deleting completed tasks [tagged by completed].

Thank you Sir.


Top
 Profile  
 
 Post subject: Re: Determining if there is a disc in drive...
Posted:
Offline
Site Admin

Joined: F
Posts: 3332
Location: British Virgin Islands
We don't share such an information with our customers (and competitors).

_________________
Regards,
Anton Kolomyeytsev

Rocket Division Software


Top
 Profile  
 
 [ 6 posts ]