Can't connect to Device Raspberry Pi 4 from CODESYS IDE V3.5 SP19

lubos
2023-05-17
2024-04-26
  • lubos - 2023-05-17

    Hi,

    please after update to new version of CODESYS IDE V3.5 SP19, I can't scan and connect Raspberry Pi 4 Device with local Gateway. I've been trying to find a solution for a few days, but I haven't found.
    See attached pictures.
    CODESYS runtime and Gateway is installed on Device (i can read the status), but the connection is not estabilished. It seems, that Device don't answer right on TCP request (RST Flag is set in Wireshark packet data capture).
    There is "Gateway not configured properly" in Security Screen - where can I configure?

    Thanks for tips!
    Lubomir.

     
  • eschwellinger

    eschwellinger - 2023-05-17

    could you login to the Pi by ssh and check
    'top' see if gateway and runtime are up and running...

     
  • lubos - 2023-05-17

    Yes, I have this tasks running from SSH login, see picture. Is it OK?

     
  • eschwellinger

    eschwellinger - 2023-05-17

    no only the gateway is up and running.. could you do a 'uname -a'?

     

    Last edit: eschwellinger 2023-05-17
  • lubos - 2023-05-18

    Hello Edwin,
    thanks for tips, but still it didn't help - same result.

    'uname -a' shows:
    ---without arm64bit=0 (before)
    Linux raspberrypi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux

    ---with arm64bit=0 (after)
    Linux raspberrypi 6.1.21-v7l+ #1642 SMP Mon Apr 3 17:22:30 BST 2023 armv7l GNU/Linux

    Security screen still shows "Gateway not configured properly". Firewall is OFF.
    Thanks for info!

     
  • eschwellinger

    eschwellinger - 2023-05-19

    check again with 'top' if the runtime runs with the setting..it will i'm sure.
    then add new Gateway in CODESYS with the the IP of your PI an scan via this new added Gateway

     

    Last edit: eschwellinger 2023-05-19
    • yongchaow - 2024-04-25

      Hi, eschwellinger,
      I have the same problem, but I can not resolve the problem following this forum.

      There are my situation:
      pi@RevPiXXXX:~ $ uname -a
      Linux RevPiXXXX 5.10.120-rt70-v7l #1 SMP PREEMPT_RT Thu, 28 Jul 2022 10:36:48 +0200 armv7l GNU/Linux
      After "top":
      It looks like runtime is not running.

      One more piece of information to refer to, when I reboot the device it is possible to scan the device.

      Looking forward your reply.

       
      • eschwellinger

        eschwellinger - 2024-04-26

        with latest version?

         
  • lubos - 2023-05-19

    Hi Edwin,

    You are right :), It works with new Gateway-2, where is set IP of remote Device.
    So I don't have to use the old way with "localhost" anymore?

    In picture You see TOP tasks and comparison between "localhost" and "192.168.2.50" Gateway.

    Thanks for help!

     

Log in to post a comment.