We’re using a Huawei E3372h-320 and an Ethernet USB adapter in our project. One is for a 4G connection and the USB ethernet adapter is for passthrough. On startup, my Node.js script gets all devices from NetworkManager via DBus and filters out all non-ethernet devices and
eth0 (because we’re using that for Ethernet-in). But the Huawei E3372h-320 functions as a ethernet device, which is nice because it works out of the box. Because of this however, NetworkManager says it’s a ethernet device instead of a 4G device. So how can we determine which is which?
I’ve checked the DBus docs, but I couldn’t find anything. The only value that’s different is the driver the devices use. The Huawei E3372h-320 uses the
cdc_ether driver and the USB uses the
ax88179_178a driver. So I can filter on that, but it’s not that reliable for future purposes.
Does anyone know if there’s another way to determine which is the 4G USB via the NetworkManager DBus?
Thanks in advance!