Skip to content

Partner connection #668

@hs2bws-hash

Description

@hs2bws-hash

First of all, thank you very much for your work on this great project.

I tried to convert an existing application that works with the classic version of Python-Snap7 to the Python-only version.

The application (running on a Raspberry Pi 4) is supposed to connect as an active partner to an S7-1500. While it connects immediately with the classic version of python-snap7, I haven't been able to connect with the Python-only version. get_status() reports status 2 - connected, while the PLC remains in status 3 (awaitung connection). connection.check_connection() changes from True to False after a few seconds, get_status() rests in status 2.

The connection:
Local port and remote port: 102
Local tsap: 0x1300
Remote tsap: 0x1301
Local IP: 192.168.0.96
PLC IP: 192.168.0.100

PLC:
CPU 1511-1 PN
6ES7 511-1AK01-0AB0
Firmware V2.9

Debug output:
[DEBUG]: TCP connected to 192.168.0.100:102
[DEBUG]: Sent COTP Connection Request
[DEBUG]: Negotiated PDU size: 1024
[DEBUG]: Unsupported COTP parameter: code=0xc1, length=2
[DEBUG]: Unsupported COTP parameter: code=0xc2, length=2
[DEBUG]: Received COTP Connection Confirm
[INFO]: Connected to 192.168.0.100:102, PDU size: 1024
[INFO]: Connected to remote partner at 192.168.0.100:102
[INFO]: Partner started (active mode)

Any idea what the problem could be? I'd be happy to run further tests...

Something else I've noticed: on the PLC in b_send and b_recv, the data packet is addressed with an "R-ID". However, I'm missing this in the partner module. Is this not yet implemented, or am I misunderstanding something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions