ATA Optional commands

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
XCHG
Member
Member
Posts: 416
Joined: Sat Nov 25, 2006 3:55 am
Location: Wisconsin
Contact:

ATA Optional commands

Post 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.
On the field with sword and shield amidst the din of dying of men's wails. War is waged and the battle will rage until only the righteous prevails.
xsix
Member
Member
Posts: 59
Joined: Tue Oct 24, 2006 10:52 am

Post 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
User avatar
XCHG
Member
Member
Posts: 416
Joined: Sat Nov 25, 2006 3:55 am
Location: Wisconsin
Contact:

Post by XCHG »

xsix,

That wouldn't work with ATA-1 drives, would it?
On the field with sword and shield amidst the din of dying of men's wails. War is waged and the battle will rage until only the righteous prevails.
xsix
Member
Member
Posts: 59
Joined: Tue Oct 24, 2006 10:52 am

Post 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 =)
Post Reply