Solved

Serial Communication in C#

Posted on 2004-03-23
6
446 Views
Last Modified: 2008-02-01
Hi,
Could somebody provide me with the URL or sample code for serial port communication in .NET?

Thanks in advance.

Thanks,
Pampa
0
Comment
Question by:pampa34
6 Comments
 
LVL 10

Accepted Solution

by:
eternal_21 earned 63 total points
ID: 10656055
0
 
LVL 1

Assisted Solution

by:uk2cn
uk2cn earned 62 total points
ID: 10657392
0
 

Expert Comment

by:mitesh114
ID: 14319141
hi uk2cn,

I am using the serial comms component from the second link that you have given here and am having problems setting up the software flow control.  My application needs to send a text file and after each line should receive an XOFF from the hardware and then an XON when it has finished processing the line.  Thereafter then next line in the text file should be sent.  Do you know what I would need to configure my dcb settings to, to get this working?  I have set the flow control to Xon/Xoff, I have set the baud rate to 115200 and I have tried setting the TxXoffFlow to true so that the dte transmission is suspended because an Xoff is received.  However, it seems that I am not getting an Xoff as each line is not processed.  I know that the hardware works as it is running with hyperterminal just fine.  Any help would be much appreciated...
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question