Working on a modbus RTU project on which i send a predefined command of few bytes and in response also few bytes are send by the MODBUS RTU (REMOTE TERMINAL UNIT).Reponse length of bytes is not uniform for each command. sometime it length is 8 bytes..sometime 13 .While receiving AStream_NewData (Buffer() As Byte) sub is fired....what is happening here sometime whole data is receive properly...sometime only part of data is received remaining part is received in next event fired. i cannot use prefix mode here because there is no control on modbus RTU.
Please give me any solution for that.
Please give me any solution for that.