Closed htot closed 3 years ago
This is about a physical USB Ethernet adapter, not the USB gadget? Hmm, I have only one with an USB-C connector which I may not connect to the Edison.
That's right. I'll also test the USB gadget and bluetooth tether and open an issue if needed (likely).
With gadget:
No ip address same as with issue #8.
I fixed up the code for showing Wired network , except _getIFaceIP is now not working probably due to the interface not being called eth0 as we expect in wired_form(). On my machine it is called enp0s17u1u1. Hail systemd. When I modify that
Yeah, the problem lies in configure_edison
line 900:
...
elif Net == "Connected":
Settings.Wired.IP = _getIFaceIP("eth0")
Settings.Wired.Type = "Ethernet dongle"
Settings.Wired.Mode = "checked"
How could we figure out what the name of the actual interface is :thinking:?
One solution (but not a very pretty one) could be the use of something like this:
basename `find /sys/class/net/ -type d -name "eth0" -o -name "en*"`
Since I am not aware of any method to figure this out over connman 😞 .
Some more hacks: https://stackoverflow.com/questions/54761878/get-list-of-ethernet-device-names-in-bash-script
Once we know connman service name:
# connmanctl services ethernet_00800f951d4d_cable | grep Ethernet
Ethernet = [ Method=auto, Interface=enp0s17u1u1, Address=00:80:0F:95:1D:4D, MTU=1500 ]
Tested that. Needed one small fix e9c5a80cd6c58baee005ae8a3f9b53a400e3fe82, with that seems fine.
Okay, so I guess that we could close also this one?
Agreed
Hi @mwallnoefer
However, checking with connman: