472,146 Members | 1,303 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,146 software developers and data experts.

Help for Serial communication

Hallo everybody:

I have some questions about Seiral communication with GPS. I am using the "Serial Port" in Windows application form of Visual studio 2005.

In one second I receive several messages from port. each message has different number of bytes. I know the time in one second when the data arrive. How can I make sure I receive correctly?

my codes is like this:

Port2->Write(Oa,0,18); //after this command, i get messages in one second

is that correct?

And how can I check the data i have received? I only find the "textbox->text=Port2->Readnewline()". But I can only display string type. How can i display one wchar? such as Oa_responce1(5)?

Thanks a lot!!!
Nov 27 '06 #1
0 844

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by Jonny Air | last post: by
8 posts views Thread by vicky | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.