Ports programming

Started by
2 comments, last by Sijmen 19 years, 2 months ago
Hello My friend intends to learn how programming for ports works, and he actually created device for lpt port, but the only thing he is missing, is the way to program it - driver ? My search is to find - code examples, online materials,documents, for programming ports - LPT,COM,USB. Any help would be grately appretiated.
Advertisement
Create a device? If you're under Windows, you should be able
to control the LPT and COM ports with the Win32 Serial
Communication functions. It's been a while since I've used
them, but that's what I used to control a flow-injection
analysis pump through a COM port way back when. I'm sure
they have updated their api to handle USB now too, but I'd
have to check. Check out the SC functions on MSDN.

EDIT:
Ah they're not called Serial Communction functions anymore.
It's under MSDN->Platform SDK->Device I/O Communications Resources.
Quote:Original post by Dead Eye
Create a device? If you're under Windows, you should be able
to control the LPT and COM ports with the Win32 Serial
Communication functions. It's been a while since I've used
them, but that's what I used to control a flow-injection
analysis pump through a COM port way back when. I'm sure
they have updated their api to handle USB now too, but I'd
have to check. Check out the SC functions on MSDN.

EDIT:
Ah they're not called Serial Communction functions anymore.
It's under MSDN->Platform SDK->Device I/O Communications Resources.


Tnx I am going to look at it closer.
Are these libraries available for the .NET platform, too, by any chance? And is I'd like to experiment with it, what can you recommend for getting started?

This topic is closed to new replies.

Advertisement