IDE/ATA/ATA-2

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
Christopher

IDE/ATA/ATA-2

Post by Christopher »

Hi! I have written a "get serie and model-nr from a IDE device"-program, that works (halelulia!). When I was looking around in a command-list for IDE-devices I, found this command:
Eject Media. I thoungt "Wow! I must test that!". I then copyed my old program and changed the command and deleted the "get serie and model-nr"-thingy. Set the device to my CD. Assembled the file and run it. But my PC just hanged. Then I looked in to that command-list again and saw a thing in the corner. It stood "ATA-2". Is't that why I can't eject the media? On some other commands, for example the identify command it stood: "IDE". Do I have to change the routines 'cos the ATA-2-thingy? And how??

Best Regards
// Christopher Vigren
Chris Giese

Re:IDE/ATA/ATA-2

Post by Chris Giese »

Your CD is probably ATAPI. It ignores the ATA commands because it uses a packet command instead to open or close the door.
Christopher

Re:IDE/ATA/ATA-2

Post by Christopher »

Do you, or anyone else have any good ATAPI-information? How to send command, etc..
Can I read sectors and that stuff with ATAPI?

Best Regards
// Christopher Vigren
K.J.

Re:IDE/ATA/ATA-2

Post by K.J. »

Post Reply