does one exsist that helps communicate with the usb and/or serial port?
if so where can it be found?
thanks
Printable View
does one exsist that helps communicate with the usb and/or serial port?
if so where can it be found?
thanks
Which OS/Compiler?
microsoft visual studio.net
or
dev c++ for windows or gcc or linux (but im using cygwin so i dunno if its a TRUE linux evniornment)
The serial port isn't too hard. I don't have a reference at-hand, but as I recall, with Windows, you can open the port as a file. Try searching the board. There was a post about this awhile back. Any of the Windows "beyond" Win98 will block direct user-mode access to hardware addresses. So, I think opening the port as a file gets-around this.
USB is another story. You have to write a driver, and this is advanced shtuff. I've never done it. (Again for Windows) You have to get the DDK (Driver Development Kit) and use the compiler & libraries that come with the DDK to write a kernel mode driver.
There is a good introductory article about USB drivers in the current issue of Dr.Dobbs Journal. (That's NOT a link to the article... it's not online free. :( )
There is also a good book on Windows Drivers by Walter Oney.
[EDIT]-
BeyondLogic.org has lots of information about interfacing.
There's an awsome C++ wrapper class for serial I/O under windows right here.
gg
i shall try thatQuote:
Originally posted by Codeplug
There's an awsome C++ wrapper class for serial I/O under windows right here.
gg
thank you all for ur help