Switch to full style
Data recovery and disk repair questions and discussions related to old-fashioned SATA, SAS, SCSI, IDE, MFM hard drives - any type of storage device that has moving parts
Post a reply

Win32 + C +RS232

October 8th, 2009, 2:49

Hello guys!,

I am writing a code to communicate hard drive with comp using serial port
I am sending characters like '.','!','~' to port which in turn sends to hard drive buffer and hard drive sends corresponding output to port as response.

Now, I want to send some advance commands like "/1" to port but it is not responding me as expected.

I doubt that is there any issue related to data type or such
or Ascii-Unicode?

Re: Win32 + C +RS232

October 8th, 2009, 3:11

You wrote:
chaitanya wrote:Hello guys!,

I am writing a code to communicate hard drive with comp using serial port
I am sending characters like '.','!','~' to port which in turn sends to hard drive buffer and hard drive sends corresponding output to port as response.

Now, I want to send some advance commands like "/1" to port but it is not responding me as expected.

I doubt that is there any issue related to data type or such
or Ascii-Unicode?
And in an another topic:(how-change-diagnostic-level-program-t13580.html)

aditya.alate wrote:I am currently working on some kind of low level HDD diag and recovery tool project.
I have built RS232-TTL converter and connected HDD using it. Now Trying to build a GUI tool to communicate to HDD and do requested things.

Till Now I am successful in writing C code for sending single byte diagnostic commands to Seagate SATA drive. BUt when I am sending a multibyte command like "/1", it is giving me output like "Input Command Error".

I am using BYTE array to scan user input and passing char * pointer to that array to my function which writes that string to COM port i.e HDD.

Note : All diagnostic commands are working properly while connected with HyperTerminal or Putty.

Is anybody having any idea, suggestion for this.

-ADITYA

You don't need to bump your topics by creating multiple sockpuppets. Those multiple ID's are not going to help you, especially in getting decent answers.

That falls under spamming.

Re: Win32 + C +RS232

October 8th, 2009, 4:27

ADMIN !!! ADMIN !!! :evil: :mrgreen:

Re: Win32 + C +RS232

October 8th, 2009, 5:18

Oks!

we both are working in same team
i was not aware of his post so admin can remove my thread

Re: Win32 + C +RS232

October 9th, 2009, 3:37

He who doesn't READ the forum, doesn't deserve to get the help too.
Post a reply