Community
cancel
Showing results for 
Search instead for 
Did you mean: 
JRose16
Beginner
1,040 Views

Edison: Simultaneous WiFi and Ethernet connection

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:

Then, I followed this thread /thread/75725# 310902 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

Tags (2)
0 Kudos
4 Replies
idata
Community Manager
41 Views

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://01.org/connman/documentation

 

https://github.com/aldebaran/connman/blob/master/src/main.conf https://github.com/aldebaran/connman/blob/master/src/main.conf

 

https://manned.org/connman.conf/1340e14e https://manned.org/connman.conf/1340e14e

 

https://wiki.archlinux.org/index.php/Connman 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

 

JRose16
Beginner
41 Views

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
idata
Community Manager
41 Views

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

 

idata
Community Manager
41 Views

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