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

C#

 
GeneralRe: Serial Port Won't Send While Receiving Pin
C-P-User-328-Dec-12 5:21
C-P-User-328-Dec-12 5:21 
GeneralRe: Serial Port Won't Send While Receiving Pin
Richard MacCutchan28-Dec-12 5:45
mveRichard MacCutchan28-Dec-12 5:45 
GeneralRe: Serial Port Won't Send While Receiving Pin
C-P-User-328-Dec-12 5:59
C-P-User-328-Dec-12 5:59 
GeneralRe: Serial Port Won't Send While Receiving Pin
Richard MacCutchan28-Dec-12 6:40
mveRichard MacCutchan28-Dec-12 6:40 
AnswerRe: Serial Port Won't Send While Receiving Pin
GrooverFromHolland28-Dec-12 7:04
GrooverFromHolland28-Dec-12 7:04 
AnswerRe: Serial Port Won't Send While Receiving Pin
jschell28-Dec-12 9:53
jschell28-Dec-12 9:53 
GeneralRe: Serial Port Won't Send While Receiving Pin
C-P-User-331-Dec-12 10:54
C-P-User-331-Dec-12 10:54 
GeneralRe: Serial Port Won't Send While Receiving Pin
C-P-User-31-Jan-13 13:35
C-P-User-31-Jan-13 13:35 
Threaded my code to send a command while the other background event handler (which, as I think I'm learning, is also in a thread) is receiving.

Changed my external box to wait half a second between sending packets.

(Half a second is a long time in this context.)

He (my C# "myPort.Write(blahblahblah)" instruction) still won't execute.

I went even further. I got my external box to receive the first set of data which my C# app sends, but never send another pack back to it, i.e., the external box was purposely not responding, just sitting there so that my app on the PC would not receive data

When that happens, my C# app on the PC will transmit either the start or stop command okay, as often as it wants; i.e., with data received event, the sending works fine.

The moment I start receiving data, I can never send any more; not even one byte.

I used the C# IDE to stop the execution.

He is at this instruction...
C#
Application.Run(new Form1());


There is a green curved arrow in the left hand edge of the window pointing to that instruction.

Hovering over that instruction gives me a message...

"This is the next statement to execute when this thread returns from the current function"

Who arbitrates those various threads ? How do I find out which thread is currently invoked ? Where is this behavior documented ?

How does a software writer get the background serial port received data event handler to back off and let the serial port send data ?

Is this documented anywhere ?
GeneralRe: Serial Port Won't Send While Receiving Pin
C-P-User-31-Jan-13 13:36
C-P-User-31-Jan-13 13:36 
GeneralRe: Serial Port Won't Send While Receiving Pin
GrooverFromHolland1-Jan-13 23:41
GrooverFromHolland1-Jan-13 23:41 
GeneralRe: Serial Port Won't Send While Receiving Pin
C-P-User-32-Jan-13 4:25
C-P-User-32-Jan-13 4:25 
GeneralRe: Serial Port Won't Send While Receiving Pin
C-P-User-37-Jan-13 9:21
C-P-User-37-Jan-13 9:21 
QuestionQuestion about split Pin
S Douglas27-Dec-12 6:32
professionalS Douglas27-Dec-12 6:32 
AnswerRe: Question about split Pin
PIEBALDconsult27-Dec-12 7:20
mvePIEBALDconsult27-Dec-12 7:20 
GeneralRe: Question about split Pin
S Douglas27-Dec-12 8:04
professionalS Douglas27-Dec-12 8:04 
GeneralRe: Question about split Pin
SledgeHammer0127-Dec-12 10:38
SledgeHammer0127-Dec-12 10:38 
GeneralRe: Question about split Pin
PIEBALDconsult27-Dec-12 11:03
mvePIEBALDconsult27-Dec-12 11:03 
GeneralRe: Question about split Pin
S Douglas27-Dec-12 11:29
professionalS Douglas27-Dec-12 11:29 
GeneralRe: Question about split Pin
SledgeHammer0127-Dec-12 13:34
SledgeHammer0127-Dec-12 13:34 
GeneralRe: Question about split Pin
PIEBALDconsult27-Dec-12 13:59
mvePIEBALDconsult27-Dec-12 13:59 
GeneralRe: Question about split Pin
SledgeHammer0127-Dec-12 14:29
SledgeHammer0127-Dec-12 14:29 
GeneralRe: Question about split Pin
PIEBALDconsult27-Dec-12 15:10
mvePIEBALDconsult27-Dec-12 15:10 
GeneralRe: Question about split Pin
PIEBALDconsult27-Dec-12 16:14
mvePIEBALDconsult27-Dec-12 16:14 
GeneralRe: Question about split Pin
SledgeHammer0127-Dec-12 17:24
SledgeHammer0127-Dec-12 17:24 
GeneralRe: Question about split Pin
April Fans27-Dec-12 14:14
April Fans27-Dec-12 14:14 

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.