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

C#

 
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 
AnswerRe: Accessing Certificates in a windows service Pin
Bernhard Hiller14-Aug-12 3:04
Bernhard Hiller14-Aug-12 3:04 
Questionhow to prevent a single MDI child form stealing focus from every other mdi child form Pin
jojoba201114-Aug-12 0:56
jojoba201114-Aug-12 0:56 
QuestionRe: how to prevent a single MDI child form stealing focus from every other mdi child form Pin
Eddy Vluggen14-Aug-12 1:20
professionalEddy Vluggen14-Aug-12 1:20 
QuestionRe: how to prevent a single MDI child form stealing focus from every other mdi child form Pin
Shameel14-Aug-12 1:42
professionalShameel14-Aug-12 1:42 
AnswerRe: how to prevent a single MDI child form stealing focus from every other mdi child form Pin
BillWoodruff14-Aug-12 8:13
professionalBillWoodruff14-Aug-12 8:13 
QuestionHow to optimize the stream display ? Pin
yu-jian13-Aug-12 16:29
yu-jian13-Aug-12 16:29 
AnswerRe: How to optimize the stream display ? Pin
Dave Kreskowiak13-Aug-12 17:10
mveDave Kreskowiak13-Aug-12 17:10 
AnswerRe: How to optimize the stream display ? Pin
Pete O'Hanlon13-Aug-12 23:53
mvePete O'Hanlon13-Aug-12 23:53 

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.