Skip to content

fix(plc4j/eip): fix ConnectionManager - #2673

Merged
chrisdutz merged 1 commit into
apache:developfrom
andvasp:fix/plc4j-eip-connection-manager
Aug 10, 2026
Merged

fix(plc4j/eip): fix ConnectionManager#2673
chrisdutz merged 1 commit into
apache:developfrom
andvasp:fix/plc4j-eip-connection-manager

Conversation

@andvasp

@andvasp andvasp commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

The field connectionSerialNumber is out of range to establish connection
Add missing encoding for unsigned integers to reading tags

connectionSerialNumber is out of range to establish connection
add missing encoding for unsigned integers to reading tags

@chrisdutz chrisdutz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was already Ok .... no Idea what I saw there last time ;-)

@chrisdutz

Copy link
Copy Markdown
Contributor

Argh!!!! ... stupid signatures :-( (I think we're stalled here till that "feature" is turned off again :-( )

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes EtherNet/IP (EIP) connection establishment and tag decoding by ensuring protocol fields are encoded/decoded with the correct unsigned integer settings, and by constraining the Connection Manager connectionSerialNumber to a valid 16-bit range.

Changes:

  • Generate connectionSerialNumber within a 16-bit unsigned range to avoid out-of-range serialization when opening/closing connections.
  • Use the existing EipTcpMessageCodec buffer factories when encoding tag paths and decoding multi-service responses, ensuring consistent byte order and unsigned integer encoding.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@chrisdutz
chrisdutz merged commit bc6a364 into apache:develop Aug 10, 2026
2 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants