Hello,
A little background: I use BRX PLCs for a lot of IOT functions (MQTT, automation integration, weather alerts, etc.) - it's great, and the fact that functionality keeps getting added is a huge bonus (MQTT, HTTPCMD, etc.). So first off, thank you!
I'm having an issue with a current project, where a server periodically sends an XML file via TCP, and I need to simply search the XML file for a portion of a string (no complex parsing). I have this same setup working with other devices that send TCP strings and there's no problem. In this case though, I always get an ST143 error (and the STREAMIN sets the error bit) each time the server sends the XML file.
Here's the interesting part: when I use a simple utility (like Packet Sender) in TCP server mode, it receives the XML file with no problem. I can then copy the contents, switch Packet Sender to TCP client mode and send the contents to the PLC and it works perfectly.
So...I decided to run a WireShark on the output of the device that's sending the XML file. It looks like it's sending a blank TCP packet after the packet containing the XML data (admittedly, I'm not an expert with TCP packets). See the attached pic (2.150 is the receiving computer, and 52.234 is the device sending the XML).
I've tried setting STREAMIN to only capture the first 10 bytes (hoping to ignore anything at the end that may be causing the problem), and still no luck. I'm attaching a pic of my current program...I typically don't use the method with the timer, but figured it was worth a try (from a different forum post).
Any help would be greatly appreciated. Thanks!