Tech Search:  Adv  More...
-Collapse +Expand
Search Coding Group:

Advanced
-Collapse +Expand
-Collapse +Expand
-Collapse +Expand
-Collapse +Expand
PRESTWOODSTORE
-Collapse +Expand
Prestwood Community
-Collapse +Expand
-Collapse +Expand
Sign in to see list of community groups here.
Prestwood eMagazine
Subscribe to our popular FREE monthly eMagazine.

Enter your email:

  From the November 2009 Issue of Prestwood eMag
 
General .Net Concepts: A Better .NET Serial Port Control
By Adam Lum
9/19/2008
 
Coding Link:
 A recommended resource link from our Coding Resources Links Page

Resource Link:



The SerialPort class introduced in .NET 2.0 is definitely better than writing unmanaged Win32 API calls to access the serial port, but this is much better.

Without going into too much detail, a recent project of mine required that my application interface with an obscure device via RS232 and the serial port.

To do what I needed the device to do required me to manipulate the signal (high/low) on the RTS pin; the .NET framework's SerialPort class didn't really give me a mechanism for doing so.  Wanting to leave writing Win32 API p/invoke calls a last resort, the first result in a Google search for "better .NET serial port" led me to this article on CodeProject which described CommStudio's CommStudio Express which includes a much better serial port (SerialConnection) class which quickly enabled me to get past my little setback an on with the application. Best of all it's free!

I hope this referral link helps you.

Link Contributed By Prestwood staff member Adam Lum:
adamlum
Email Approved! E

Adam Lum is a part time developer for Prestwood Software and participates in this online community when time allows. His day-to-day work is C# coding but his current intrests (right now) are Python with the Django framework and Ruby on Rails.  He has also coded several projects in Java, C++, ASP Classic, and PHP.  His personal blog can be found at adamlum.com.


Comments about "A Better .NET Serial Port Control"

0 Comments.
Would you like to comment? Reply? Ask a question? Say thanks?
Add Comment



 KB Article #101306 Counter
748
Since 9/19/2008
Brought to you by Prestwood I.T. Solutions We hope you are enjoying our knowledge base! We welcome your participation in our open online community. As the caretakers, we pay our staff to moderate, edit, and contribute free content here in an effort to promote our software development company. Keep us in mind if you or your company needs help. Whether you need a single developer or a team, consider Prestwood. We are an American company that keeps jobs in America (no off shoring and no need for H-1B developers). Our hope is that you will put some or all of your development tasks in our hands. We specialize in hourly help (1 hour minimum), custom websites from $2k to $40k, business database applications from $5k to $60k, and enterprise application development starting from $20k. Talented Developer?
If you are a talented developer and would like to work with us, start by filling out our Register for Work form.
 
 10,482 registered community members.   Members Online Now
Mike Prestwood
If you have any questions,
please Contact Us.
--Mike Prestwood
Copyright 1995-2010 Prestwood I.T. Solutions.
Made in the U.S.A.
No H1-B. No offshoring.
A CA corporation.
CA CMAS certified.
Certified CA small business.
www.americanitworkforce.com is part of the Prestwood Family of Websites.
Development by Mike Prestwood (ASP, ASP.Net, and Delphi to MS-SQL 2008).
Knowledgebase powered by ASPSuite KB module (programming by Mike Prestwood).
All rights reserved.

[Security & Privacy]
 

Attention Developers!
Join the Prestwood Computer Community (PPC)

OO, UML, DotNet, ASP.Net, C++, Java, PHP, ASP, JavaScript, Delphi, Access / Paradox
blogs
message boards
knowledge base
articles
jobs database
resume database
get published!
Visit Community | Sign Up Now!
It's free and takes less than 30 seconds.