Page 1 of 1

ATA Optional commands

Posted: Sun May 27, 2007 1:02 am
by XCHG
Is there a way to determine if an optional command is supported on the selected ATA interface? For example, how can I make sure if the Sleep command is supported on my HDD?

I'd appreciate it if somebody could help me with this.

Posted: Sun May 27, 2007 2:30 am
by xsix
There is Identify Device command which returns a lot of information (512bytes). There are Power Management bit, so it means that if PM is present, sleep function should work

Posted: Sun May 27, 2007 7:07 am
by XCHG
xsix,

That wouldn't work with ATA-1 drives, would it?

Posted: Sun May 27, 2007 10:20 am
by xsix
i don't know, but it should. Here is the code for implementing this command and getting data back http://www.geocities.com/siliconvalley/2072/atapi.htm . Check out on your old ATA-1 drive, if you don't own one, read, read and one more time, read =)