Open bulat-ch opened 2 months ago
okay, so i went and looked at what would be needed to implement this, as i want to do that:
Currently, the network module takes data both from /proc/net/dev
and a RTNETLINK
socket.
Now, if we want to gather WWAN data, there should be a way to do it through RTNETLINK, using the wwan
type, but i'm not sure if we can get all the data we need that way.
All WWAN users use ModemManager
as the userspace, which does provide a nice DBus interface with which we can get all the information we need.
The only problem is how to integrate it with the existing network
module.
For example:
org.freedesktop.ModemManager1.Modem has everything we need, such as:
State
- MMModemState
(e.g. FAILED
, LOCKED
, DISABLED
, REGISTERED
, CONNECTED
, ...)AccessTechnologies
- MMModemAccessTechnology
(e.g. GSM
, GPRS
, EDGE
, UMTS
, HDSPA
, HDSPA+
, LTE
, ...)CurrentModes
- MMModemMode
(e.g. CS, 2G, 3G, 4G, 5G)SupportedModes
- MMModemMode
(e.g. CS, 2G, 3G, 4G, 5G)SignalQuality
- (0-100%)PowerState
- MMModemPowerState
(e.g. on, off or low power)PrimarySimSlot
- allows us to get the current active SIM, and with that the current carrier namei think that covers everything needed for a good wwan module, i'm going to try making it a separate module from network
, just so it's easier that way.
Hi! Is it aviable add wwan to network module? I mean something like "format-wwan" and data from modem manager as such as signal strength and mode (3,4,5G) ?