• Advertisement
Sign in to follow this  

Ports programming

This topic is 4725 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
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
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
Sign in to follow this  

  • Advertisement