Click here to Skip to main content
15,888,610 members
Home / Discussions / C#
   

C#

 
GeneralRe: image processing Pin
harold aptroot21-Jun-15 21:11
harold aptroot21-Jun-15 21:11 
GeneralRe: image processing Pin
Mohammad.Khashei21-Jun-15 21:20
Mohammad.Khashei21-Jun-15 21:20 
Questionc# application,USB unplugged in window 8.1 OS Pin
Member 1041346920-Jun-15 22:06
Member 1041346920-Jun-15 22:06 
QuestionI'm using a speech dll to write a simple visual studio ai Pin
Member 1178039920-Jun-15 12:33
Member 1178039920-Jun-15 12:33 
SuggestionRe: I'm using a speech dll to write a simple visual studio ai Pin
Richard MacCutchan20-Jun-15 21:15
mveRichard MacCutchan20-Jun-15 21:15 
AnswerRe: I'm using a speech dll to write a simple visual studio ai Pin
Pete O'Hanlon22-Jun-15 0:05
mvePete O'Hanlon22-Jun-15 0:05 
QuestionCheck SerialPort Exist Modem ? Pin
Member 245846720-Jun-15 4:32
Member 245846720-Jun-15 4:32 
AnswerRe: Check SerialPort Exist Modem ? Pin
OriginalGriff20-Jun-15 4:45
mveOriginalGriff20-Jun-15 4:45 
We can't really help you based on that little: but I'd guess that sleeping the thread for 100ms is not a good idea.
That's only 1/10th of a second, and at 9600 baud that's not a lot of characters - about 96 in total.
9600 baud == 9600 bits per second ~= 960 characters per second == 96 characters in 1/10th second.

So unless the data goes out quickly, the modem responds quickly, and there is no other data returned such as a "welcome" or "status" message it's quite likely that the response may be just getting lost, because you aren't giving it enough time to talk back to you.

There is also the swallowing of all errors so you don't know what problems there are.
And the high probability that the modem doesn't just return "OK" - as a minimum it's probably going to put a carriage return / line feed pair, and quite likely to echo the input back to you as well.
And it may well need flow control (RTS/CTS and DCD), or even the bits per character and parity set correctly.

So start with the debugger and look at exactly what is happening. What are you getting back? Anything? Nothing? We can't do it for you!
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

GeneralRe: Check SerialPort Exist Modem ? Pin
Member 245846720-Jun-15 13:41
Member 245846720-Jun-15 13:41 
Questionany one can help me about good project of c# Pin
ginethon otieno19-Jun-15 22:40
ginethon otieno19-Jun-15 22:40 
AnswerRe: any one can help me about good project of c# Pin
OriginalGriff19-Jun-15 22:46
mveOriginalGriff19-Jun-15 22:46 
QuestionDelay windows power events Pin
Member 1085025319-Jun-15 15:19
Member 1085025319-Jun-15 15:19 
AnswerRe: Delay windows power events Pin
Dave Kreskowiak19-Jun-15 17:34
mveDave Kreskowiak19-Jun-15 17:34 
GeneralRe: Delay windows power events Pin
Member 1085025320-Jun-15 1:11
Member 1085025320-Jun-15 1:11 
GeneralRe: Delay windows power events Pin
Dave Kreskowiak20-Jun-15 5:12
mveDave Kreskowiak20-Jun-15 5:12 
GeneralRe: Delay windows power events Pin
Member 1085025320-Jun-15 5:50
Member 1085025320-Jun-15 5:50 
GeneralRe: Delay windows power events Pin
Dave Kreskowiak20-Jun-15 6:16
mveDave Kreskowiak20-Jun-15 6:16 
GeneralRe: Delay windows power events Pin
Member 1085025320-Jun-15 7:28
Member 1085025320-Jun-15 7:28 
GeneralRe: Delay windows power events Pin
Dave Kreskowiak20-Jun-15 7:38
mveDave Kreskowiak20-Jun-15 7:38 
GeneralRe: Delay windows power events Pin
Member 1085025320-Jun-15 7:59
Member 1085025320-Jun-15 7:59 
GeneralRe: Delay windows power events Pin
Member 1085025320-Jun-15 1:34
Member 1085025320-Jun-15 1:34 
QuestionInheritance Pin
JammoD8719-Jun-15 11:35
JammoD8719-Jun-15 11:35 
AnswerRe: Inheritance Pin
harold aptroot19-Jun-15 11:44
harold aptroot19-Jun-15 11:44 
GeneralRe: Inheritance Pin
JammoD8719-Jun-15 11:46
JammoD8719-Jun-15 11:46 
GeneralRe: Inheritance Pin
harold aptroot19-Jun-15 11:51
harold aptroot19-Jun-15 11:51 

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.