View Single Post
Old Feb 24th, 2005, 3:14 PM   #6
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
Anything above Windows 98 and you will need to look into the MS DDSK to create an actualy driver to accomplish this task since APIs after Win98 will not allow you to gain direct access to device memory like that.

From within a console the process is very simple, you are simply just reading and writing memory locations to get the data you are looking for, since serial connections have very limited abilities you will need to modulate your data and will also need to set up a series of timers to make sure you are reading the data streams correctly (or you could use your ready-to-send ready-to-receive lines much like the TI86 calculator does to signal when the next bit is to be read/written which though slower eliminates the need to install high precision timers to monitor the data).

There are several source demos available on the internet to demonstrate this purpose, I know because I did it once (years ago so I do not remember now specifically how to do it), look up parallel port driver or serial port drivers... they both accomplish the same task through the same means, just on different memory locations.
__________________
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