ModbusTCP is based on the TCP transport, while TCP data flow, and rtu this based on the data frame transmission is not the same,
Q: we can see the beginning and the end of the frame based on frame transmission byte, all can parse the data, but based on the flow of how to locate messages starting?
There are two such as the continuous function code is 0 x10 data, there should be a length of 230 bytes, but TCP transport process, to reach 10 bytes, and to 130 bytes, has recently reached 90 bytes, the arrival of the before and after the 230 bytes, mobus mbap header may be in the top 10 bytes, may also be in the middle of 130 bytes, may also be at the back of the 90 bytes, received the message in the current 230 bytes of TCP data flow not over of don't know, how to determine the beginning and end of message?
Fill asked: if retrieve conforms to the message header from the flow of data, and found the data in a message header and a message is likely to be same, becomes a message, there are several data segments are in conformity with the rules of message header, then the message interception or not on the flow, please explain,