iec61850bean
iec61850bean copied to clipboard
EOFException in TConnection.startConnection() due to missing (?) maxTPDUSizeParam handling
I use a version of the TConnection which is similar to the one you can find here
https://www.javatips.net/api/openiec61850-master/src/mms/jositransport/src/main/java/org/openmuc/jositransport/TConnection.java
In startConnection() this version does something different when it comes to the maxTPDUSizeParam handling.
int variableLength = 0; if (maxTPDUSizeParam < 16 && maxTPDUSizeParam >= 7) { variableLength += 3; }
The version in your repository simply is doing:
int variableLength = 3;
Now I wanted to switch to your version, but this difference seems to not make our S7 controller happy and I get an EOFException later on when reading the first byte in startConnection(). Seems the remote S7 simply drops the connection.
Is there something we can change in the config of our S7 or is this just missing from the version in your repository? If so, I can prepare a patch then.