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

serial port data loss

P: n/a
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
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.