Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
QuestionSerial Port Pin
Deepak.Prahlad11-Mar-10 22:14
Deepak.Prahlad11-Mar-10 22:14 
AnswerMessage Closed Pin
11-Mar-10 22:37
stancrm11-Mar-10 22:37 
GeneralRe: Serial Port Pin
Deepak.Prahlad11-Mar-10 22:50
Deepak.Prahlad11-Mar-10 22:50 
GeneralMessage Closed Pin
12-Mar-10 0:06
stancrm12-Mar-10 0:06 
GeneralRe: Serial Port Pin
Deepak.Prahlad12-Mar-10 0:25
Deepak.Prahlad12-Mar-10 0:25 
GeneralRe: Serial Port Pin
OriginalGriff12-Mar-10 1:46
mveOriginalGriff12-Mar-10 1:46 
AnswerRe: Serial Port Pin
DotNetCoderJunior12-Mar-10 2:08
DotNetCoderJunior12-Mar-10 2:08 
AnswerRe: Serial Port Pin
Luc Pattyn12-Mar-10 2:51
sitebuilderLuc Pattyn12-Mar-10 2:51 
Deepak.Prahlad wrote:
Timeout value (read timeout and write timeout) every time you read or write


No, timeout is a property just like all others. You can set it once, it will hold its value.


Deepak.Prahlad wrote:
Read timeout timer starts when the first characeter arrives at the hardware buffer


No, read timeout starts when a read operation starts. The behavior you are referring to exists in Windows but AFAIK is not exposed to the SerialPort class.


Deepak.Prahlad wrote:
thread locking in DataReceived event


DataReceived is an asynchronous event; as such it is handled by a ThreadPool thread, which is not allowed to touch the Winform Controls directly. See this[^] and this[^] article.

One can never be sure that all the serial data that belongs together (a "message") will be received in one go; there always could be a hick-up somewhere, causing the message to be split over two DataReceived events. One approach that often leads to success is by having some delay between the start of the DataReceived event and the actual reading of the data.

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

I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.

AnswerRe: Serial Port Pin
PIEBALDconsult12-Mar-10 3:45
mvePIEBALDconsult12-Mar-10 3:45 
GeneralRe: Serial Port Pin
Deepak.Prahlad14-Mar-10 17:59
Deepak.Prahlad14-Mar-10 17:59 
QuestionMouseEnter and MouseLeave not working if Enabled=false Pin
stancrm11-Mar-10 22:01
stancrm11-Mar-10 22:01 
AnswerRe: MouseEnter and MouseLeave not working if Enabled=false Pin
#realJSOP12-Mar-10 1:48
mve#realJSOP12-Mar-10 1:48 
AnswerRe: MouseEnter and MouseLeave not working if Enabled=false Pin
Dave Kreskowiak12-Mar-10 3:42
mveDave Kreskowiak12-Mar-10 3:42 
GeneralRe: MouseEnter and MouseLeave not working if Enabled=false [modified] Pin
#realJSOP12-Mar-10 5:41
mve#realJSOP12-Mar-10 5:41 
GeneralRe: MouseEnter and MouseLeave not working if Enabled=false Pin
Dave Kreskowiak12-Mar-10 7:04
mveDave Kreskowiak12-Mar-10 7:04 
GeneralRe: MouseEnter and MouseLeave not working if Enabled=false Pin
#realJSOP12-Mar-10 12:03
mve#realJSOP12-Mar-10 12:03 
GeneralRe: MouseEnter and MouseLeave not working if Enabled=false Pin
Dave Kreskowiak12-Mar-10 12:15
mveDave Kreskowiak12-Mar-10 12:15 
AnswerRe: MouseEnter and MouseLeave not working if Enabled=false Pin
The Man from U.N.C.L.E.12-Mar-10 8:25
The Man from U.N.C.L.E.12-Mar-10 8:25 
Questionmultiple textbox text save in one field Pin
mjawadkhatri11-Mar-10 19:41
mjawadkhatri11-Mar-10 19:41 
QuestionRe: multiple textbox text save in one field Pin
Calla11-Mar-10 20:20
Calla11-Mar-10 20:20 
AnswerRe: multiple textbox text save in one field Pin
mjawadkhatri11-Mar-10 20:34
mjawadkhatri11-Mar-10 20:34 
GeneralRe: multiple textbox text save in one field Pin
Calla11-Mar-10 20:40
Calla11-Mar-10 20:40 
GeneralRe: multiple textbox text save in one field Pin
mjawadkhatri11-Mar-10 20:46
mjawadkhatri11-Mar-10 20:46 
GeneralRe: multiple textbox text save in one field Pin
Calla11-Mar-10 20:55
Calla11-Mar-10 20:55 
GeneralRe: multiple textbox text save in one field Pin
mjawadkhatri11-Mar-10 23:16
mjawadkhatri11-Mar-10 23:16 

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.