By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,981 Members | 1,098 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,981 IT Pros & Developers. It's quick & easy.

Weird problem using SerialPort

P: n/a
I create a System.IO.Ports.SerialPort object and start communicating with a
device (a pocket pc in my case). Everything works perfectly if I don't call
"Write" successively.

For example the following code:

//it doesn't matter if \r\n is used or not,
//the problem is the same
sp.Write("01\r\n");
sp.Write("0123\r\n");
sp.Write("01234567\r\n");
sp.Write("0123456789\r\n");

If I'm debugging the application and I step through each line, all sequences
are sent and properly displayed on my receiving device. If I run the
application, only the first string "01" is sent.

Is it possible that the problem is in the receiver device?

Except for comport and baudrate, all properties are default.

Cheers

Padu
Mar 28 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"Padu"
Is it possible that the problem is in the receiver device?

Not only it is possible but that's what actually happened. I've installed a
decent serial terminal program on my pocket and my application is working
fine.
Unless you have any hints on the receiver side (I created the pocket pc app
using compactframework), please disregard this post.

Cheers

Padu
Mar 28 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.