Problem with Model B+ Ethercat & Wlan/Wifi on USB

2014-08-08
2016-03-06
  • eschwellinger

    eschwellinger - 2014-08-08

    Hi,
    there is a problem if you try to use the Ethercat Example with Pi Model B+ and WLanstick
    to login. (Sure this work with Model B)
    If you start the CODESYS project immediately wlan/wifi get disconnected ... !
    We are currently investigating this , B+ seems to have a new Networkchip and a new USB implementation which
    seems to be the reason for this.
    I guess this is not CODESYS related.. if anyone has found a solution this would be great.

    Give you new information as soon we found a solution for this, probably a workaround could be to use a Lan/USB adapter
    but even this should be verified.

    BR
    Edwin

     
  • eschwellinger

    eschwellinger - 2014-08-13

    Hi,
    now I found the time to verify this,
    for me the solution of the link works.

    1. change /etc/default/ifplugd

    sudo nano /etc/default/ifplugd
    INTERFACES="eth0"
    HOTPLUG_INTERFACES="eth0"
    ARGS="-q -f -u0 -d10 -w -I"
    SUSPEND_ACTION="stop"

    1. then reboot

    2. after reboot you need to
      sudo ifplugd eth0 --kill

    (proposal is to do that later in rc.local)

    After that even if wlan is connected and we start ethercat on eth0 or connect disconnect eth0
    in my case it works. (not disconnection on wlan happens now)

    BR
    Edwin

    IMG: Ethercat_Wlan_onBPlus.jpg

     
  • Francesco - 2014-09-21

    Hi,

    I've a mini usb wifi modul with RTL8192cu chipset.
    I'd like to use:
    -eth0 for EtherCAT master
    -wlan0 as access point for programming codesys RPi.

    Please help me how to set interfaces, drivers, wpa.. so on.

    Thank you!
    BR
    Francesco

     
  • Anonymous - 2016-03-06

    Originally created by: OW_RPi

    Hello Edwin,

    your suggestion worked fine for my RPi B+.

    But when I creat a boot application, after reboot the wifi connection just drops out as soon as my application starts.

    Seems like "sudo ifplugd eth0 --kill" has to be done after every reboot.

    Are there any updates on this topic or further ways around this problem.

    Thank you!

    Best regards,
    Oleg

     

Log in to post a comment.