Did you check out:
Reading a byte 0x12 ( Form Feed/ New Page) as the end of record, an then you reset to fill up a new message.
Or better -- treat 0x04 (EOT) as the end of message, and ignore the messages that don't start with 0x09.
Did you check out:
Reading a byte 0x12 ( Form Feed/ New Page) as the end of record, an then you reset to fill up a new message.
Or better -- treat 0x04 (EOT) as the end of message, and ignore the messages that don't start with 0x09.