Click here to Skip to main content
15,916,379 members
Home / Discussions / C#
   

C#

 
AnswerRe: Having Problem with small Function Pin
DaveyM6916-Aug-12 1:37
professionalDaveyM6916-Aug-12 1:37 
QuestionDelegate w/ Lambda Pin
Herrwolf115-Aug-12 4:43
Herrwolf115-Aug-12 4:43 
AnswerRe: Delegate w/ Lambda Pin
BobJanova15-Aug-12 5:04
BobJanova15-Aug-12 5:04 
GeneralRe: Delegate w/ Lambda Pin
Eddy Vluggen15-Aug-12 5:19
professionalEddy Vluggen15-Aug-12 5:19 
GeneralRe: Delegate w/ Lambda Pin
Herrwolf115-Aug-12 8:54
Herrwolf115-Aug-12 8:54 
AnswerRe: Delegate w/ Lambda Pin
Dave Doknjas15-Aug-12 10:21
Dave Doknjas15-Aug-12 10:21 
GeneralRe: Delegate w/ Lambda Pin
Herrwolf115-Aug-12 10:54
Herrwolf115-Aug-12 10:54 
QuestionSending SMS through ASP.NET Pin
komalridda14-Aug-12 20:00
komalridda14-Aug-12 20:00 
AnswerRe: Sending SMS through ASP.NET Pin
OriginalGriff14-Aug-12 20:42
mveOriginalGriff14-Aug-12 20:42 
AnswerCross Post Pin
DaveyM6914-Aug-12 23:24
professionalDaveyM6914-Aug-12 23:24 
AnswerRe: Sending SMS through ASP.NET Pin
Keith Barrow15-Aug-12 2:08
professionalKeith Barrow15-Aug-12 2:08 
QuestionSave Excel File Pin
Member 916988714-Aug-12 15:21
Member 916988714-Aug-12 15:21 
AnswerRe: Save Excel File Pin
Dave Kreskowiak14-Aug-12 18:13
mveDave Kreskowiak14-Aug-12 18:13 
AnswerRe: Save Excel File Pin
Eddy Vluggen15-Aug-12 1:23
professionalEddy Vluggen15-Aug-12 1:23 
QuestionAbout SerialPort Pin
SODMi14-Aug-12 15:18
SODMi14-Aug-12 15:18 
AnswerRe: About SerialPort Pin
Roger Wright14-Aug-12 20:08
professionalRoger Wright14-Aug-12 20:08 
You're right, the English is rough, but we'll work through that... The sample code is interesting, but far too little to make an educated guess. The non-English characters are confusing to us, but to a serial port, bytes is bytes - it doesn't care. There's a clue in the fact that the first couple of bytes are being lost, I think. The fact that you get any meaningful data at all indicates that you have the baud rate set correctly, so we can forget that. But the handshaking might be mismatched. The PC port and the MCU port must be set to use the same protocol in order to properly sync the messages. Modern PCs will attempt to auto-negotiate handshaking if the mode is set to 'none', I believe, but MCUs aren't as sophisticated. Confirm that the handshaking protocols are identical.

Another possibility is that you (or the MCU) are expecting to have the PC's undivided attention to the data stream incoming on the serial port. That's not the case with a multi-tasking OS like Windows. You'll want to dedicate a thread to listening on the serial port with a fairly high priority in order to catch the leading bits of a randomly-generated message from the MCU. If you don't, Windows may be off doing something else when the first couple of bytes arrive, and they'll be lost.

Post a bit more of your code so that we can see what you've set up the system to do, and feel free to post the MCU code, as well. It helps to see what both sides of the conversation are expecting from each other. I know that serial communications is old and well established, but it's quirky at best, and the "standard" isn't too well enforced. Every bit of information you can provide will be helpful.
Will Rogers never met me.

QuestionWeb Scraping XML file Pin
mjackson1114-Aug-12 8:23
mjackson1114-Aug-12 8:23 
AnswerRe: Web Scraping XML file PinPopular
PIEBALDconsult14-Aug-12 9:53
mvePIEBALDconsult14-Aug-12 9:53 
GeneralRe: Web Scraping XML file Pin
Dave Kreskowiak14-Aug-12 18:10
mveDave Kreskowiak14-Aug-12 18:10 
GeneralRe: Web Scraping XML file Pin
PIEBALDconsult15-Aug-12 3:26
mvePIEBALDconsult15-Aug-12 3:26 
AnswerRe: Web Scraping XML file Pin
Keith Barrow15-Aug-12 2:28
professionalKeith Barrow15-Aug-12 2:28 
AnswerRe: Web Scraping XML file Pin
BobJanova15-Aug-12 3:39
BobJanova15-Aug-12 3:39 
AnswerRe: Web Scraping XML file Pin
mjackson1119-Aug-12 7:13
mjackson1119-Aug-12 7:13 
QuestionAccessing Certificates in a windows service Pin
Wolfram Steinke14-Aug-12 2:03
Wolfram Steinke14-Aug-12 2:03 
AnswerRe: Accessing Certificates in a windows service Pin
Eddy Vluggen14-Aug-12 2:24
professionalEddy Vluggen14-Aug-12 2:24 

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.