From: Fayyaaz A. <fay...@ue...> - 2006-08-21 06:44:29
|
hello I am using some of the code that I found on your site. I am just trying to develope a qualification tool that I can use prior to procurring any Hdd. I am just having a little problem and I was hoping I could get some advice. What I am trying to do is stress the hdd by writing 3 data streams and read back 2 streams simultaneously and I want to monitor temperature changes with and without the fan on. i have done this code and it works fine. Thereaftre I want to place the Hdd in Idle mode and then Standby mode and then cycle back to the first test. I am however having a problem putting the Hdd into idle mode. I am using the following piece of code bool SMART_Idle(void) { return (ide_simple_command(IDE_SET_IDLE,0)); /*IDE_SET_IDLE = 0xE1*/ } ########## BOOLEAN ide_simple_command(byte command, byte value) /* __fn__ */ { DDRIVE *pdr; PIDE_CONTROLLER pc; BOOLEAN fres; rtfs_port_claim_mutex(prtfs_cfg->ide_semaphore); pdr = pc_drno_to_drive_struct(2); if (!pdr) { rtfs_port_release_mutex(prtfs_cfg->ide_semaphore); return(-1); } pc = &controller_s[pdr->controller_number]; ide_clear_voregs(pc); /* Clear virtual output registers */ pc->vo_feature = 0; pc->vo_sector_count = value; pc->vo_sector_number = value; pc->vo_command = command; pc->timer = (word)TIMEOUT_TYPICAL; /* Call the processing routine */ fres = ide_do_command(pc); rtfs_port_release_mutex(prtfs_cfg->ide_semaphore); return(fres); } using the exact pice of code i can place the Hdd (maxtor, diamond max10, model : 6L250R0 ->250Gb) I am able to place the Hdd in either every other mode except idle. i use the "check power mode" command to verify the mode. I have also tried a Seagate Hdd and experienec the same problem whereby I am unable to place the Hdd in Idle mode. can anyone offer some advice? Fayyaaz Akoob E-Mail Disclaimer : http://www.altron.co.za/email.asp Should you have any questions regarding this e-mail legal notice please contact us on 1. Telephone number : +27315082800 2. E-mail address : in...@ue... |