Hi,
I have an issue and I try to figure out, where should be the problem.
Short version: reading from remote tcp device produces partial message, sometimes (~10%).
Long version:
The configuration is the following:
[Proview 5.4, RemoteConfig object, TCP] ---LAN---> [rs485/ethernet gateway] ---RS485---> [serial device]
The length of the message I would like to read, between 6-25 characters.
The serial device start writing the message after it gets a hardware trigger (1-3 sec delay after the hardware trigger). Frequency of the message is about 7-8 seconds between two triggers.
Usually the message arrives and legal, but sometimes it only get the part of it, not the whole message.
I started a tcpdump to check the messages and it seems, the message is arrived (message found in the tcpdump), but in Proview, the message only contains a part of it. It seems there is a "gap" in the message and proview only get the first part (half/less than half) and the second half just gone to the Valhalla.
Example (starting with a hexa 02):
Expected message: \x02%007910816408007523389365276
TCPdump: \x02%007910816408007523389365276
Shown in proview: \x02%0079108
The rest of the string is gone.
Here is the config:
(The plcthread is 100msec on the proview, 9600 bit/sec on the serial device)
Do you have similar experience and any hint, how to solve it?
I still investigating the situation, but at this moment it seems there is no message close character at the end of the message (like special character or hex code; please note, start indicator exists, 0x02)
Thanks,
István