![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Apr 2005
Posts: 1
Rep Power: 0
![]() |
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! |
|
|
|
|
|
#2 |
|
Expert Programmer
|
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
![]() |
|
|
|
|
|
#3 |
|
Expert Programmer
|
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 |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|