Text preview for : SCSI.pdf part of JVC SCSI Command Manual



Back to : SCSI.pdf | Home

MC-8100/8200/8600

CD-ROM&DVD-ROM&DVD-RAM LIBRARY

SCSI Command Manual Rev 1.0 Jul.28, 2000

Professional System Division

Revision Information

Upgrade points from MC-2x00 and MC-7x00 1.Support of both side media 2.Multi Drive support ----------------------------------------------------------Rev 1.0 28th Jul 2000 Firmware V1-00 The first official edition

2

Contents
Revision Information 1. General ............................................... 1.1 Purpose .......................................... 1.2 Features ......................................... 1.3 Specification .................................... 1.4 Printer control .................................. 2. SCSI................................................... 2.1 General .......................................... 2.2 Characteristics of SCSI .......................... 2.3 Message .......................................... 2.4 Status ........................................... 2.5 Pin Assignment ................................... 3. Command for medium changer device .................... 3.1 INITIALIZE ELEMENT STATUS command ............... 3.2 INQUIRY command ................................. 3.3 LOG SELECT command .............................. 3.4 LOG SENSE command ............................... 3.5 MODE SELECT Command ............................. 3.6 MODE SENSE command .............................. 3.7 MOVE MEDIUM command ............................. 3.8 POSITION TO ELEMENT command ..................... 3.9 PREVENT/ALLOW MEDIUM REMOVAL command ............ 3.10 READ BUFFER command ............................ 3.11 READ ELEMENT STATUS command .................... 3.11.1 Element status data ...................... 3.11.2 Element Status Page ...................... 3.11.3 Medium transport element descriptor ...... 3.11.4 Storage Element Descriptor ............... 3.11.5 Import Export Element Descriptor ......... 3.11.6 Data Transfer Element Descriptor ......... 3.11.7 Label Print Element Descriptor ........... 3.12 RELEASE command ................................ 3.13 REQUEST SENSE command .......................... 3.14 RESERVE command ................................ 3.15 REZERO UNIT command ............................ 3.16 SEND DIAGNOSTIC command ........................ 3.17 TEST UNIT READY command ........................ 3.18 WRITE BUFFER command ........................... 3.19 JVC INITIALIZE ELEMENT STATUS command .......... 5 5 5 5 6 7 7 7 8 8 9 10 13 14 16 18 20 21 23 25 26 27 29 31 32 33 35 36 38 40 42 43 48 50 51 52 53 54

3

4. Parameters ........................................... 4.1 Log Parameters .................................. 4.1.1 Page Header ............................... 4.1.2 Log Parameter(s) .......................... 4.1.3 Pages ..................................... 4.1.3.1 Supported Log Pages ................. 4.1.3.2 Non-Medium Error Page ............... 4.1.3.3 Error Event Page .................... 4.1.3.4 Changer Counter Page ................ 4.2 Mode Parameter .................................. 4.2.1 Mode Parameter Header ..................... 4.2.2 Page(s) ................................... 4.2.2.1 Element Address Assignment Page ..... 4.2.2.2 Transport Geometry Paramaters Page .. 4.2.2.3 Device Capabilities Page ............

55 55 55 56 58 58 59 60 63 64 64 65 66 70 71

4

1. General 1.1 Purpose Model MC-8100/8200/8600 series is designed for CD/DVD library as a peripheral of computer. This manual described the SCSI ( Small Computer System Interface ) as its control and data interface.

1.2 Features 1) High-speed changing operation. Compact design and large capacity. 2) Maximum 100/200/600 CD/DVD discs loadable. 3) Maximum 4/9/12 CD/DVD drive capability. 4) The CD/DVD drive embedded SCSI-2 control interface emulating CD-ROM device command set of SCSI-2. 5) The robotics unit embedded SCSI-2 control interface emulating Changer device command set of SCSI-2.

1.3 Specification Number of media

Available media Drives

Mail slot Interface

Display Applicable Standard MSBF Operating Environment Temperature Humidity

100 (MC-8100) 200 (MC-8200) 600 (MC-8600) CD, DVD 0 Drives standard, 4 Drives maximum (MC-8100) 9 Drives maximum (MC-8200) 12 Drives maximum (MC-8600) 1 SCSI-2 Single-Ended Low Voltage Differential (Optional) RS-232-C ( for diagnostic ) LCD module UL,CSA,FCC-B 1,000,000 swaps (Changer) 5-35 centi-grade 10-80 percent

5

1.4 Printer control MC-8100/8200/8600 can mount internal full color Label printer. Printing method is so called "Ink Jet" type. You need printable media if you print a label on it. And also, both SCSI and Parallel cables need to be connected with a host PC. Printing steps are given as follows. 1. Carry a disc to the printer by issuing SCSI Move Medium command via SCSI. 2. Send printing data via parallel port. 3. Wait until printing is completed. You are able to find the completion by regularly watching a BUSY bit in the Label print element descriptor which can get from SCSI Read Element Status command. Do polling, and check the bit being changed from one to zero. 4. Carry a disc from the printer by issuing Move Medium command via SCSI. Cable connections are shown in Fig1

MC-8100/8200/8600

Fig1 Cable connection for lable printing

6

2. SCSI 2.1 General CD-ROM Library Model MC-8100/8200/8600 series supported SCSI-1 and SCSI-2 which are ANSI standard. For a more detailed description, refer to ANSI X3T9.2 Project 375D SCSI-2 WORKING DRAFT. CD-ROM/CD-R/DVDROM/DVD-RAM drives have its own SCSI command manuals. Please refer them for more detailed description. * Model MC-8100/8200/8600 series do not support CD Audio. 2.2 Characteristics of SCSI 1) Common portion Single-Ended driver / receiver Low Voltage Differential driver / receiver( Option Boad ) Shielded full size connector Supported arbitration Supported disconnect / reconnect Asynchronous data transfer Supported parity Support command link 2) Changer ( Robotics Portion ) Supported change device command sets

7

2.3 Message Code Type 06h M ABORT 0Ch M BUS DEVICE RESET 00h M COMMAND COMPLETE 04h O DISCONNECT 80h+ O IDENTIFY 05h M INITIATOR DETECTED ERROR 0Ah O LINKED COMMAND COMPLETE 09h M MESSAGE PARITY ERROR 07h M MESSAGE REJECT 08h M NO OPERATION 03h O RESTORE POINTERS 02h O SAVE DATA POINTER key : M = Mandatory support, O = Optional support Table 2 IDENTIFY message format Bit 7 6 5 4 3 2 Byte Status 1 DiscPriv Reserve DiscPriv ---- Disconnect Privilege bit Table 1 Message codes Message I/O O O I I/O I/O O I O I/O O I I

1 LUN

0

2.4 Status
Bit Byte

Status

7 6 Reserved

Table 3 Status byte 5 4 3 2 Status byte code

1

0 Reserved

Table 4 Status byte code 7 R R R R R R R R 6 R R R R R R R R Bits of status byte 5 4 3 2 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 1 0 0 0 1 0 1 0 1 1 0 1 0 0 0 1 0 1 0 0 0 0 0 1 0 R R R R R R R R Status Represented GOOD CHECK CONDITION CONDITION MET BUSY INTERMEDIATE INTERMEDIATE CONDITION MET RESERVATION CONFLICT COMMAND TERMINATED

8

2.5 Pin Assignment Table 5 Signal Shielded Connector Pin Number 1 26 2 27 3 28 4 29 5 30 6 31 7 32 8 33 9 34 10 35 11 36 12 37 13 38 14 39 15 40 16 41 17 42 18 43 19 44 20 45 21 46 22 47 23 48 24 49 25 50 Signal /DB0 /DB1 /DB2 /DB3 /DB4 /DB5 /DB6 /DB7 /DBP GND TERMPWR GND /ATN GND /BSY /ACK /RST /MSG /SEL /C/D /REQ /I/O

GND

(Open)

GND

9

3. Command for medium changer device This chapter defines the SCSI command for MC-8100/8200/8600 as a Changer device. The SCSI command contains the six(6), ten(10), and twelve (12) bytes command Descriptor Block (CDB). The CDB has always an operation code as the first byte and a control byte as the last byte of CDB.
Bit Byte

7

0 1 2 3 4 5

Table 6 - Command Descriptor Block (6 Bytes) 6 5 4 3 2 Operation Code LUN

1

0

Control Byte

Bit Byte

7

0 1 2 3 4 5 6 7 8 9

Table 7 - Command Descriptor Block (10 Bytes) 6 5 4 3 2 Operation Code LUN

1

0

Control Byte

10

Bit Byte

0 1 2 3 4 5 6 7 8 9 10 11

Table 8 - Typical command descriptor block for twelve-byte commands 7 6 5 4 3 2 1 Operation Code Logical unit number Reserved (MSB) Logical block address(if required)

0

(LSB) (MSB) Transfer length(if required) Parameter list length(if required) Allocation length(if required) (LSB) Reserved Control Byte

The operation code (see table 9) of the command descriptor block has a group code field and a command code field.
Bit Byte

7

0

6 Group code

Table 9 - Operation code 5 4 3

2 1 Command code

0

The group code specifies one of the following groups: a) Group 0 - six-byte commands (see table 6) b) Group 1 - ten-byte commands (see table 7) c) Group 2 - ten-byte commands (see table 7) d) Group 3 - reserved e) Group 4 - reserved f) Group 5 - twelve-byte commands (see table 8) g) Group 6 - vender-specific h) Group 7 - vender-specific The logical unit number is defined in the IDENTIFY message. The target shall ignore the logical unit number specified within the CDB if an IDENTIFY message was received. The control field is the last byte of every command descriptor block. The control field is defined in table 10.
Bit Byte

0

7 6 Vendor-specific

Table 10 - Control field 5 4 3 Reserved

2

1 Flag

0 Link

11

Table 11 - SCSI command sets for medium changer devices Command name Operation code Type Subclause

INITIALIZE ELEMENT STATUS INQUIRY LOG SELECT LOG SENSE MODE SELECT (6) MODE SENSE (6) MOVE MEDIUM POSITION TO ELEMENT PREVENT/ALLOW MEDIUM REMOVAL READ BUFFER READ ELEMENT STATUS RELEASE REQUEST SENSE RESERVE REZERO UNIT SEND DIAGNOSTIC TEST UNIT READY WRITE BUFFER JVC INITIALIZE ELEMENT STATUS

07h 12h 4Ch 4Dh 15h 1Ah A5h 2Bh 1Eh 3Ch B8h 17h 03h 16h 01h 1Dh 00h 3Bh E7h

O M O O O O M O O O O O M O O M M O V

3.1 3.2 3.3 3.4 3.5 3.6 3.7 3.8 3.9 3.10 3.11 3.12 3.13 3.14 3.15 3.16 3.17 3.18 3.19

Key: M = command implementation is mandatory. O = command implementation is optional. V = command implementation is vendor-specific.

12

3.1 INITIALIZE ELEMENT STATUS command Table 12 - INITIALIZE ELEMENT STATUS command Bit 7 6 5 4 3 2 1 Byte 0 Operation Code(07h) 1 Logical unit number Reserved 2 Reserved 3 Reserved 4 Reserved 5 Control

0

The INITIALIZE ELEMENT STATUS command (see table 12) will cause the medium changer to check all elements for medium and any other status relevant to that element. The intent of this command is to enable the initiator to get a quick response from a following READ ELEMENT STATUS command. It may be useful to issue this command after a power failure, or if medium has been changed by an operator, or if configurations have been changed.

13

3.2 INQUIRY command
Byte Bit

0 1 2 3 4 5

Table 13 - INQUIRY command 7 6 5 4 3 2 Operation Code(12h) Logical unit number Reserved Page code(0) Reserved Allocation Length(24h) Control

1

0 EVPD(0)

The Inquiry command requests that information regarding parameters of the Changer device and its attached peripheral device be sent to the initiator. An Enable Vital Product Data (EVPD) bit of zero specifies that the Changer device shall return the standard Inquiry data. The Changer device does not provide this bit set to one. If the Initiator attempts to send the Inquiry command with EVPD bit set to one, the Changer device shall terminate the Inquiry command with Check Condition status and set the sense key to Illegal Request and set to the additional sense code to Invalid Field in CDB. The Page Code field specifies which page of vital product data information to be returned to the initiator. The Changer does not provide this feature, always to be set zero. The Allocation Length field specifies the length in bytes of Inquiry data that shall be transferred to the initiator during the Data-in phase. The Allocation Length of zero indicates that no data shall be transferred. The Changer device has 36 bytes of Inquiry data. If the Allocation Length indicates less than 36 bytes, the Changer device shall transfer number of bytes that is indicated in the Allocation Length field. If the Allocation Length indicates more than 36 bytes, the Changer device shall transfer 36 bytes. The MC-8100/8200/8600 has Inquiry data format as follows.

14

Byte

Bit

0 1 2 3 4 5 6 7 8 15 16

31 32 35

Table 14 - Inquiry data format 7 6 5 4 3 2 1 0 Peripheral Qualifier(0) Peripheral Device Type(08h) RMB(1) Device Type Modifier(00) ISO(0) ECMA(0) ANSI(2) AENC(0) TrmIOP(0) Reserved Response Data Format(2) Additional Length(1Fh) Reserved Reserved RelAdr WBus32 WBus16 Sync Linked RSVD CmdQue SftRs 0 0 0 0 0 0 0 0 Vendor Identification(ASCII) "JVC " Product Identification(ASCII) MC-8100 = "JVC-CHG MC-8100 " MC-8200 = "JVC-CHG MC-8200 " MC-8600 = "JVC-CHG MC-8600 " Product Revision Level(ASCII) "X.XX"

Product Revision Level (SCSI firmware revision level) indicates: Byte 32 - A value of one indicates that this is a production release of the firmware. Byte 33 - is a period. Byte 34,35 - These bytes indicate major revisions of, or additions to the firmware. This always implies a change in the implementation documentation.

15

3.3 LOG SELECT command Table 15 - LOG SELECT command Bit 7 6 5 4 3 2 Byte 0 Operation Code(4Ch) 1 Logical unit number Reserved 2 Page control(01b) Reserved 3 Reserved 4 Reserved 5 Reserved 6 Reserved 7 (MSB) 8 9 Parameter List Length(0000h)

1 PCR(1)

0 SP(0)

(LSB) Control

The Log Select command provides the means for the initiator to manage statistical information maintained by the device about the device. The Parameter Code Reset (PCR) bit of one and Parameter List Length field of zero shall cause all implemented parameter to be cleared. The Changer device provides only a PCR of set to one. If the initiator attempts to send the Log Select command with PCR bit of zero, the Changer device shall terminate the Log Select command with a Check Condition status. A Save Parameter (SP) bit of one indicates that after performing the specified Log Select operation the Changer device shall save all log parameters. The Changer device provide only a SP of set to zero. If the Initiator attempts to send the Log Select command with SP bit of one, the Changer device shall terminate the Log Select command with a Check Condition status. The Page Control (PC) field defines the type of parameter values to be selected. Table 16 - The Page control field defines Code Log Select Log Sense ------------------------------------------------------------00b Current Threshold Values Threshold Values 01b Current Cumulative Values Cumulative Values 10b Default Threshold Values Default Threshold Values 11b Default Cumulative Values Default Cumulative Values

16

The Changer device provides only Current Cumulative Values. Therefore, the Page Control (PC) field should be set to (01b). The Parameter List Length field specifies the length of log parameter list that shall be transferred from the initiator. The Changer device provides only to clear parameter field. It does not provide log parameter list. Therefore, the Parameter List Length field always should be zero. Any log parameters are changed that affect other initiators, then the target shall generate a unit attention condition for all initiator except the one that issued the Log Select command.

17

3.4 LOG SENSE command Table 17 - LOG SENSE command Bit 7 6 5 4 3 2 Byte 0 Operation Code(4Dh) 1 Logical unit number Reserved 2 PC(01b) Page Code 3 Reserved 4 Reserved 5 (MSB) 6 7 8 9 (MSB) Allocation Length Parameter Pointer(0000h)

1 PPC(0)

0 SP(0)

(LSB)

(LSB) Control

The LOG SENSE command provides the means for the Initiator to retrieve statistical information maintained by the device about the device. The Parameter Pointer Control (PPC) bit of zero and the Parameter Pointer field of zero shall cause all available log parameter for the specified log page to be returned to the initiator subject to the specified allocation length. If the initiator attempts to send the Log Sense command with PPC bit set to one, the Changer device shall terminate the Log Sense command with a CHECK CONDITION status. A Save Parameter (SP) bit of zero indicates the Changer device shall perform the specified LOG SENSE command and not save any log parameters, If the initiator attempts to send the Log Sense command with SP bit to one, the Changer device shall terminate the LOG SENSE command with a CHECK CONDITION status. The Page Control (PC) field defines the type of parameter values to be selected. The Changer device provides only Cumulative Values (01b). (See 3.3) The Page Code field identifies which page of data is being requested. The Changer device provides following Page Code.

18

Table 18 - The page code field Page CodeDescriptor --------------------------------------00h Supported Log Pages 06h Non Medium Error Page 07h Error Event Page 30h Error Counter Pages (Read) page The Allocation Length field specifies the length in bytes of log parameters that shall be transferred to the initiator during the Datain phase. An Allocation Length of zero indicates that no data shall be transferred. The Log Parameters for Log Sense command is defined in section 4.1.

19

3.5 MODE SELECT command Table 19 - MODE SELECT command Bit 7 6 5 4 3 2 Byte 0 Operation Code(15h) 1 Logical unit number PF Reserved 2 Reserved 3 Reserved 4 Parameter List Length 5 Control

1

0 SP(0)

The MODE SELECT command provides the means for the initiator to specifies parameters to the Changer device. If the initiator sends the Mode Select command that changes any parameters applying to other initiator, the Changer device shall set the sense key to Unit Attention and additional sense code Mode Parameter changed. A Page Format (PF) bit of one indicates that Mode Select parameters following the header and block descriptors are structured as page of related parameters. A PF bit of zero indicates that no page parameters following. A Save Pages (SP) bit always sets zero. If the initiator attempts to send the Mode Select command with SP bit set to one, the Changer device shall terminate the Mode Select command with a Check Condition status and set sense key to Illegal Request. The Parameter List Length field specifies the length in bytes of Mode Parameter List that shall be transferred from the Initiator to the Changer device during the Data-in phase. A Parameter List Length of zero indicates that no data shall be transferred.

20

3.6 MODE SENSE command Table 20 - MODE SENSE command Bit 7 6 5 4 3 2 Byte 0 Operation Code(1Ah) 1 Logical unit number Reserved DBD(1) 2 PC Page Code 3 Reserved 4 Allocation Length 5 Control

1 Reserved

0

The MODE SENSE command provides a means for the Changer device to report parameters to the initiator. A disable block descriptors (DBD) bit of one specifies that the Changer device shall not return any block descriptors in the returned MODE SENSE data. A DBD bit is always one. The Page Control (PC) field defines the type of mode parameter values to be returned in the mode pages. The PC field is defined in table 21. Table 21 - The page control field define code Type of parameter Supported ------------------------------------00b Current Values Yes 01b Changeable Values Yes 10b Default Values Yes 11b Saved Values No The Changer device does not support Saved Values.

21

The Page Code field specifies which mode pages to return. The Changer device provides following page code. Table 22 - The page code Page Code (HEX) Description --------------------------------------------------00h No page parameter returned 1Dh Element Address Assignment page 1Eh Transport Geometry Paramaters page 1Fh Device Capabilities page The Allocation Length field specifies the length in bytes of the Mode Sense parameters list that shall be transferred from the Changer device to the initiator during the Data-in phase. An Allocation Length of zero indicates that no data shall be transferred. The mode parameters for Mode Sense command is defined in section 4.2.

22

3.7 MOVE MEDIUM command
The MOVE MEDIUM command (see table 23) requests that the Changer mechanism moves a unit of media (a tray or a tray with a disc) from a source element to a destination element.
Byte Bit

0 1 2 3 4 5 6 7 8 9 10 11

Table 23 - MOVE MEDIUM command 7 6 5 4 3 2 Operation Code(A5h) Logical unit number Reserved (MSB) Transport Element Address(2000h)

1

0

(LSB) (MSB) Source Address (LSB) (MSB) Destination Address (LSB) Reserved Reserved Reserved Reserved Eject Control

Invert

The transport element address specifies the medium transport element ( 2000h ) that is to be used in executing this command. The source address specifies the location that the medium is taken from. The destination address specifies the location that the medium is move to. The source address and the destination address may represent a storage element (0001h - 0064h:MC-8100 / 00C8h:MC-8200 / 0258h:MC-8600), a data transfer element (3001h - 3004h:MC-8100 / 3009h:MC-8200 / 300Ch:MC-8600), an import export element (4000h, 4001h), a lebel print element (5000h). The Changer device capabilities MODE SENSE page provides a matrix with the supported source element or destination element combinations for the MOVE MEDIUM command. See 4.2.2.2. The MOVE MEDIUM command from the storage element address to the storage element address is prohibited. An Invert bit value of one indicates that the changer flips the media. If the transport element does not have capability to flip the media, the changer device shall return CHECK CONDITION(2-2601) status.

23

An Eject bit of one indicates that the changer device moves a unit of media to a storage element address that is reserved in the changer device memory. In this case, a destination address field shall be set to zero. If this address field sets to other values, the changer device shall return CHECK CONDITION status and set the sense key to ILLEGAL REQUEST. The MOVE MEDIUM command from the storage element to the data transfer element is valid when a disc exists on the source address. If there is only a tray but no disc on the source address , the Changer device shall return CHECK CONDITION status. Import export element ( mail slot ) address 4000h is default value. When a disk is transferred to the mail slot (4000h) from the storage element , the mail slot will be open automatically with the disk. When the mail slot is open, it should be closed by pushing the tray manually. So the MOVE MEDIUM command (from Import export to storage element) for 4000h won't work when the mail slot is open. The changer device shall return CHECK CONDITION status. After the mail slot is closed manually , the MOVE MEDIUM command for 4000h will be available. On the contrary Import export address 4001h could be used for special purpose. When the disk is transferred to the mail slot of 4001h , the mail slot won't be open although the disk is transferred to the mail slot. When the mail slot is open , the MOVE MEDIUM command for 4001h will close the mail slot automatically and carries the disk to the target address ( to the storage element address ).

Table 24 - MOVE MEDIUM command for mail slot DT,ST ->> I/E 4000h mail slot will open I/E ->> DT,ST command denied(when open) command accepted(when closed)

4001h mail slot will remain closed mail slot will be closed

24

3.8 POSITION TO ELEMENT command Table 25 - POSITION TO ELEMENT command Bit 7 6 5 4 3 2 Byte 0 Operation Code(2Bh) 1 Logical unit number Reserved 2 (MSB) 3 4 5 6 7 8 9 (MSB) Destination Address Transport Element Address

1

0

(LSB)

(LSB) Reserved Reserved Reserved Control

Invert(0)

The POSITION TO ELEMENT command (see table 25) will position the transport element specified in front of the destination element specified. The destination address type only support Storage Element , Data Transfer Element and Import/Export Element. An Invert bit does not support. This bit always shall be set to zero.

25

3.9 PREVENT/ALLOW MEDIUM REMOVAL command
Bit

Byte

0 1 2 3 4 5

Table 26 - PREVENT/ALLOW MEDIUM REMOVAL command 7 6 5 4 3 2 1 Operation Code(1Eh) Logical unit number Reserved Reserved Reserved Reserved Control

0

Prevent

The PREVENT/ALLOW MEDIUM REMOVAL command requests that the Changer device enable or disable the removal of CD-ROM medium through the import export element. The prevention of medium removal shall begin when any initiator issues a PREVENT ALLOW MEDIUM REMOVAL command with a prevent bit of one (medium removal prevented). The prevention of medium removal for the logical unit shall terminate: a) after all initiators that have medium removal prevented issue PREVENT ALLOW MEDIUM REMOVAL commands with a prevent bit of zero; b) upon the receipt of a BUS DEVICE RESET message from any initiator; or c) upon a hard RESET condition. While a prevention of medium removal condition is in effect the target shall inhibit mechanisms that normally allow removal of the medium by an operator.

26

3.10 READ BUFFER command
Bit

Byte

0 1 2 3 4 5

Table 27 - READ BUFFER command 7 6 5 4 3 2 Operation Code(3Ch) Logical unit number Reserved Buffer ID (MSB) Buffer Offset

1 Mode(010b)

0

(LSB) 6 7 8 (LSB) 9 Control (MSB) Allocation Length

The Read Buffer command is used in conjunction with the Write Buffer command as a diagnostic function for testing the contents of memory. This command shall not alter the medium. The Mode field is defined as follows. Table 28 - Mode field Code Descriptor Supported ----------------------------------------------------000b Combined header and Data No 001b Vender specific No 010b Data Yes 011b Descriptor No 100b - 111b Reserved This Changer device is supported only data mode (010b). If the Initiator attempts to send the Read Buffer with except data mode (010b), the Changer device shall terminate the Read Buffer command with a Check Condition status.

27

The Buffer ID field indicates a buffer which data shall be transferred. The Buffer ID field is defined as follows. Table 29 - Buffer ID field Buffer ID Description ----------------------1h CPU RAM The Buffer Offset field contains the byte offset within the buffer. In case of the Buffer ID sets CPU RAM (1h), it specifies the RAM address in this field. The Allocation Length field specifies the length in bytes of data that shall be transferred to the initiator during the Data-in phase. An Allocation Length of zero indicates that no data shall be transferred.

28

3.11 READ ELEMENT STATUS command
Bit

Byte

0 1 2 3

Table 30 - READ ELEMENT STATUS command 7 6 5 4 3 2 1 Operation Code(B8h) Logical unit number Voltag(0) Element type code (MSB) Starting element address

0

(LSB) 4 5 (LSB) 6 7 8 9 10 11 Reserved Control Reserved (MSB) Allocation Length (LSB) (MSB) Number of elements

The READ ELEMENT STATUS command (see table 30) requests that the Changer device report the status of its internal elements to the initiator. A Volume-Tag bit is not supported. This bit shall always set to zero. The element type code field specifies the particular element type(s) selected for reporting by this command. A value of zero specifies that status for all element types shall be reported. The element type codes are defined in table 31. Table 31 - Element type code Code Description ---------------------------------------------------------0h All element types reported (valid in CDB only) 1h Medium transport element 2h Storage element 3h Import export element 4h Data transfer element 5h Label print element 6h - Fh Reserved

29

The starting element address specifies the minimum element address to report. The number of elements specifies the maximum number of element descriptors to be created by the Changer device for this command. The Allocation Length field specifies the length in bytes of the Read Element Status Data that shall be transferred to the initiator during the Data-in phase. An allocation length of zero indicates that no data shall be transferred. The Read Element Status Data consists of a element status header and one or more element status pages with page header.

30

3.11.1 Element status data
Bit

Byte

0 1

7 (MSB)

6

Table 32 - Element status data 5 4 3

2

1

0

First element address reported (LSB) 2 3 (LSB) 4 5 6 7 (LSB) 8 : X Element status page(s) Reserved (MSB) Byte count of report available (all pages, X-7) (MSB) Number of elements available

The first element address reported field indicates the element address of the element with the smallest element address found to meet the CDB request. The number of elements available field indicates the number of elements meeting the request in the command descriptor block. The status for these elements is returned if sufficient allocation length was specified. The byte count of report available field indicates the number of bytes of elements status page data available for all elements meeting the request in the command descriptor block. This value shall not be adjusted to match the allocation length available.

31

3.11.2 Element Status Page
Bit

Byte

7

6

0 1 2 3

Table 33 - Element status page 5 4 3 Element Type Code Reserved Element Descriptor Length

2

1

0

(MSB)

(LSB) 4 5 6 7 (LSB) 8 : Y Element Descriptors Reserved (MSB) Byte Count of Descriptor Data Available (all pages, Y-7)

The element type code field indicates the element type reported by this page. The element descriptor length field indicates the number of bytes in each element descriptor. The byte count of descriptor data available field indicates the number of bytes of element descriptor data available for elements of this element type meeting the request in the CDB. This value shall not be adjusted to match allocation length available. Each element descriptor includes the element address and status flag; it may also contain sense code information as well as other information depending on the element type.

32

3.11.3 Medium transport element descriptor
Bit

Byte

0 1 2 3 4 5 6 7 8 9 10 11

7 (MSB)

Table 34 - Medium transport element descriptor 6 5 4 3 2 Element address

1

0

Reserved

Except Reserved

(LSB) FULL

SValid (MSB)

Invert(0)

Reserved Additional sense code Additional sense code qualifier Reserved Reserved Reserved Reserved Source storage element address (LSB)

12 13 14 15 16 17

Reserved Reserved Reserved Reserved Reserved Reserved

Tray

An Exception (Except) bit of one indicates the element is in an abnormal state. An Except bit of zero indicates the element is in normal state. If this bit is one, information on the abnormal state may be available in the additional sense code and additional sense code qualifier bytes. A Full bit value of one indicates that the element contains a unit of media. A Value of zero indicates that the element does not contain a unit of media. The additional sense code and additional sense code qualifier fields will appear, when the Except bit set to one. A source valid (Svalid) bit value of one indicates that the source storage element address field and the invert bit information are valid. A value of zero indicates that the values in these field are not valid.

33

An Invert (Invert) bit does not support. This bit shall be set to zero. The source storage element address field provides the address of the last storage element this unit of media was moved. This field is valid only if the Svalid bit is one. A Tray bit of one indicates that there is a tray on this element.

34

3.11.4 Storage Element Descriptor
Bit

Byte

0 1 2 3 4 5 6 7 8 9 10 11

7 (MSB)

Table 35 - Storage Element Descriptor 6 5 4 3 2 Element address

1

0

Reserved

SValid (MSB)

Invert

Access Except Reserved Reserved Additional sense code Additional sense code qualifier Reserved Reserved Reserved Reserved Source storage element address

(LSB) FULL

(LSB) 12 13 14 15 16 17 Reserved Reserved Reserved Reserved Reserved Reserved

Tray

An Access bit value of one indicates that access to the element by a medium transport element is allowed. An access bit of zero indicates that access to the element by the medium transport element is denied. An Invert bit value of one indicates that the changer reversed the side of the media from the condition at the Import Export Element. The source storage element address field provides the address of the last storage element this unit of media was moved from. This element address value may or may not be the same as this element. This field is valid only if the Svalid bit is one. A Tray bit of one indicates that there is a tray on this element.

35

3.11.5 Import Export Element Descriptor
Bit

Byte

0 1 2 3 4 5 6 7 8 9 10 11

7 (MSB)

Table 36 - Import Export Element Descriptor 6 5 4 3 2 Element address

1

0

Reserved

InEnab

SValid (MSB)

Invert(0)

ExEnab Access Except Reserved Reserved Additional sense code Additional sense code qualifier Reserved Reserved Reserved Reserved

(LSB) FULL

Source storage element address (LSB) 12 13 14 15 16 17 Reserved Reserved Reserved Reserved Reserved Reserved Open Tray

An import enable (InEnab) bit of one indicates that the import export element supports movement of media into the scope of the medium changer device. An InEnab bit of zero indicates that this element does not support import action. This bit (InEnab) is always set to one. An export enable (ExEnab) bit of one indicates that the import export element supports movement of media out of the scope of the medium changer device. An ExEnab bit of zero indicates that this element does not support export action. This bit (ExEnab) is always set to one. An Invert (Invert) bit always shall be zero. If the media is moved to the import export element, an Invert (Invert) bit is set to zero.

36

The source storage element address field provides the address of the last storage element this unit of media was moved from. This element address value may or may not be the same as this element. This field is valid only if the Svalid bit is one. An Open bit of one indicates the import export element( mail slot ) is open. A Tray bit of one indicates that there is a tray on this element.

37

3.11.6 Data Transfer Element Descriptor
Bit

Byte

0 1 2 3 4 5 6 7 8 9 10 11

7 (MSB)

Table 37 - Data Transfer Element Descriptor 6 5 4 3 2 Element address

1

0

Reserved

Access Except Reserved Reserved Additional sense code Additional sense code qualifier

(LSB) FULL

Not bus(0)

Reserved ID valid LU valid Reserved SCSI bus address Reserved Reserved Source storage element address

Logical unit number

SValid (MSB)

Invert

(LSB) 12 13 14 15 16 17 Reserved Reserved Reserved Reserved Reserved Reserved

Tray

A not this bus (not bus) bit value of one indicates that the SCSI bus address and logical unit number values are not valid for the SCSI bus used to select the medium changer device. A not bus bit value of zero indicates that the SCSI address and logical unit number values, if valid, are on the same bus as the medium changer device. This bit is not supported , and shall be set to zero. An ID valid bit of one indicates that the SCSI bus address field contains valid information. An LU valid bit value of one indicates that the Logical unit number field contains valid information. This value should be set to zero.

38

The SCSI bus address field, if valid, provides the SCSI address (binary representation) of the primary device served by the medium changer at this element address. The Logical unit number field, if valid, provides the Logical unit number within SCSI bus device of the primary device served by the medium changer at this element address. An Invert bit value of one indicates that the changer reversed the side of the media from the condition at the Import Export Element. A Tray bit of one indicates that there is a tray on this element.

39

3.11.7 Label print Element Descriptor
Bit

Byte

0 1 2 3 4 5 6 7 8 9 10 11

7 (MSB)

Table 38 - Label print Element Descriptor 6 5 4 3 2 Element address

1

0

Access Except Reserved Reserved Additional sense code Additional sense code qualifier Not ID LU Reserved Reserved Logical unit number(000) bus(1) valid(0) valid(0) SCSI bus address(0) Reserved SValid Invert Reserved (MSB) Source storage element address

Reserved

(LSB) FULL

(LSB) 12 13 14 15 16 17 Reserved Reserved Reserved Reserved Empty(B) Empty(C) Empty(M) Empty(Y) Finish Reserved

Busy

Reserved

Tray

An access bit value of one indicates that printer is present and printer status is ready to access. An exception (Except) bit of one indicates the element is in an abnormal state. An exception bit of zero indicates the element is in a normal state. If this bit is one, information on the abnormal state may be available in the additional sense code and additional sense code qualifier bytes. A full bit of one indicates that CD is present in printer. A not this bus (not bus) bit value of one indicates that the SCSI bus address and logical unit number values are not valid for the SCSI bus used to select the medium changer device. A not bus bit value of zero indicates that the SCSI address and logical unit number values, if valid, are on the same bus as the medium changer device.

Manual

Page 37

40

An ID valid bit of one indicates that the SCSI bus address field contains valid information. An LU valid bit value of one indicates that the Logical unit number field contains valid information. This value should be set to zero. Printing data interface is "Parallel port". So "Not bus" bit is always set to one, and "ID valid" and "LU valid" are set to zero. A source valid (Svalid) bit value of one indicates that the source storage element address field and the invert bit information are valid. A value of zero indicates that the values in these fields are not valid. An Invert bit value of one indicates that the changer reversed the side of the media from the condition at the Import Export Element. The source storage element address field provides the address of the last storage element which this unit of media was moved. This field is valid only if the Svalid bit is one. Empty(B), Empty(C), Empty(M), and Empty(Y) bit of one indicate that each colors ink cartridge become empty. B means Black, C means Cyan, M means Magenta, and Y means Yellow. These data is held until the jukebox receives reset condition or the jukebox is turned off the power. Whenever you replace ink cartridge to the new one, these bits never turn to zero. A Finish bit of one indicates that a label printing has been finished. This bit turns to zero when a move medium which ejects a disc from printer has been started. A Busy bit of one indicates that printer is currently in printing state. A Tray bit of one indicates that there is a tray on this element.

41

3.12 RELEASE command
Bit

Byte

0 1 2 3 4 5

Table 39 - RELEASE command 7 6 5 4 3 2 1 Operation Code(17h) Logical unit number 3rdPty 3rd Party Device ID Reservation Identification(0) Reserved Reserved Control

0 Element(0)

The RELEASE command is used to release a previously reserved a unit. The RELEASE and RESERVE commands provides the basic mechanism for contention resolution in multiple-initiator systems. It is not an error for an initiator to attempt to release a reservation that is not currently active. In this case, the Changer device shall return Good status without altering any other reservation. The third-party release of the RELEASE command allows an initiator to release a logical unit that was previously reserved using third-party reservation. If the third party (3rdPty) bit is zero, then a third party release option is not requested. If the 3rdPty bit is one, and if the reservation was made using the third-party reservation option by the initiator that is requesting the release for the same SCSI device as specified in the third-party device ID field, then the Changer device shall release the reservation. The Element bit is not supported by the Changer. If the Element bit is one, this command shall be terminated with a CHECK CONDITION status and the sense key shall be set to ILLEGAL REQUEST.

42

3.13 REQUEST SENSE command
Bit

Byte

0 1 2 3 4 5

Table 40 - REQUEST SENSE command 7 6 5 4 3 2 Operation Code(03h) Logical unit number Reserved Reserved Reserved Allocation Length (12h) Control

1

0

The Request Sense command requests that the Changer device transfer sense data to the initiator. The Allocation Length field specifies the length in bytes of sense data that shall be transferred to the initiator. The sense data has eighteen bytes. An Allocation Length of zero that no data shall be transferred. The Sense data shall be available if the previous command was terminated with Check Condition status. The Sense data shall be preserved by the Changer device for the initiator until retrieved by Request Sense command or until the receipt of any other I/O process. The sense data shall be cleaned upon receipt any subsequent I/O process ( including Request Sense). The Sense data format for error code 70h is defined in table 41. A Valid bit of one indicates that the Information field contains valid information. A Valid bit of zero indicates that the information field is not as defined in the International Standard. The Changer device is provided only Error Code 70h (current errors). The Segment Number field contains the number of the current segment descriptor. The Changer device does not support it, so will always return zero to the Initiator. Filemark, EOM, ILI and Information field always set to zero. The Additional Sense Length field indicates the number of additional sense bytes to follows. The Changer device is always set to 0Ah. The Sense Key field are defined in Table 42.

43

Byte

Bit

0 1 2 3 : 6 7 8 : 11 12 13 14 15 16 17

Table 41 - Error codes 70h sense data format 7 6 5 4 3 2 1 Valid Error code(70h) Segment Number(0) Filemark(0) EOM(0) ILI(0) Reserved Sense Key (MSB) Information

0

(LSB) Additional Sense Length(0Ah) (MSB) Command-specific information (LSB) Additional Sense Code Additional Sense Qualifier Field Replaceable Unit Code(0) Sense-key Specific(0) Sense-key Specific(0)

SKSV(0)

The Command Specific Information field contains information that depends on the command that was executed. The Changer device always set to zero. The Additional Sense Code and Additional Sense Code Qualifier field indicate detailed information related to the error or exception condition reported in the Sense key field. The ASC and the ASCQ are defined as shown in table 43. The Field Replaceable Unit field always set to zero in the Changer device. The Sense Key Specific Valid (SKSV) bit and the Sense key specific field always set to zero in the Changer device. Table 42 - Sense key description Sense Key Description --------------------------0h NO SENSE 1h RECOVERED ERROR 2h NOT READY 4h HARDWARE ERROR 5h ILLEGAL REQUEST 6h UNIT ATTENTION Bh ABORTED COMMAND

44

Table 43 - ASC and ASCQ assignments ASC 00 00 02 04 ASCQ 00 06 00 80 00 01 02 03 05 06 07 08 00 00 00 00 01 02 00 00 01 00 00 00 00 01 00 00 00 01 02 03 00 01 00 00 01 02 00 00 00 00 00 00 0D 0E 8E Description No additional sense information Terminated by Robotics No seek complete A seek has not been completed Logical unit not ready, cause not reportable Logical unit is in process of becoming ready Logical unit not ready, initializing command required Logical unit not ready, manual intervention required Logical unit does not respond to selection No reference position found Multiple peripheral devices selected Logical unit communication failure Logical unit communication time-out Logical unit communication parity error Error log overflow Random positioning error Mechanical positioning error Parameter list length error Synchronous data transfer error Invalid command operation code Logical block address out of range Invalid element address Invalid field in CDB Logical unit not supported Invalid field in parameter list Parameter not supported Parameter value invalid Threshold parameter not supported Not ready to ready transition Import/export element accessed Power-on, Reset or BUS DEVICE RESET message occurred Parameter changed Mode parameters changed Log parameters changed Command sequence error Tagged commands cleared by another initiator Incompatible medium installed Rounded parameter Saving parameters not supported Medium not present Medium destination element full Medium source element empty Medium source element and tray empty

0A 15 1A 1B 20 21 24 25 26

28 28 29 2A

2C 2F 30 37 39 3A 3B

45

ASC 3D 3E 43 44 45 46 47 48 49 4A 4B 4C 4E 53 5A 80

ASCQ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 00 01 01 02 03 04 07 08 09 10 11 12 20 21 22 23 24 25 26 27 28 29 30 31 32 41 42 43

Description Invalid bits in IDENTIFY message Logical unit has not self-configured yet Message error Internal target failure Select / Reselect failure Unsuccessful soft reset SCSI parity error INITIATOR DETECTED ERROR message received Invalid message error Command phase error Data phase error Logical unit failed self-configuration Overlapped commands attempted Media Load / Eject failed Medium removal prevented Operator request or state change input Operator medium removal request Up / down rotary sensor did not work Left slit sensor did not work Right slit sensor did not work Up/down motor did not work Over loaded current in up / down motor Time-out error in up / down operation Upper or bottom limit sensor worked in up/down operation Failed to release tray lock Failed to tray lock The tray lock position is not in the initial position, while up/down operation Time-out error occurred when catcher moved right to left Time-out error occurred when catcher moved left to right Time-out error occurred before catcher stabilized (right to left) Time-out error occurred before catcher stabilized (left to right) Tray rotary sensor did not work (right to left) Tray rotary sensor did not work (left to right) Right catcher position was not detected. Left catcher position was not detected. Failed to move catcher motor from right to left Failed to move catcher motor from left to right No tray NG on magazine sensor Over loaded current in catcher motor Stray disk remains in carrier No disk on tray No tray for Invert

46

ASC ASCQ 80 50 51 52 60 61 62 63 64 65 72 80 81 81 01 02 03 04 05 20 21 22 30 31 32 33 34 35 36 37 38 39 40 41 42 43 B0 B2 C0 FF

Description Failed to eject disk in mail slot Failed to load disk in mail slot Stray disk remains in mail slot Stray disk remains in drive Failed to draw tray Failed to clamp disk on drive Failed to eject disk on drive Failed to take out disk on drive Failed to stop spindle mortor on drive Stray disk remains in printer Time-out error in flip up operation Time-out error in flip down operation Printer error ( Tray jam ) Printer error ( NO CD or clamp error ) Printer error ( Sensor ) Printer error ( Tray loading ) Printer error ( Tray unloading ) Printer error ( NO CD or CD jam ) Printer error ( Waste ink warning ) Printer error ( Ink cartridge check ) Printer error ( Print head carriage ) Printer error ( HP sensor ) Printer error ( Encoder ) Printer error ( Recovery system ) Printer error ( PF motor ) Printer error ( CSF sensor ) Printer error ( Temperature ) Printer error ( Waste ink tank full ) Printer error ( EEPROM ) Printer error ( ROM ) Printer error ( RAM ) Printer error ( Port initialize failed ) Printer error ( Ink sensor ) Printer error ( Printer head trouble or NO head ) Printer error ( Power OFF ) Printer error ( Already loaded ) Printer error ( Printer Busy ) Printer error ( NO disc )

Caution! ... How to detect Ink Empty warning ... Ink cartridge empty warning code is 81h(ASC) and 22h(ASCQ). But whenever ink cartridge becomes empty while in a printing, jukebox SCSI interface does NOT generate unit attention and returns NO SENSE for Request Sense command. You can see this error code in Label Print Element Status which is returned by Read Element Status command. Please check this status sometimes while in a printing.

47

3.14 RESERVE command
Bit

Byte

0 1 2 3 4 5

Table 44 - RESERVE command 7 6 5 4 3 2 Operation Code(16h) Logical unit number 3rdPty 3rd Party ID Reservation Identification (MSB) Extent list length(0)

1

0 Element(0)

(LSB) Control

The RESERVE and RELEASE commands provides the basic mechanism for contention resolution in multiple initiator systems. The RESERVE command is used to reserved units for the use of initiator. This command requests that the entire logical unit be reserved for the exclusive use of the initiator until the reservation is superseded by another valid RESERVE command from the initiator that made the reservation or until the RELEASE command from the same initiator that made the reservation, by a BUS DEVICE RESET message from any initiator, by a hard RESET condition, or by a power off/on cycle. The reservation shall not be granted if the logical unit is reserved by another initiator. It shall be permissible for an initiator to reserve a logical unit that is currently reserved by that initiator. If the logical unit is reserved for another initiator, the Changer device shall respond by returning RESERVATION CONFLICT status. If, after honouring the reservation, any other initiator attempts to perform any command on the reserved logical unit other than an INQUIRY,REQUEST SENSE, ALLOW MEDIUM REMOVAL, RESERVE, or a RELEASE command, then the command shall be rejected with RESERVATION CONFLICT status.

48

If the third party (3rdPty) bit is zero, then a third party reservation is not requested. If the 3rdPty bit is one then the RESERVE command shall reserve the logical unit for the initiator specified in the third-party device ID field. The Changer device shall preserve the reservation unit it is superseded by another valid RESERVE command from the initiator that made the reservation or until it is released by the same initiator, by a BUS DEVICE RESET message from any initiator, or a hard RESET condition. The Changer device shall ignore any attempt to release the reservation made by any other initiator. An initiator that currently has a logical unit reserved may modify the current reservation by issuing another Reserve command to the same logical unit. The superseding reservation shall release the previous reservation if the new reservation request is granted. The current reservation shall not be modified if the new reservation request cannot be granted. The Element bit is not supported by the Changer device. If the Element bit is one, the RESERVE command shall be terminated with Check Condition status.

49

3.15 REZERO UNIT command
Bit

Byte

0 1 2 3 4 5

Table 45 - REZERO UNIT command 7 6 5 4 3 2 Operation Code(01h) Logical unit number Reserved Reset Reserved Reserved Reserved Control

1 Return

0 Immed

The Rezero Unit command cause the logical unit to find the initial position. A reset bit of one indicates that the changer device shall reset the micro-processor in it. In this case, Immed bit must be set to one, and return bit is invalid. A return bit of one indicates that the changer device shall restore all trays and discs in data transfer elements and an import export element to source storage elements. An immediate (Immed) bit of one indicates that status shall be returned as soon as the command has been accepted. An Immed bit of zero indicates that status shall be returned after the operation is completed.

50

3.16 SEND DIAGNOSTIC command
Bit

Byte

0 1 2 3 4 5

Table 46 - SEND DIAGNOSTIC command 7 6 5 4 3 2 1 0 Operation Code(1Dh) Logical unit number PF(0) Reserved SelfTest(1) DevOfl(0) UnitOfl(0) Reserved (MSB) Parameter List Length(0) (LSB) Control

The SEND DIAGNOSTIC command requests the Changer device to perform diagnostic tests on itself. The Changer device only supports selftest. It does not support diagnostics. Therefore, the Selftest bit shall be set to one and the other parameters set to zero. If the selftest successfully passed, the command shall be finished with GOOD STATUS. Other case the command shall be terminated with a Check Condition status and sense key shall be set to Hardware Error. Selftest sequence 1. The changer mechanism check 2. Move a unit of media from the data storage element(0001h) to the data transfer element (CD-ROM drive #1). 3. Move a unit of media from the data transfer element (CD-ROM drive #1) to the data storage element(0001h). These selftest sequence require that the storage element (0001h) has a CD-ROM media, The data transfer element and the medium transport element has to be empty.

51

3.17 TEST UNIT READY command
Bit

Byte

0 1 2 3 4 5

Table 47 - TEST UNIT READY command 7 6 5 4 3 2 Operation Code(00h) Logical unit number Reserved Reserved Reserved Reserved Control

1

0

The Test Unit Ready command provides the means to check if the Changer device is ready. Note that this command is not a request for selftest.

52

3.18 WRITE BUFFER command
Bit

Byte

0 1 2 3 4 5

Table 48 - WRITE BUFFER command 7 6 5 4 3 2 Operation Code(3Bh) Logical unit number Reserved Buffer ID (MSB) Buffer Offset

1 Mode(010b)

0

(LSB) 6 7 8 (LSB) 9 Control (MSB) Parameter List Length

The Write Buffer command is used in conjunction with the Read Buffer command as a diagnostic function for testing the Changer device memory and SCSI bus integrity. The Mode field is defined as section 3.10 (Read Buffer command). The Changer device is supported only write data mode (010b). If the initiator attempts to send the Write Buffer with mode except data mode (010b), the Changer device shall terminate the Write Buffer command with a Check Condition status. The Buffer ID field is defined in table 49. Table 49 - Buffer ID field Buffer ID Description ----------------------1h CPU RAM 2h-FFh Reserved The Buffer Offset field contains the byte offset within the specified buffer. In the case of the buffer ID sets CPU RAM (1h). It specifies the RAM address in this field. The Parameter List Length field specifies the maximum number of bytes that shall be transferred during the DATA OUT phase to be stored in specified buffer beginning at the buffer offset. The initiator should attempt to ensure that the parameter list length plus the buffer offset does not exceed the capacity of the specified buffer.

53

3.19 JVC INITIALIZE ELEMENT STATUS command
Bit

Byte

0 1 2 3 4 5 6 7 8 9

Table 50 - JVC INITIALIZE ELEMENT STATUS command 7 6 5 4 3 2 1 0 Operation Code(E7h) Logical unit number Reserved Form (MSB) Starting Element Address (LSB) (MSB) Last Element Address (LSB) Reserved Reserved Reserved Control

The JVC INITIALIZE ELEMENT STATUS command will cause the medium changer to check specified element that is defined. The intent of this command is to enable the initiator to get a quick response from a following Read Element Status command. It may be useful to issue this command after a power failure, or if medium was been changed by an operator, or if configuration has been changed. The Form field is defined the range of elements to initialize. Table 51 - Form field Form Description ---------------------------------------------00b All elements for Changer device 01b Reserved 10b The element that specified between the starting element address field and the last element address is initialized. 11b Reserved The starting element address field and the last element address field are valid, if the Form field set to 10b. This status information is transferred to the initiator by receiving Read Element Status Command. This command should be carried out right after power on or when medium is exchanged.

54

4. Parameters 4.1 Log Parameters
Each Log Page with a four-byte page header followed by zero or more variable-length log parameters defined for that pages.
Byte Bit

7

6

0 1 2 3

Reserved (MSB)

Table 52 - Log page 5 4 3 2 Page Header Page Code Reserved

1

0

Page Length (n-3) (LSB)

4 X+3 n-Y+1 n

Log Parameter(s) Log Parameter(First) (Length X) Log Parameter(Last) (Length Y)

4.1.1 Page Header
The Page Code field identifies which log page is being transferred. The Page Code is defined as follows. Table 53 - Log page codes Page Description -----------------------------------00h Supported Log Pages 06h Non-Medium Error Page 07h Last n Error Event List Page 30h Changer Counter Page The Page Length field specifies the length in bytes of the following log parameters.

55

4.1.2 Log Parameter(s)
The Log parameter is defined as follows.
Byte Bit

0 1 2 3 4 n

7 (MSB)

6

Table 54 - Log Parameter(s) 5 4 3

2

1

0

Parameter code (LSB) LP

DU

DS

TSD(0)

ETC TMC Parameter Length (n-3) Parameter Value

Reserved

Each log parameter begins with a four-byte parameter header followed by one or more bytes of parameter value data. The parameter code field identifies the log parameter is being transferred for that log page. The DU, DS, TSD, ETC, TMC, and LP fields are collectively referred to as the parameter control byte. These fields are described below. The Disable Update (DU) bit of zero indicates that the CD-ROM drive shall update the log parameter value to reflect all events that should be noted by that parameter. The DU bit of one indicates that the target shall not update the log parameter value except in response to a LOG SELECT command that specifies a new value for the parameter. The Disable Save (DS) bit of zero indicates that the changer device supports saving for that log parameter. The changer device shall save the current cumulative or the current threshold parameter value in response to LOG SELECT or LOG SENSE command with an SP bit of one. A DS bit of one indicates that the changer device does not support saving that log parameter. The changer device does not support it, and should be set to one. The Target Save Disable (TSD) bit of zero indicates that the target provides a target-defined method for saving log parameters. This implicit saving operation shall be done frequently enough to insure that the cumulative parameter values retain statistical significance. A TSD bit of one indicates that either the target does not provide a target-defined method for saving log parameters or the target-defined method has been disabled by the initiator. The Changer device should be set to zero.

56

The Enable comparison cumulative comparison and an ETC

Threshold Comparison (ETC) bit of zero indicates that a to the threshold value is not performed whenever the value is updated. An ETC bit of zero indicates that a is not performed. The changer device is not supported this , bit is always zero. Criteria (TMC) field defined the basis for cumulative and threshold values. The TMC field is ETC bit is one. The changer device is always set to )

The Threshold Met comparison of the valid only if the zero( not support

The List Parameter (LP) bit of zero indicates that the log parameter is the data counter. An LP bit of one indicates that the parameter is a list parameter. List parameters are not counters and thus the ETC and TMC fields shall be set to zero. A list parameter is a string of ASCII graphic codes(i.e. code values 20h through 7Eh).

57

4.1.3 Pages 4.1.3.1 Supported Log Pages
Bit

Byte

0 1 2 3 4 5 6 7

7 6 Reserved (MSB)

Table 55 - Supported Log Pages 5 4 3 2 Page code(00h) Reserved

1

0

Page length(0004h) (LSB) Supported Page List (00h) (06h) (07h) (30h)

The Supported Page List field shall contain a list of all log page codes implemented by the Changer device in ascending order beginning with page code 00h.

58

4.1.3.2 Non-Medium Error Page
Bit

Byte

0 1 2 3 4 5 6 7 8 9

Table 56 - Non-Medium Error Page 7 6 5 4 3 2 Reserved Page code(06h) Reserved (MSB) Page length(0006h)

1

0

(LSB) Supported Page List(0000h) DU(0) (MSB) Non-Medium Error Count (LSB)
This page provides for summing the occurrences of recoverable error events other then write, read or verify failures. The Parameter Code field specifies the parameter value. The follows Parameter Code are supported by the Changer device. Table 57 - Parameter code description Parameter Code Description -----------------------------------------000h Non-Medium Error Count

DS(1)

TSD(0) ETC(0) TMC(0) Parameter Length (02h)

Reserved

LP(0)

59

4.1.3.3 Error Event Page
Bit

Byte

0 1 2 3 4 5 6 7 8 9 : : : 23 24 25 26 27 28 : : : 45 : : : : : : : : : 171

7 6 Reserved

Table 58 - Error Event Page 5 4 3 2 Page code(07h) Reserved Page length(00A8h) Parameter code(8000h) (Changer error log) TSD(0) ETC(0) TMC(00) Parameter Length (10h)

1

0

DU(0) (MSB)

DS(1)

Reserved

LP(1)

Changer Error Log (1) (LSB) Changer Error Log(2) - (8) (MSB) Parameter Code (SCSI command Log) (8001h) (LSB) LP(1)

DU(0) (MSB)

DS(1)

TSD(0)

ETC(0) TMC(00) Page length(90h)

Reserved

SCSI Command Log(1) (LSB) : : : : : (MSB) SCSI Command Log(8) (LSB)

60

This log page provides for number of error-event records using the list parameter format of the log page. The Parameter code field defined the classification of error-event records. Table 59 - Parameter code field Parameter code Error-event records class --------------------------------------------0000 - 7FFFh Reserved 8000h Changer error log 8001h SCSI command log 8003 - FFFFh Reserved The Changer error log field specified as follow. This field keeps latest eight (8) error-events in order.
Byte Bit

7

6

0 1

Table 60 - Changer Error Log 5 4 3 Reserved Changer Error Code

2

1

0

Error code indicated as follows Error Code Description 01 Up / down rotary sensor did not work 02 Left slit sensor did not work 03 Right slit sensor did not work 04 Up/down motor did not work 07 Over loaded current in up / down motor 08 Time up error in up / down operation 09 Upper or bottom limit sensor worked in up /down operation 10 Failed to release tray lock 11 Failed to tray lock 12 The tray lock position is not in the initial position, while up/down operation 20 21 22 23 24 25 26 27 28 Time-out error occurred when catcher moved right to left Time-out error occurred when catcher moved left to right Time-out error occurred before catcher stabilized (right to left) Time-out error occurred before catcher stabilized (left to right) Tray rotary sensor did not work (right to left) Tray rotary sensor did not work (left to right) Right catcher position was not detected. Left catcher position was not detected. Failed to move catcher motor from right to left

61

Error Code 29 30 31 32 41 42 50 51 52 60 61 62 63

Description Failed to move catcher motor from left to right No tray NG on magazine sensor Over loaded current in catcher motor Stray disk remains in carrier No disk on tray Failed to eject disk in mail slot Failed to load disk in mail slot Strayed disk remains in mail slot Stray disk remains in drive Failed to draw tray Failed to clamp disk on drive Failed to eject disk on drive

The SCSI Command log specified as follows. This field keeps latest eight (8) SCSI command log in order. The SCSI command fields indicates SCSI command CBD. The Status field indicates status byte when the command be done. The Sense Key, Additional Sense Code, Additional Sense Code Qualifier fields are valid only the Check Condition status in Status field.
Byte Bit

7

6

0 1 2 : : : 13 14 15 16 17

Table 61 - SCSI Command Log 5 4 3 Initiator ID Reserved

2

1

0

(MSB) SCSI Command (LSB) Status Sense Key Additional Sense Code Additional Sense Code Qualifier

62

4.1.3.4 Changer Counter Page
Bit

Byte

0 1 2 3 4 5 6 7 8 9 10 11

7 6 Reserved

Table 62 - Changer Counter Page 5 4 3 2 Page code(30h) Reserved Page length(0008h) Parameter code

1

0

DU(0) (MSB)

DS(1)

TSD(0) ETC(0) TMC(00) Parameter Length (04h)

Reserved

LP(0)

Parameter value (LSB)

This log page provides for recording the number of event. The parameter code field defines the event counter classification. Table 63 - parameter code Parameter code Event counter -------------------------------------0000h Number of media change 0001h - FFFFh Reserved The parameter value field are event counter that defined in the parameter code field.

63

4.2 Mode Parameter
The Mode The mode followed variable
Byte Bit

Parameter List shown as follows. parameter list shown in table 64 contains a header, by zero or more block descriptors, followed by zero or more length pages.

7

6

0- 3 4 - 11 12 - n

Table 64 - Mode Parameter List 5 4 3 Mode Parameter Header Block Descriptor (0) Page(s)

2

1

0

4.2.1 Mode Parameter
The Mode Parameter Header has four-byte. The Mode Parameter Header is defined as follows.
Byte Bit

7

6

0 1 2 3

Table 65 - Mode Parameter Header 5 4 3 2 Mode Data Length Medium Type (00) Device Specific Parameter Block Descriptor Length

1

0

The Mode Data Length field specifies the length in bytes of following data that as available to be transferred. The Mode Data Length does not include itself. Medium Type field and Device Specific Parameter fields are always set to 00h. The Changer device drive does not supported these fields. The Block Descriptor Length field specifies the length in bytes of all the block descriptors. The Block Descriptor Length of zero that no block descriptors are included in the Mode Parameter List. If this field set to other value except zero, the Changer device shall return a Check Condition status.

64

4.2.2 Pages
The mode page format is defined as follows.
Byte Bit

0 1 2-n

7 PS(0)

Table 66 - Mode Page format 6 5 4 3 2 Reserved Page Code Page Length(n-1) Page Parameter

1

0

The Parameters Savable (PS) bit is only used with the Mode Sense command. This bit is reserved with the Mode Select command. A PS bit of zero indicates that the Changer device does not save the page. The PS bit is always zero. The Page Code is defined as follows. Table 67 - Page code Page Code (HEX) Description --------------------------------------------------1Dh Element Address Assignment Page 1Eh Transport Geometry Paramaters Page 1Fh Device Capabilities Page The Page Length f