Cannot Connect to Raspberry from Virtual Machine

makronaut
2022-11-17
2022-11-23
  • makronaut - 2022-11-17

    Hello,

    I am running Codesys on windows 10 inside a VirtualBox machine on an Ubuntu Installation.

    I am using a Raspberry PI as a CPU.

    I managed to install the runtime vie WIFI, and using the Standard NAT network configuration of VirtualBox. I connected to the Raspberry PI by using it's IP.

    Now I would like to activate the runtime license on the PI and it looks like the Codesys is not able to detect the device.

    I thought that the problem might be that the devices are in two different sub-nets, so I bridged the adapter in VirtualBox making the machine accessing directly my home network (so booth devices are in the same sub-net) but it still not working.

    Has anyone any idea why is it not working?

    Thank you very much for your kind help in advance.

     
  • eschwellinger

    eschwellinger - 2022-11-18

    you just need to install the EdgeGateway on the Pi (you will be asked on runtime install to do)
    and then add a new Gateway to CODESYS ( via ip address of the pi) and use the new Gateway to scan your PI.
    Then it will work.

     

    Last edit: eschwellinger 2022-11-18
  • makronaut - 2022-11-18

    Thanks for the tip. I got the gateway working and now I realized that the codesyscontrol_armv6l_raspberry.bin is not starting.
    When I try to start it manually with:
    sudo /opt/codesys/bin/codesyscontrol_armv6l_raspberry.bin -d /etc/CODESYSControl.cfg

    I get the following error:
    sudo: unable to execute /opt/codesys/bin/codesyscontrol_armv6l_raspberry.bin: No such file or directory

    I attached the screenshot of the Messages I receive if I try to run it through the Codesys "Update Raspberry Pi" tool

    Any Ideas?

     
  • eschwellinger

    eschwellinger - 2022-11-19

    64bit OS installed? only 32bit is possinle for PI

     

    Last edit: eschwellinger 2022-11-19
  • makronaut - 2022-11-23

    That did it, thank you @eschwellinger.

     

    Last edit: makronaut 2022-11-23

Log in to post a comment.