MultiDrive – free backup, clone & wipe disk utility from Atola Technology

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Win32 + C +RS232
PostPosted: October 8th, 2009, 2:49 
Offline

Joined: August 19th, 2009, 2:24
Posts: 7
Location: India
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?


Top
 Profile  
 
 Post subject: Re: Win32 + C +RS232
PostPosted: October 8th, 2009, 3:11 
Offline

Joined: October 19th, 2006, 11:56
Posts: 217
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.

_________________
I just hate spammers...It was a Spammer, who ruined my life!


Top
 Profile  
 
 Post subject: Re: Win32 + C +RS232
PostPosted: October 8th, 2009, 4:27 
Offline

Joined: July 18th, 2006, 3:05
Posts: 7476
Location: ITALY
ADMIN !!! ADMIN !!! :evil: :mrgreen:


Top
 Profile  
 
 Post subject: Re: Win32 + C +RS232
PostPosted: October 8th, 2009, 5:18 
Offline

Joined: August 19th, 2009, 2:24
Posts: 7
Location: India
Oks!

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


Top
 Profile  
 
 Post subject: Re: Win32 + C +RS232
PostPosted: October 9th, 2009, 3:37 
Offline

Joined: October 19th, 2006, 11:56
Posts: 217
He who doesn't READ the forum, doesn't deserve to get the help too.

_________________
I just hate spammers...It was a Spammer, who ruined my life!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: Google [Bot], napalm_atx and 81 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group