-Collapse +Expand

Coder

Search Coder Group:

Advanced
-Collapse +Expand Coder Group Home
-Collapse +Expand Message Board
-Collapse +Expand Knowledge Base
-Collapse +Expand Coder Study Test
PRESTWOODCERTIFIED
-Collapse +Expand Coder Store
PRESTWOODSTORE
-Collapse +Expand Members Only
Prestwood Tip Jar
Tip Jar
Finding something useful?

Add to the
Tip Jar!

Prestwood eMagazine

Subscribe now!
Enter your email:


   PrestwoodBoardsKBRole-Based Tech TalkCoding & OOGeneral .Net Concepts   
Go To Random Article
  From the May 2010 Issue of Prestwood eMag
 
Coder General .Net Concepts:
A Better .NET Serial Port Control
By Adam Lum
9/19/2008
 
Coder Link:
 A recommended resource link from our Coder 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 CA USA

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

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



 KB Article #101306 Counter
999
Since 9/19/2008

Sponsored Ad
Brought to you by Prestwood IT 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.
 
358 People Online Now!!  
Online Now: Sign In to see who's online now!  Not a member? Join Prestwood now. It's free!