You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by cd...@apache.org on 2021/09/17 09:25:19 UTC

[plc4x] 04/05: First successful connection to a PROFINET device

This is an automated email from the ASF dual-hosted git repository.

cdutz pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git

commit a635ec798ba51cf68597f08dd031e78026655b22
Author: cdutz <ch...@c-ware.de>
AuthorDate: Mon Sep 13 10:01:58 2021 +0200

    First successful connection to a PROFINET device
---
 .../src/test/java/org/apache/plc4x/java/profinet/ProfinetPoc.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plc4j/drivers/profinet/src/test/java/org/apache/plc4x/java/profinet/ProfinetPoc.java b/plc4j/drivers/profinet/src/test/java/org/apache/plc4x/java/profinet/ProfinetPoc.java
index e90849a..c1065c1 100644
--- a/plc4j/drivers/profinet/src/test/java/org/apache/plc4x/java/profinet/ProfinetPoc.java
+++ b/plc4j/drivers/profinet/src/test/java/org/apache/plc4x/java/profinet/ProfinetPoc.java
@@ -33,7 +33,7 @@ public class ProfinetPoc {
 
         // Send Profinet IO Context Manager (PNIO-CM) Connection Request (UDP)
         DceRpc_Packet connectionRequest = new DceRpc_Packet_Req(
-            1, 0xCAFE, 0x060B, 1, 0, 0, DceRpc_Operation.CONNECT,
+            1, 0x0904, 0x002A, 1, 0, 0, DceRpc_Operation.CONNECT,
             new PnIoCm_Packet_Req(404, 404, 0, 404,
                 new PnIoCm_Block[]{
                     new PnIoCm_Block_ArReq((short) 1, (short) 0, PnIoCm_ArType.IO_CONTROLLER,