Sign in to follow this  
DMINATOR

Ports programming

Recommended Posts

DMINATOR    240
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.

Share this post


Link to post
Share on other sites
Dead Eye    152
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.

Share this post


Link to post
Share on other sites
DMINATOR    240
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.

Share this post


Link to post
Share on other sites
Sijmen    231
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?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this