Based on the documentation for ResinOS 2.0 it looks like the new approach to getting cellular connectivity is to create a NetworkManager config in the boot partition, in the system-connections directory. Is this really all that needs to be done, or is there more magic involved? We’ve got the qmi_wwan module compiled in our new resin build, and the network interface is being created properly, however I can’t see any evidence that NM / MM is really trying to use the config from the boot partition to establish a connection. Is there anything extra we should try to make it work? The connection configuration has been taken from a working NM config on a standard Ubuntu setup, so I know it’s kosher.
Hi @cmoss, not an expert on this but I’m being told you can try to use nmcli to debug the connection on a resinos.io image (so that you can run the commands on the host).
Maybe seeing some logs (journalctl, dmesg) would also help us see what might be wrong.
Cheers!
Actually, it looks like the connection isn’t being used by the HostNetwork manager at all. Here’s the output regarding currently available connections, retrieved from a container over dbus:
The LTE Module is being picked up by NM, and being managed, however the LTE connection as saved in the system-connections boot directory isn’t even registered. We’re going to build an image which enables SSH access to the host today, so I’ll be able to do more debugging later.
I’ve since manually created an NM connection setting for my LTE connection via DBUS, and activated it, also using DBUS, and it’s starting up perfectly - if anyone is looking for a straightforward way to control the host NetworkManager from a container, I can highly recommend this high-level Python interface here:
Just don’t forget to tell it where the dbus socket is hiding, i.e.:
Chatting about this internally, it should just work by default when everything is set up fine. We’ve ordered some modems like this, and will be testing it out (likely @shaunmulligan, our 4G wizard ). Let you know if we figure out anything further, or would be happy to hear if you have any more info in the meantime!