-
We are using MScomm to read the data available on the serial port . We are unable to retreive the data fully. We are getting only first few characters and others are lost. Can you suggest a way to overcome this problem
The setting for MScomm are as follows:
MSComm settings 9600,n,8,1
Rthreshold 0
Inputlen 0
Handshaking none
InputMode comInputModeText
Thanks in advance
lakshmi
-
The information is being sent to fast. slow down the speed. ALso because it is serial, you also need to put in some kind of CRC to ensure data is valid since you also tend to get 'noise' that needs to be removed.
-
First of all, you need to write a routine to diagest the dta from the MSComm and look for the predefine end string character (Should have, e.g vbCrLf, Chr(3) or etc.)
You need to call his function when there isa fire on the OnComm event for the received data event.