READ MEDIA SERIAL NUMBER | ABh |
READ MEDIA SERIAL NUMBER provides a method for the host application to read the serial number of the cartridge currently loaded in the drive.
Illegal Field Reservation Deferred Error Unit Attention Media Access
Command descriptor block:
|
| 7 |
| 6 | 5 | 4 |
| 3 | 2 | 1 | 0 |
|
|
|
|
|
|
|
|
|
|
| |
| 0 |
|
|
|
| Operation | Code (ABh) |
|
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
| Reserved(0) |
|
|
| Service Action (01h) |
|
| ||
| 2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Reserved (0) |
|
|
|
| ||
| 8 |
|
|
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| 6 | (MSB) |
|
|
| Allocation Length |
|
|
| ||
|
|
|
|
|
|
|
|
| |||
| 9 |
|
|
|
|
|
| (LSB) | |||
|
|
|
|
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
|
| |
| 10 |
|
|
|
| Reserved(0) |
|
|
|
| |
|
|
|
|
|
|
|
|
|
|
| |
| 11 |
|
|
|
| Control |
|
|
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
CDB fields:
Service Action | 01h The Service Action must be set to 01h. |
|
|
Allocation | The maximum amount of data (in bytes) to be returned to the host. The drive will return |
Length | the entire serial number string or allocation length bytes, whichever is least. |
|
|
If there is no cartridge in the drive, the command is terminated with CHECK CONDITION status. The sense key is set to NOT READY with additional sense of 3A00h (medium not present).
Returned data:
The data returned depends on whether a barcode number has been stored in the
Commands
READ MEDIA SERIAL NUMBER ABh 125