468,301 Members | 1,435 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,301 developers. It's quick & easy.

serial port data loss

Hello all

I am using the serial port to receive data(7 bytes per second) from the
microcontroller,receiving the data as a string and then splitting the string
in two,to display 2 different values.Am using the Oncomm event to detect
reception of data.All was working fine till recently.
I then changed my controller program to send 7 bytes/10msec.The rest of the
settings are same(9600 baud rate).
However now,after a few cycles of receiving the corect data,I think some
data is being missed in between.
For eg-the data I am sending is the channel no and the corresponding
temperature(for 8 channels),say "01127.5".
However after different periods of time,the data received is,say ".50224."
when it should have been "02224.3" and .5 being the data of the previous
channel.
The same pattern continues for a while till again the placing of the data
changes to say "224.302",instead of "02224.3"

However,when I use the hyperterminal to receive the data,it is being
correctly received.

What might be causing the data to lose synchronisation in vb?

Thanks.
Nov 21 '05 #1
0 1016

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by ^CeFoS^ | last post: by
2 posts views Thread by willie | last post: by
7 posts views Thread by Michael Chong | last post: by
5 posts views Thread by Franklin M. Gauer III | last post: by
38 posts views Thread by shussai2 | last post: by
7 posts views Thread by davetelling | last post: by
13 posts views Thread by Rob | last post: by
4 posts views Thread by max_mont | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.