-
- Common part of return data
- The first data and the second of return data are always 0xfc and 0xff.
- (Their command data are always two 0xffs.)
- The ID number is the same of the device itself.
- The 4th data is called as 'command status'.
- Command status
- Command status is for indicating device operation against received command.
- These lower three bits(D2,D1,D0) mean these below.
-
- <cmd status : 1>(D2=0,D1=0,D0=1)
- It shows that the command is not implemented.(with no function against command)
-
- <cmd status : 3>(D2=0,D1=1,D0=1)
- It shows that the command is accepted and performed.
- (Even if it is already in the state of command performed before receiving command,
- it regards the operation of the command as performed, and the device returns
the
- status data as 3. (But some device return the status data as 5 at some command.))
-
- <cmd status : 4>(D2=1,D1=0,D0=0)
- It shows that the command is accepted and currently performing.
- (It shows that the command is not performed completely at present time.)
- So if it is received this value, it needs to wait for the time.
- How long to wait is until D6 bit of this data being turned to zero.
- More precisely, when this value is 4, D6 bit is always one.
- And in this condition, it is possible to transmit the kind of command that is not operate device.
- And it needs only checking D6 bit until it turns zero.
- If D6 bit turns to zero, then next operation is possible to perform.
- (But, this D6 bit is not accurate in some device. In this case, it needs to wait for a proper time and perform next operation.)
-
- <cmd status : 5>(D2=1,D1=0,D0=1)
- It shows that the command is not possible to perform as not in condition.
- In this case, it may be to display a error message to user, or to recover the operation properly.
-
|