Intel® Makers
Intel® Edison, Intel® Joule™, Intel® Curie™, Intel® Galileo
Announcements
Welcome - This is a Peer-to-Peer Forum only. Intel has discontinued these products but you may find support from other customers on this Forum
9868 Discussions

How to switch between LAN and WIFI on intel galileo

idata
Community Manager
1,248 Views

I have LAN and WI-FI working on my intel galileo.

Using LAN(eth0) and Wi-Fi(wlan0) interfaces I am able google.com.

But some times my Wi-Fi stops working. So I have to use galileo such that it should automatically switch to LAN if Wi-Fi stopped working and switch to Wi-Fi if LAN is not working.

I am not sure how to do this.

Please let me know if anyone have done this before.

Regards,

Chetan

6 Replies
Pablo_M_Intel
Employee
101 Views

Hi cgoma,

This behavior should be automatic by default if I'm not mistaken, I'm not sure why you have to change the network manually. Could you please share a screenshot of your wpa_supplicant configuration file?

Regards,

PabloM_Intel

idata
Community Manager
101 Views

Hi PabloM_Intel,

I dont think this behaviour is automatic by default.

I want to change my network automatically between Wi-Fi, LAN or 3G.

I am able to connect to internet using these modules individually.

This is what I want to achieve:

1. If LAN cable and Wi-Fi card both are connected to galileo, galileo should try to connect to internet using LAN cable. If it is not able to connect to internet using LAN cable(i.e. may be becuase LAN cable is loosely attched to it.), galileo should try to connect using Wi-fi card. If it should get successfully connected to Wi-Fi .

As now we have Wi-Fi connectivity on galileo board, insert the LAN cable and galileo board should then route data packet through LAN interface.

Pablo_M_Intel
Employee
101 Views

Hi cgoma,

You should see if there's a change in the bus when you connect and disconnect the Ethernet cable, if there's a change it should be possible to write a sketch that detects this change/behavior to activate or deactivate your WiFi connection. The downside is that this sketch would be always running because it needs to check each and every time that a change in the bus takes place.

You should start with that. Checking the bus when the cable is connected.

Regards,

PabloM_Intel

Carlos_M_Intel
Employee
101 Views

Hi Chetan,

Have you been able to manage the priority of the networks in your board?

Regards,

Charlie

idata
Community Manager
101 Views

Hi Charlie,

I am not sure how to able to manage the priority of the networks.

Please let me know how to manage priority.

Regards,

Chetan Gomase

Carlos_M_Intel
Employee
101 Views

Hi cgoma,

Have you tried with Pablo's suggestions? Have you tried with another approach?

Regards,

Charlie

Reply