Inquiry not working with all Drives


i have some problems using the Inquiry Command on some BD-burners.
It ends with "End of Semaphore" Error.
Used Drive is LiteOn DH4B1S.
used command:
Set CDB to:
12 00 00 00 38 00
instead of
12 00 00 00 60 00
Closed Mar 9, 2010 at 1:18 AM by OccumsRazor
Never mind; I found the source of the problem in the library. The INQUIRY command is apparently variable-sized, with a minimum size of 36 bytes. I changed the implementation in the library so that it would query once with 36 bytes, and if it sees there is more data, it would query again with the full size.This should fix the problem; please re-open the issue if it does not.Again, thank you for your comments and please continue to post any issues you come across.


OccumsRazor wrote Mar 8, 2010 at 11:00 PM

Thank you very much for reporting this issue.
It seems that this might be a problem with the device driver or firmware. The problem seems to be that the drive expects the inquiry data output to be 56 bytes (0x38), while according to SCSI Primary Commands 2 and above, the data is actually 96 bytes (0x60); therefore, the device does not follow the SPC-2 (or above) standards.

Would you please post here the standard to which the device claims compliance? That may help in finding the problem. You can retrieve this value from the Version property of the StandardInquiryData class that is returned by ScsiDevice.Inquiry(). (Additional information would be provided by the VersionDescriptors property of the same class, but that field is beyond the 56-byte limit and apparently inaccessible.)

OccumsRazor wrote Mar 8, 2010 at 11:07 PM

I forgot to mention -- in addition to posting the standard to which the device complies, could you please post if the following method presents the same problem?


If this works, then it indicates that the problem is with the library; if it does not, then the problem is probably due to a nonstandard device or drive.

wrote Mar 9, 2010 at 1:18 AM

wrote Feb 13, 2013 at 10:45 PM

wrote May 16, 2013 at 4:45 AM