Click here to Skip to main content
15,913,245 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# VS 2008 3.5 XML/Webservice error Pin
#realJSOP26-Apr-10 12:32
professional#realJSOP26-Apr-10 12:32 
GeneralRe: C# VS 2008 3.5 XML/Webservice error Pin
Wheels01227-Apr-10 1:30
Wheels01227-Apr-10 1:30 
QuestionSerialPort Pin
jashimu23-Apr-10 4:32
jashimu23-Apr-10 4:32 
AnswerRe: SerialPort Pin
Ravi Bhavnani23-Apr-10 4:52
professionalRavi Bhavnani23-Apr-10 4:52 
AnswerRe: SerialPort Pin
Luc Pattyn23-Apr-10 4:58
sitebuilderLuc Pattyn23-Apr-10 4:58 
GeneralRe: SerialPort Pin
jashimu23-Apr-10 5:13
jashimu23-Apr-10 5:13 
GeneralRe: SerialPort Pin
jashimu26-Apr-10 4:49
jashimu26-Apr-10 4:49 
GeneralRe: SerialPort Pin
Luc Pattyn26-Apr-10 5:16
sitebuilderLuc Pattyn26-Apr-10 5:16 
your target device needs some time to react to the command you send it. It has to:
- get aware there is some data coming in;
- interpret the command;
- execute the command;
- send a response.

The last step probably is the slowest: at 9600 Baud each character takes around 1 millisecond, so a string of 10 characters is in transit for 10 milliseconds. Not a single character will be received in zero time, which is what you allowed for.

Normally serial data is received in an asynchronous fashion, either using the DataReceived event, or by having another thread performing a Read() ahead of time.

As a first experiment, insert a Thread.Sleep(100); right after your port.Write statement.

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

Prolific encyclopedia fixture proof-reader browser patron addict?
We all depend on the beast below.


AnswerRe: SerialPort Pin
PIEBALDconsult23-Apr-10 4:59
mvePIEBALDconsult23-Apr-10 4:59 
GeneralRe: SerialPort Pin
jashimu23-Apr-10 5:09
jashimu23-Apr-10 5:09 
Questionsms broadcast bluetooth Pin
Wannes Geysen23-Apr-10 4:02
Wannes Geysen23-Apr-10 4:02 
QuestionRe: sms broadcast bluetooth Pin
Wannes Geysen26-Apr-10 1:08
Wannes Geysen26-Apr-10 1:08 
QuestionUsing Gzip in HttpRequests Pin
rahul.kulshreshtha23-Apr-10 3:41
rahul.kulshreshtha23-Apr-10 3:41 
AnswerRe: Using Gzip in HttpRequests Pin
Abhinav S23-Apr-10 5:16
Abhinav S23-Apr-10 5:16 
GeneralRe: Using Gzip in HttpRequests Pin
Migounette23-Apr-10 6:51
Migounette23-Apr-10 6:51 
QuestionGetting UNMANAGED stack trace in C# Pin
Fayu23-Apr-10 3:39
Fayu23-Apr-10 3:39 
AnswerRe: Getting UNMANAGED stack trace in C# Pin
Dave Kreskowiak23-Apr-10 4:00
mveDave Kreskowiak23-Apr-10 4:00 
AnswerRe: Getting UNMANAGED stack trace in C# Pin
Abhinav S23-Apr-10 5:58
Abhinav S23-Apr-10 5:58 
QuestionExcel Addin MiniDump Pin
GoodIntentions23-Apr-10 3:37
GoodIntentions23-Apr-10 3:37 
QuestionProgramming in Excel with C# Pin
cdpace23-Apr-10 2:02
cdpace23-Apr-10 2:02 
AnswerRe: Programming in Excel with C# Pin
Mirko198023-Apr-10 2:20
Mirko198023-Apr-10 2:20 
GeneralRe: Programming in Excel with C# Pin
cdpace23-Apr-10 2:59
cdpace23-Apr-10 2:59 
Questioni have problem to create excel Add-in please help me .... Pin
dhiraj.upadhyay23-Apr-10 1:54
dhiraj.upadhyay23-Apr-10 1:54 
AnswerRe: i have problem to create excel Add-in please help me .... Pin
Dave Kreskowiak23-Apr-10 3:36
mveDave Kreskowiak23-Apr-10 3:36 
QuestionADO.NET cross-base transactions Pin
Yoyosch23-Apr-10 1:41
Yoyosch23-Apr-10 1:41 

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.