AlaudaProject : ControlCommandReference

HomePage :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register

Control Command Reference


This page details the known control commands that the Alauda responds to.

NOTE: This will be incomplete, especially as I'm mainly focusing on XD media right now.

GET_XD_MEDIA_STATUS

RequestType: 0xC0 (Read from Device)
Request: 0x08
Value: 0
Index: 1
Length: 2

This command examines the current media status of the XD port. Two bytes are returned:

Byte 0:
All bits shall be cleared when the port is busy processing media.
Bit 7 shall be set when no media is detected. This should be polled for change.
Bits 2,3,4 shall be set when media is detected since the last confirmation.

Byte 1:
Bit 0: Door status (0=open, 1=closed)

CONFIRM_XD_MEDIA_DETECTION

RequestType: 0x40 (Write to Device)
Request: 0x0A
Value: 0
Index: 1
Length: 0

This command confirms that the host has registered the presence of new media. Bit 3 of the media status shall be cleared when this command is received.

GET_XD_MEDIA_SIGNATURE

RequestType: 0xC0 (Read from Device)
Request: 0x86
Value: 0
Index: 0
Length: 4

This command returns 4 bytes of information about the current media.
Byte 0: Manufacturer ID
Byte 1: Device type (an ID relating to capacity, etc.)
Byte 2: A value of 0xA5 signals availability of a 128-bit ID
Byte 3: A value of 0xC0 signals availability of another read ID command.

This is just like SmartMedia/NAND-Flash. I found this information in sddr09.c.

Olympus 256mb card: 98 71 A5 C0
Olympus 16mb card: 98 73 A5 BA

GET_SM_MEDIA_STATUS

RequestType: 0xC0 (Read from Device)
Request: 0x98
Value: 0
Index: 1
Length: 2

This command examines the current media status of the SmartMedia port. Two bytes are returned.

Byte 0:
All bits shall be cleared when the port is busy processing media.
Bit 6 shall be set when no media is detected. This should be polled for change.
Bits 2,3,4 shall be set when media is detected since the last confirmation.
Bit 4 shall be set when the device is ready for action.

Byte 1:
Bit 0: Door status (0=open, 1=closed)

CONFIRM_SM_MEDIA_DETECTION

RequestType: 0x40 (Write to Device)
Request: 0x9A
Value: 0
Index: 1
Length: 0

This command confirms that the host has registered the presence of new media. Bit 3 of the media status shall be cleared when this command is received.

GET_SM_MEDIA_SIGNATURE

RequestType: 0xC0 (Read from Device)
Request: 0x96
Value: 0
Index: 0
Length: 4

This command returns 4 bytes of information about the current media.
Byte 0: Manufacturer ID
Byte 1: Device type (an ID relating to capacity, etc.)
Byte 2: A value of 0xA5 signals availability of a 128-bit ID
Byte 3: A value of 0xC0 signals availability of another read ID command.

32mb Fuji(?) card: EC 75 A5 BD

There are no comments on this page. [Add comment]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by Wikka Wakka Wiki 1.1.6.1
Page was generated in 0.0460 seconds