Setting up gateway to raspberry pi

niko0807
2020-06-26
2020-08-31
  • niko0807

    niko0807 - 2020-06-26

    Hi All,

    I am trying to set up a gateway to my raspberry pi (Revolution Pi to be exact), but when I "Scan Network" it doesn't appear.

    My setup consist of an Azure Windows VM (I have a mac) with the latest CODESYS 3.5 and an OpenVPN connection to "OpenVPN Cloud". At the other end I have the Pi also connected to OpenVPN cloud.

    I am able to SSH into the pi via the VPN, and equally I have been able to flash the CODESYS runtime to the pi. When I scan from the raspberry Pi window it appears.

    However, when I cannot set up a "Gateway" - the Pi doesn't appear when i Scan the network. I've used "localhost" and the OpenVPN network adapter IP address (See screenshot)

    Do you know what could be the issue here?

    Thanks,
    Nik

     
  • eschwellinger

    eschwellinger - 2020-06-26

    Hi, you need to Install the Edge gateway Plugin (Linux)from the CODESYS Store:
    https://store.codesys.com/cas/codesys-edge-gateway.html#All%20versions
    and deploy the armhf Edge Gateway to the Pi.
    Do not forget to check if using the CODESYS Automation Server would be an option for that you could login via Automation Server to your plc / Rev Pi:
    https://www.youtube.com/watch?v=8KLywg51Xyk

    Best Regards
    Edwin

     

    Last edit: eschwellinger 2020-06-26
    • niko0807

      niko0807 - 2020-06-27

      Hi Edwin,

      I followed the link to the Codesys edge gateway, but I'm not sure how to deploy the armhf Edge Gateway to the Pi?

      Is this done via Update Raspberry Pi -> Install additional packages? (in which case I don't know where to find the .deb package file)

      With regards to the Automation Server, is this a completely separate thing or is it needed for the edge gateway? I will probably try it, but I'm not a fan of the 40EUR monthly fee from next year.

      Thank you.

       
  • eschwellinger

    eschwellinger - 2020-06-28

    Hi,
    after installing the package there is an own update command for the Edge Gateway.
    Automation Server is an own separate product - which uses the Edge Gateway to login to the plc's.
    It is worth to try - you could see the Webvisu
    https://www.youtube.com/watch?v=Kyf9bCpPa6s
    additional beside login to remote plc's with CODESYS.

    Regards
    Edwin

     

    Last edit: eschwellinger 2020-06-28
  • niko0807

    niko0807 - 2020-06-28

    Thanks for the quick replay. I'll try the Automation Server once I have the Edge Gateway up and running.

    Unfortunately I've been unsuccessful so far. In the screen shot you've attached, you have the "Update Edge Gatway" option - this doesn't appear in my installation - I only have the "Update Rapsberry Pi option". I installed the Edge Gateway on my PC so I don't really understand why it doesn't appear.

    Best regards,
    Nik

     
  • eschwellinger

    eschwellinger - 2020-06-28

    did you install the Linux Edge using the shoping card in CODESYS?
    Do not forget to restart CODESYS after the installation process.

    BR
    Edwin

     
  • niko0807

    niko0807 - 2020-06-29

    Right, that explains my mistake. I've now installed the edge on
    the Pi.

    Unfortunately, I still can't find it when I "Scan Network" - any idea what I'm missing here?

    Thanks
    Nik

     
  • eschwellinger

    eschwellinger - 2020-06-29

    login by ssh client (putty or any other) to the pi and check by using
    'top' is the gateway is up and running

    BR
    Edwin

     
  • niko0807

    niko0807 - 2020-06-29

    It seems to work now.

    The error I made was to type in my PC's IP address as the gateway - instead of my Pi's address.

    Now that I typed the Pi address in as the gateway it works.

    Thanks so much for you help Edwin. Really appreciate it.

     
  • elsabz

    elsabz - 2020-08-26

    Hi,

    i am in the same situations, i have openvpn active: i can ping the pi and i can see the system info trough the "Update Edge Gateway" software included in codesys 3.5 sp16. If i go with putty to the pi i can open and execute the "top" command line, the result is ok the process "codesysedge.bin" is runnig as root user. In codesys develop (windows machine) i setup the gateway with the ip adress of pi but unfortunately, I still can't find it when I "Scan Network". Any idea what I'm missing here?

     
  • elsabz

    elsabz - 2020-08-31

    Hello, now i understand why it didn't work, i had to enable portforwarding for port 1217. i hope it can help someone.

     
  • eschwellinger

    eschwellinger - 2020-08-31

    sorry yes nissed to say this,
    but isn't using CODESYS Automation Server an option for you, to have it much easier on
    login in remote to you PI system by CODESYS?
    https://www.youtube.com/watch?v=8KLywg51Xyk

     

    Last edit: eschwellinger 2020-08-31
  • elsabz

    elsabz - 2020-08-31

    Hi Edwin, I don't use Codesys Automation Server, I would have liked but 39.5 € per month for 5 PLCs from 2021 worries me. I use a server with openvpn and it works at a cost of 2.7 € per month. Sure Codesys Automation Server is amazing, but for now not for us, we hope that in the future the price becomes more affordable, thanks.

     

Log in to post a comment.