Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 4th, 2005, 9:23 PM   #1
Europa2010AD
Newbie
 
Join Date: Apr 2005
Posts: 1
Rep Power: 0 Europa2010AD is on a distinguished road
Script to output HDD data to serial port

Hi,

I am just wondering if someone could teach me how to write a script in C so that I could:

1) Check and read files contained in harddrive.
2) Output desired files to the serial port of the computer.

From what I have heard, this should be a very simple script. However it is rather challenging for someone like me who has very limited programming knowledge (I can only do simple for/while loops in C++). Your help is very much appreciated!
Europa2010AD is offline   Reply With Quote
Old Apr 4th, 2005, 10:31 PM   #2
thechristelegacy
Expert Programmer
 
thechristelegacy's Avatar
 
Join Date: Jul 2004
Location: Somerset, Pa
Posts: 707
Rep Power: 5 thechristelegacy is on a distinguished road
Send a message via AIM to thechristelegacy Send a message via MSN to thechristelegacy
Give her a try first. It won't take too much reading to do what you ask, and if you still have no clue, come on back
thechristelegacy is offline   Reply With Quote
Old Apr 6th, 2005, 1:37 PM   #3
kurifu
Expert Programmer
 
kurifu's Avatar
 
Join Date: Jul 2004
Location: Halifax, Nova Scotia (Canada)
Posts: 784
Rep Power: 5 kurifu is on a distinguished road
Send a message via ICQ to kurifu Send a message via MSN to kurifu
Ummm... this is not a simple task by any means, assuming you are running an OS which will even give you direct access to the serial port you are going to have to figure out how to get low level access to the hard drive to send an image (unless you will send file by file).

The trick to using a serial port is figuring out what memory address it is using, access that memory and start read and writing binary values which hold both the data you are sending as well as managing to CTS and CTR lines on the serial port as well.

You will need to use those lines to make sure you are properly maintaining communications with the computer/device you are communication with, you might want to pick up a tutorial or two on the workings of an RS232 serial driver.
__________________
Clifford Matthew Roche <geek@cliffordroche.com>
Web Hosting: http://www.crd-hosting.com
Consulting: http://www.crdev-consulting.com
kurifu is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 10:53 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC