in general that's a task for connman. However, my impression is that connman isn't fully integrated in the Edison Yocto build (yet).
Apparently, out of the box, connman needs to be configured properly.
I get messages of the sort: "The name net.connman was not provided by any .service files"
I can dig into this but isn't there an already built-in way to try to "up the network" in case something fails ?
For instance does somebody know what are the equivalents to:
Thanks a lot!
The script inside "configure_edison" actually contains a lot of information on how to do (separately) the steps of a "network restart".
"configure_edison" is located here: /usr/bin/configure_edison
Sounds like I can solve this by finding the proper commands using wpa_cli.
If somebody knows something more straightforward, please post back here.
well, connman would have to be initialized by "systemctl enable connman && systemctl start connman"
Surely you can also do using lower level wpa_supplicant directly
Strangest thing now: dns lookup is not working anymore (/etc/resolv.conf is empty)
This is after I tested network reconnection using "wpa_cli reassociate".
I can however ping any internet address... I tried rebooting (and even disconnected from energy). But this problem is persisting now.
Any ideas of what might going on ? Everything was fine before I issue "wpa_cli reassociate".
How are you pinging the internet addresses? Are you using the domain name or the IP address?
Could you try pinging 220.127.116.11 and then www.google.com and tell us what happen?
Also, I'm not sure if it'll help but the content of resolv.conf is: