himd_device_control
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| himd_device_control [2010/05/21 16:13] – megadiscman | himd_device_control [2010/06/27 10:20] (current) – Fix time bit numbers megadiscman | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| The device control command is 12 bytes (0x0C), and depending on subcommand, intiates a data transfer from or to the device. The layout of the command block is | The device control command is 12 bytes (0x0C), and depending on subcommand, intiates a data transfer from or to the device. The layout of the command block is | ||
| - | Byte 00: Command (0xC2) | + | |
| - | Byte 01: Unknown, sent as zero (maybe LUN?) | + | Byte 01: Unknown, sent as zero (maybe LUN?) |
| - | Byte 02: For some subcommands: | + | Byte 02: For some subcommands: |
| - | Byte 03: subcommand | + | Byte 03: subcommand |
| - | Byte 04: For some subcommands: | + | Byte 04: For some subcommands: |
| - | Byte 05: For the switch interface command: Delay | + | Byte 05: For the switch interface command: Delay |
| - | Byte 06: unused, sent as zero | + | Byte 06: unused, sent as zero |
| - | Byte 07: Set explicitly to zero for Get Leaf ID - Some Index? | + | Byte 07: Set explicitly to zero for Get Leaf ID - Some Index? |
| - | Byte 08: Byte count of data transfer | + | Byte 08: Byte count of data transfer |
| - | Bytes 09-0B: unused | + | Bytes 09-0B: unused |
| === Subcommand 00: Erase HiMD === | === Subcommand 00: Erase HiMD === | ||
| * Application ID: 0 | * Application ID: 0 | ||
| * Used fields: flags. | * Used fields: flags. | ||
| - | * Bit 0: IMMED (" | + | * Bit 0: IMMED (" |
| * Bit 1: FUA (" | * Bit 1: FUA (" | ||
| - | **Note:** Seems to work only with Standard MD media. | + | |
| + | This command completely blanks the medium. This is not possible | ||
| === Subcommand 01: Format HiMD === | === Subcommand 01: Format HiMD === | ||
| * Application ID: 0 | * Application ID: 0 | ||
| * Used fields: flags. | * Used fields: flags. | ||
| - | * Bit 0: IMMED (" | + | * Bit 0: IMMED (" |
| * Bit 1: FUA (" | * Bit 1: FUA (" | ||
| - | * Bit 2: NOFS (Don't generate FAT FS?) | + | * Bit 2: NOFS (Don't generate FAT FS? - must be cleared on RH-1) |
| - | **Note:** Maybe works with Hi-MD 1GB media, too. | + | |
| + | This command just reinitializes the Hi-MD data structures on the Medium, but it doesn' | ||
| === Subcommand 0E: Begin ICV Transaction === | === Subcommand 0E: Begin ICV Transaction === | ||
| Line 42: | Line 44: | ||
| === Subcommand 11: Get Leaf ID === | === Subcommand 11: Get Leaf ID === | ||
| === Subcommand 20: Load Audio TOC === | === Subcommand 20: Load Audio TOC === | ||
| + | * Application ID: 1 or 2 | ||
| + | * Used fields: none | ||
| + | |||
| === Subcommand 21: Pause Audio === | === Subcommand 21: Pause Audio === | ||
| + | * Application ID: 1 or 2 | ||
| + | * Used fields: none | ||
| + | |||
| === Subcommand 22: Play Audio === | === Subcommand 22: Play Audio === | ||
| + | * Application ID: 1 or 2 | ||
| + | * Used fields: none | ||
| + | |||
| === Subcommand 23: Scan Audio === | === Subcommand 23: Scan Audio === | ||
| + | * Application ID: 1 or 2 | ||
| + | * Used fields: flags. | ||
| + | * Bit 7: unknown function | ||
| + | |||
| === Subcommand 24: Search Audio === | === Subcommand 24: Search Audio === | ||
| === Subcommand 25: Seek Audio === | === Subcommand 25: Seek Audio === | ||
| Line 51: | Line 66: | ||
| === Subcommand 41: Read Zone List === | === Subcommand 41: Read Zone List === | ||
| === Subcommand 50: Get Time === | === Subcommand 50: Get Time === | ||
| + | * Application ID: 0 | ||
| + | * Used fields: data size, should be 7 | ||
| + | Reads a 7-byte data packet from the Hi-MD unit with the following layout: | ||
| + | |||
| + | Byte 00: Flags. Bit 7 = Ex; Bit 6 = Ef; Bit 5 = WP (write protect?) | ||
| + | Byte 01: second | ||
| + | Byte 02: minute | ||
| + | Byte 03: hour | ||
| + | Byte 04: day | ||
| + | Byte 05: month | ||
| + | Byte 06: year | ||
| + | |||
| === Subcommand 60: Read Audio Status === | === Subcommand 60: Read Audio Status === | ||
| === Subcommand 90: Set Time === | === Subcommand 90: Set Time === | ||
| === Subcommand A0: Play audio parts === | === Subcommand A0: Play audio parts === | ||
himd_device_control.1274458424.txt.gz · Last modified: 2010/05/21 16:13 by megadiscman
