Click here to Skip to main content
15,902,840 members
Home / Discussions / C#
   

C#

 
QuestionComboboxes and classes... Pin
Illegal Operation16-Feb-09 17:07
Illegal Operation16-Feb-09 17:07 
AnswerRe: Comboboxes and classes... Pin
Christian Graus16-Feb-09 17:50
protectorChristian Graus16-Feb-09 17:50 
GeneralRe: Comboboxes and classes... Pin
Illegal Operation16-Feb-09 22:24
Illegal Operation16-Feb-09 22:24 
Questionc# doubt in ArrayList Pin
d chase begins16-Feb-09 16:39
d chase begins16-Feb-09 16:39 
AnswerRe: c# doubt in ArrayList Pin
PIEBALDconsult16-Feb-09 16:47
mvePIEBALDconsult16-Feb-09 16:47 
AnswerRe: c# doubt in ArrayList Pin
Xmen Real 16-Feb-09 19:21
professional Xmen Real 16-Feb-09 19:21 
QuestionDealing with Point to Point Protocol and XonXoff Characters Pin
ajorge200816-Feb-09 12:34
ajorge200816-Feb-09 12:34 
AnswerRe: Dealing with Point to Point Protocol and XonXoff Characters Pin
Luc Pattyn16-Feb-09 13:46
sitebuilderLuc Pattyn16-Feb-09 13:46 
Hi,

Serial communication needs a way to prevent more data coming in than can be handled, the solution is called "handshaking" which basically is the receiver asking the transmitter to stop/resume sending. In Windows handshaking is handled by the driver, the application is not involved apart from selecting it.

when using "software handshaking" you set SerialPort.Handshake to Handshake.XonXoff and the serial driver will process the ASCII characters Xon and Xoff in a special way: it will send Xoff to indicate it can not accept any more data (buffer almost full), and Xon for the opposite.

The advantage is you don't need two extra lines to do "hardware handshaking".

There is one important limitation: you are not allowed to send data that contains Xon and Xoff characters;
if these occur they will be interpreted by the driver at the receiving side (probably interfering with the handshake), and they will not reach the application, so they are lost.

BTW: the normal values for Xon and Xoff are CTRL/Q and CTRL/S; the Windows driver allows you to select different characters for these, AFAIK the SerialPort class does not.

Smile | :)
Luc Pattyn [Forum Guidelines] [My Articles]

- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets


modified on Sunday, June 12, 2011 8:13 AM

QuestionChanging Open/Save file dialog of winXP and Vista Pin
Gilvinit16-Feb-09 9:29
Gilvinit16-Feb-09 9:29 
AnswerStop Cross Posting Pin
EliottA16-Feb-09 9:40
EliottA16-Feb-09 9:40 
GeneralThanks for you remark but... Pin
Gilvinit16-Feb-09 10:22
Gilvinit16-Feb-09 10:22 
GeneralRe: Thanks for you remark but... Pin
Christian Graus16-Feb-09 11:26
protectorChristian Graus16-Feb-09 11:26 
AnswerRe: Changing Open/Save file dialog of winXP and Vista Pin
Expert Coming16-Feb-09 9:41
Expert Coming16-Feb-09 9:41 
GeneralRe: Changing Open/Save file dialog of winXP and Vista Pin
Gilvinit16-Feb-09 10:25
Gilvinit16-Feb-09 10:25 
GeneralRe: Changing Open/Save file dialog of winXP and Vista Pin
Christian Graus16-Feb-09 11:27
protectorChristian Graus16-Feb-09 11:27 
RantRe: Changing Open/Save file dialog of winXP and Vista Pin
Eddy Vluggen16-Feb-09 21:21
professionalEddy Vluggen16-Feb-09 21:21 
QuestionAdd five zéros on the left of int Pin
abbd16-Feb-09 8:35
abbd16-Feb-09 8:35 
AnswerRe: Add five zéros on the left of int Pin
Kristian Sixhøj16-Feb-09 8:38
Kristian Sixhøj16-Feb-09 8:38 
GeneralRe: Add five zéros on the left of int Pin
abbd16-Feb-09 8:51
abbd16-Feb-09 8:51 
AnswerRe: Add five zéros on the left of int Pin
carbon_golem16-Feb-09 9:06
carbon_golem16-Feb-09 9:06 
AnswerRe: Add five zéros on the left of int PinPopular
Guffa16-Feb-09 9:09
Guffa16-Feb-09 9:09 
GeneralRe: Add five zéros on the left of int Pin
Rutvik Dave16-Feb-09 11:20
professionalRutvik Dave16-Feb-09 11:20 
AnswerRe: Add five zéros on the left of int Pin
Eddy Vluggen16-Feb-09 9:11
professionalEddy Vluggen16-Feb-09 9:11 
GeneralRe: Add five zéros on the left of int Pin
Guffa16-Feb-09 9:19
Guffa16-Feb-09 9:19 
GeneralRe: Add five zéros on the left of int Pin
Tony Pottier16-Feb-09 9:22
Tony Pottier16-Feb-09 9:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.