Setting up gateway to raspberry pi

Runtime
niko0807
2020-06-26
2020-06-29
  • 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.

     

Log in to post a comment.