4 Replies Latest reply on Jun 9, 2016 6:18 PM by Intel Corporation

    Edison: Simultaneous WiFi and Ethernet connection

    jamesboslice

      Hey all,

       

      I'm working to get the Edison to connect to two different networks over ethernet (via the LAN9512 usb-to-ethernet chip) and wifi, simultaneously and automatically when booted.

       

      First I set a static IP for wifi following this thread: How to set a Static IP

       

      Then, I followed this thread https://communities.intel.com/thread/75725#310902  to setup the ethernet connection, only using these lines from the first part of the "correct answer":

      systemctl start connman

      systemctl enable connman

      connmnanctl

      connmanctl> enable ethernet

      connmanctl> services

      *A0 Wired     ethernet_00106031716e_cable

      connmanctl> config ethernet_00106031716e_cable --ipv4 dhcp

       

      However, now my board will connect only through ethernet and not wifi.

       

      Any tips on where I might look to resolve this?  Please let me know if you'd like any screenshots, etc.

       

      -J

        • 1. Re: Edison: Simultaneous WiFi and Ethernet connection
          Intel Corporation
          This message was posted on behalf of Intel Corporation

          Hi,

           

          I suggest you to change the /var/lib/connman/settings file in order to add the PreferredTechnologies and the SingleConnectedTechnology for managing the interfaces you are going to use.
          Take a look at the following links:
          https://01.org/connman/documentation
          https://github.com/aldebaran/connman/blob/master/src/main.conf
          https://manned.org/connman.conf/1340e14e
          https://wiki.archlinux.org/index.php/Connman This is for archlinux, but it should work the same way on Yocto:

          “..ConnMan allows you to be connected to both ethernet and wireless at the same time. This can be useful as it allows programs that established a connection over wifi to stay connected even after you connect to ethernet…"

           

          Also, why do you want this configuration (More speed, an interface as backup, …)?

           

          Regards,
          Charlie

          • 2. Re: Edison: Simultaneous WiFi and Ethernet connection
            jamesboslice

            Hi Charlie,

             

            Thank you for the quick response and help.  My goal is to be able to connect the edison to other single board computers (e.g. raspberry pi) over ethernet and then have a wireless connection to the network.

             

            I've added the PreferredTechnologies and SingleConnectedTechnology lines to the /var/lib/connman/settings file.  With this, I can now connect to both ethernet and wifi, however, on startup,  the Edison will only connect to ethernet.  I then have to manually go through "configure_edison --setup" to turn on wifi.  If I reboot, the dual connection is lost and the edison will only connect over ethernet.  Do you know how I might fix this so that it connects to both on startup?

             

            Screenshot:

            On first boot, with the edison and my breakout board connected to ethernet, I'll only have connectivity to ethernet and not wifi. "ifconfig" shows I only get an ip address for enp0s17u1u1.  I confirmed the ethernet connection by pinging the edison from my desktop machine over the network.

             

            Thanks,
            J

            • 3. Re: Edison: Simultaneous WiFi and Ethernet connection
              Intel Corporation
              This message was posted on behalf of Intel Corporation

              Hi,

              Have you checked if there are changes in the /etc/wpa_supplicant/wpa_supplicant.conf everytime the board boots?
              Also, have you tried by configuring the network using connman instead of using configure_edison --setup? With Connman you need to run 
              >connmanctl
              >enable wifi
              >scan wifi
              >services
              >agent on
              >connect HashA_HashB_managed_psk
              *Password.
              >quit

              Also, please check the status of the connman and wpa_supplicant services with:
              systemctl status wpa_supplicant
              systemctl status connman


              Regards,
              -Charlie
               

              • 4. Re: Edison: Simultaneous WiFi and Ethernet connection
                Intel Corporation
                This message was posted on behalf of Intel Corporation

                Hi,

                I would like to know if you have been able to work on this and the results you have obtained. Please let me know if you checked the wpa_supplicant file and if you tried with connman.

                Regards,
                Charlie