Click here to Skip to main content
15,887,585 members
Home / Discussions / C#
   

C#

 
GeneralRe: SerialPort DataReceived Event Read Byte ? Pin
ibrahimayhans28-Mar-18 4:28
ibrahimayhans28-Mar-18 4:28 
GeneralRe: SerialPort DataReceived Event Read Byte ? Pin
OriginalGriff28-Mar-18 4:43
mveOriginalGriff28-Mar-18 4:43 
GeneralRe: SerialPort DataReceived Event Read Byte ? Pin
ibrahimayhans28-Mar-18 4:48
ibrahimayhans28-Mar-18 4:48 
GeneralRe: SerialPort DataReceived Event Read Byte ? Pin
OriginalGriff28-Mar-18 5:01
mveOriginalGriff28-Mar-18 5:01 
GeneralRe: SerialPort DataReceived Event Read Byte ? Pin
ibrahimayhans28-Mar-18 4:30
ibrahimayhans28-Mar-18 4:30 
GeneralRe: SerialPort DataReceived Event Read Byte ? Pin
Richard MacCutchan28-Mar-18 4:40
mveRichard MacCutchan28-Mar-18 4:40 
GeneralRe: SerialPort DataReceived Event Read Byte ? Pin
ibrahimayhans28-Mar-18 4:44
ibrahimayhans28-Mar-18 4:44 
GeneralRe: SerialPort DataReceived Event Read Byte ? Pin
Richard MacCutchan28-Mar-18 5:28
mveRichard MacCutchan28-Mar-18 5:28 
Serial devices present their data in "chunks", and each chunk may be anything from a single byte to a complete message. This is a feature of serial IO that the programmer needs to understand and deal with. Your input routine needs to capture however much data is presented each time, and build the message buffer by appending the latest 'chunk' to whatever has already been read in. When you are certain that you have all the available data you can go and process it. If the manufacturer tells you that you will receive 41 bytes, then you must keep reading until your message has received that number of bytes.
GeneralRe: SerialPort DataReceived Event Read Byte ? Pin
ibrahimayhans28-Mar-18 5:37
ibrahimayhans28-Mar-18 5:37 
GeneralRe: SerialPort DataReceived Event Read Byte ? Pin
Richard MacCutchan28-Mar-18 6:03
mveRichard MacCutchan28-Mar-18 6:03 
AnswerRe: SerialPort DataReceived Event Read Byte ? Pin
Gerry Schmitz28-Mar-18 4:12
mveGerry Schmitz28-Mar-18 4:12 
AnswerRe: SerialPort DataReceived Event Read Byte ? Pin
Eddy Vluggen28-Mar-18 5:13
professionalEddy Vluggen28-Mar-18 5:13 
GeneralRe: SerialPort DataReceived Event Read Byte ? Pin
ibrahimayhans28-Mar-18 5:21
ibrahimayhans28-Mar-18 5:21 
GeneralRe: SerialPort DataReceived Event Read Byte ? Pin
OriginalGriff28-Mar-18 5:56
mveOriginalGriff28-Mar-18 5:56 
AnswerRe: SerialPort DataReceived Event Read Byte ? Pin
Luc Pattyn28-Mar-18 8:23
sitebuilderLuc Pattyn28-Mar-18 8:23 
QuestionHow to strip special characters from a field and replace with blanks Pin
Member 1375136828-Mar-18 3:17
Member 1375136828-Mar-18 3:17 
AnswerRe: How to strip special characters from a field and replace with blanks Pin
Gerry Schmitz28-Mar-18 5:50
mveGerry Schmitz28-Mar-18 5:50 
AnswerRe: How to strip special characters from a field and replace with blanks Pin
#realJSOP28-Mar-18 8:08
mve#realJSOP28-Mar-18 8:08 
QuestionForm1: Add combobox item from another form2: textbox Pin
Member 1374647827-Mar-18 10:20
Member 1374647827-Mar-18 10:20 
AnswerRe: Form1: Add combobox item from another form2: textbox Pin
OriginalGriff27-Mar-18 19:59
mveOriginalGriff27-Mar-18 19:59 
QuestionConvert IntPtr to Class Pin
Member 1263260127-Mar-18 0:47
Member 1263260127-Mar-18 0:47 
QuestionWeakEventHandler Sample Pin
Kevin Marois26-Mar-18 10:06
professionalKevin Marois26-Mar-18 10:06 
AnswerRe: WeakEventHandler Sample Pin
Dave Kreskowiak27-Mar-18 4:32
mveDave Kreskowiak27-Mar-18 4:32 
GeneralRe: WeakEventHandler Sample Pin
Kevin Marois27-Mar-18 5:18
professionalKevin Marois27-Mar-18 5:18 
GeneralRe: WeakEventHandler Sample Pin
Dave Kreskowiak27-Mar-18 9:34
mveDave Kreskowiak27-Mar-18 9:34 

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.