Click here to Skip to main content
15,914,014 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralInstallation Root Pin
Mehdi_Hosseinpour15-Mar-04 22:24
Mehdi_Hosseinpour15-Mar-04 22:24 
GeneralRe: Installation Root Pin
Steve S15-Mar-04 22:34
Steve S15-Mar-04 22:34 
GeneralSolving Linear systems Pin
engineer_ali15-Mar-04 22:19
engineer_ali15-Mar-04 22:19 
GeneralRe: Solving Linear systems Pin
Antti Keskinen16-Mar-04 0:56
Antti Keskinen16-Mar-04 0:56 
GeneralRe: Solving Linear systems Pin
Robert A. T. Káldy16-Mar-04 1:03
Robert A. T. Káldy16-Mar-04 1:03 
GeneralMFC App Visual-Performance degrades after resizing several times Pin
ohadp15-Mar-04 21:51
ohadp15-Mar-04 21:51 
QuestionCListCtrl report view word wrap? Pin
soggie15-Mar-04 21:50
soggie15-Mar-04 21:50 
QuestionWrites makes any effects to read in Serial Communication? Pin
sudoer15-Mar-04 19:19
sudoer15-Mar-04 19:19 
Hi~ all. Wink | ;)

I'm in the middle of writting a simple serial comm app but there's a Question I can't understand.

In my code, just simple data communication is OK. But when I wanna make more fast data exchange in short that make a little problem. Two program A, B can communicate well with a simple line, but to make fast and recursive data communication I made a thread that writes a data line to serial port. (Thread function In B that write 8 bytes string data expecting 14 bytes reply.) If time delay between two *sending* data string is long ( 3 secs ) send and reply is OK. However if I make the delay to be short ( 2 or 1 sec ) A works all right, and B doesn't. B cannot read any data.

Between A, B there's no difference except B has a recursive writing function in thread. So I wander whether writeing to port makes a effect to reading from that one or not.

Anybody can tell me a good solution?

Sorry for my poor English.
And Thanks in advance.

AnswerRe: Writes makes any effects to read in Serial Communication? Pin
Prakash Nadar15-Mar-04 20:23
Prakash Nadar15-Mar-04 20:23 
GeneralRe: Writes makes any effects to read in Serial Communication? (code include) Pin
sudoer15-Mar-04 21:14
sudoer15-Mar-04 21:14 
QuestionWhere can I get the Jpeg specification??? Pin
KevenYang15-Mar-04 18:38
KevenYang15-Mar-04 18:38 
AnswerRe: Where can I get the Jpeg specification??? Pin
ian mariano15-Mar-04 18:49
ian mariano15-Mar-04 18:49 
GeneralRe: Where can I get the Jpeg specification??? Pin
KevenYang15-Mar-04 18:57
KevenYang15-Mar-04 18:57 
AnswerRe: Where can I get the Jpeg specification??? Pin
David Crow16-Mar-04 2:38
David Crow16-Mar-04 2:38 
GeneralRe: Where can I get the Jpeg specification??? Pin
KevenYang16-Mar-04 13:11
KevenYang16-Mar-04 13:11 
GeneralAVI Compression Pin
kukarthi15-Mar-04 18:27
kukarthi15-Mar-04 18:27 
GeneralRe: AVI Compression Pin
ian mariano15-Mar-04 19:01
ian mariano15-Mar-04 19:01 
GeneralRTF to HTML Pin
shahnk15-Mar-04 17:49
shahnk15-Mar-04 17:49 
GeneralRe: RTF to HTML Pin
Prakash Nadar15-Mar-04 21:08
Prakash Nadar15-Mar-04 21:08 
GeneralOnOpenDocument Pin
mohdshiraz15-Mar-04 17:29
mohdshiraz15-Mar-04 17:29 
GeneralRe: OnOpenDocument Pin
ian mariano15-Mar-04 18:31
ian mariano15-Mar-04 18:31 
GeneralRe: OnOpenDocument Pin
David Crow16-Mar-04 2:44
David Crow16-Mar-04 2:44 
GeneralNetwork data transfer statistics Pin
dwmon15-Mar-04 14:17
dwmon15-Mar-04 14:17 
GeneralRe: Network data transfer statistics Pin
ian mariano15-Mar-04 18:42
ian mariano15-Mar-04 18:42 
GeneralAuto Tabbin Pin
MeterMan15-Mar-04 13:22
MeterMan15-Mar-04 13: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.