I am following the instructions in : https://bovs.org/post/168/Building-Yocto-linux-for-Intel-Edison-with-3G-USB-modems-support https://bovs.org/post/168/Building-Yocto-linux-for-Intel-Edison-with-3G-USB-modems-support
I am successfully using Wifi and 3G at the same time. Both connection works individually.
As the figure shows above, Intel Edison first will connect with Wifi and works properly.
If I disconnect the WIFI connection, the Intel cannot switch to 3g.
Here is what I want to achieve:
1. At first, connect with WiFi.
2. If the WiFi disconnect, the backup 3g module will connect automatically.
3. If the WiFi reconnect again, the connection will switch 3g module back to Wifi.
Any methods to do this?
Thanks for your interest in the Intel Edison Platform.
We appreciate all the information provided. We would like to investigate a little bit more regarding how that could be done and as soon as we find helpful information we let you know.
We'll appreciate your patience during the meantime.
Thanks for your patience. We have been investigating and as you have mentioned the Edison board first will connect to your WIFI connection automatically since there is a daemon (wpa_suplicant.service) that runs in the background controlling the wireless connection, however, I was thinking of a method to connect automatically to your backup 3G module when the WIFI connection fails, and you could create a script that detects when the WIFI connection has failed and then switch to the 3G module and vice versa.
I have not created a script to do it, but I have found some information that you can find useful in order to create your script. Please take a look at the following links:
- http://askubuntu.com/questions/481165/automatic-switch-between-the-wifi-and-ethernet-in-linux-using-... automatic switch between the Wifi and ethernet in Linux using command line
- http://askubuntu.com/questions/258580/how-to-run-a-script-depending-on-internet-connection How to run a script, depending on internet connection
- /message/253426# 253426 Startup Scripts?
- http://stephaniemoyerman.com/?p=41 Automatic Scripting at Boot-Up
Hope this information helps.