Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
I have a problem when I recive data from serial port I miss
other data when I read buffer
how can I solve this problem please help me
my email [DELETED]@yahoo.com

[edit]Never post your email address in any forum, unless you really like spam! If anyone replies to you, you will receive an email to let you know
- OriginalGriff[/edit]
Posted
Updated 6-Mar-11 9:51am
v2
Comments
OriginalGriff 6-Mar-11 15:53pm    
Without your source code, we would just be guessing.
Edit your question, and show us the relevant code fragment for the serial port.
Henry Minute 6-Mar-11 19:51pm    
If you still require assistance then please edit your question to include the relevant code.

1 solution

OriginalGriff and Henry Minute are right: you should give more details about your problem.

Hovewer I will give you pieve of advice. If you are having the problem while sending a command and asking for an acknowledgment from the hardware, then keep in mind that your should wait a little bit before receiving the data.
SendData();
//wait a little bit before reading the answer
System.Threading.Thread.Sleep(500);
ReadData();


But once again, if you provide more information we will probably help you better...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900