forked from S7NetPlus/s7netplus
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Read TPKT/COTP packets / Read MaxPDU size from PLC
Read responses from the PLS using classes for TPKT and COPT. This makes the communication more robust. It will now handle empty COTP packets that SoftPLS and WinAC based PLCs send out. I use RFC names for functions and classes. Change logic to use COTP and S7Comm reponse codes instead of relying on packet sizes. Read Max PDU size from connection setup. Ref S7NetPlus#21 I did some test on using this limit. But i met a wall when testing against snap7 so i decided to drop changes to read/write size. I have done some tests against WinAC cpu and it seems to handle bigger pdu's if negotiated in the connection setup. This might just be a SNAP7 bug.
- Loading branch information
Showing
2 changed files
with
48 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters