Translating AT commands to ModemManager commands?
Aleksander Morgado
aleksander at aleksander.es
Wed May 17 20:03:36 UTC 2017
On Wed, May 17, 2017 at 10:27 AM, Einar Jón <tolvupostur at gmail.com> wrote:
> # Testing that the modem is alive
> AT -> easy
Yes, just check if the modem is exposed, and if it is it was able to talk AT.
> # Testing that the SIM is not locked
> AT+CPIN? -> 'UnlockRequired'
Yes, UnlockRequired:
https://www.freedesktop.org/software/ModemManager/api/latest/gdbus-org.freedesktop.ModemManager1.Modem.html#gdbus-property-org-freedesktop-ModemManager1-Modem.UnlockRequired
> # Testing Subscriber Identity
> AT+CIMI
This would be SIM IMSI:
https://www.freedesktop.org/software/ModemManager/api/latest/gdbus-org.freedesktop.ModemManager1.Sim.html#gdbus-property-org-freedesktop-ModemManager1-Sim.Imsi
> # Testing error level setting
> AT+CMEE=2
We don't have anything for this in the API.
> # Testing Antenna Power
> AT+CIND?
AT+CIND is generic for a lot of different indicators. We don't have
anything in the API specific for "antenna power". What is the
indicator you want to retrieve exactly?
> # Testing check power mode
> AT+CFUN? 'PowerState'
Yes, PowerState:
https://www.freedesktop.org/software/ModemManager/api/latest/gdbus-org.freedesktop.ModemManager1.Modem.html#gdbus-property-org-freedesktop-ModemManager1-Modem.PowerState
> # Testing Signal Power
> AT+RSCP?
The "Umts" dictionary in the "Signal" interface now may expose RSCP
values if the backend implementation supports it:
https://www.freedesktop.org/software/ModemManager/api/latest/gdbus-org.freedesktop.ModemManager1.Modem.Signal.html#gdbus-property-org-freedesktop-ModemManager1-Modem-Signal.Umts
The "latest" api docs don't say anything about it because it was added
in git master only:
https://cgit.freedesktop.org/ModemManager/ModemManager/commit/introspection/org.freedesktop.ModemManager1.Modem.Signal.xml?id=9b3549e375af5d80fa9986cdbddfa51fe16dfe3e
We obtain the values for the extended Signal interface in AT-based
modems using +CESQ, though, see:
https://cgit.freedesktop.org/ModemManager/ModemManager/commit/src/mm-broadband-modem.c?id=90943177ed7913ee506fb9e5d37bb693d38b54f6
> # Testing Signal Quality
> AT+CSQ -> 'SignalQuality'
Yes, SignalQuality:
https://www.freedesktop.org/software/ModemManager/api/latest/gdbus-org.freedesktop.ModemManager1.Modem.html#gdbus-property-org-freedesktop-ModemManager1-Modem.SignalQuality
> # Testing PLMN selection
> AT+COPS?
That would be querying the current operator of the serving system, so
either OperatorCode or OperatorName:
https://www.freedesktop.org/software/ModemManager/api/latest/gdbus-org.freedesktop.ModemManager1.Modem.Modem3gpp.html#gdbus-property-org-freedesktop-ModemManager1-Modem-Modem3gpp.OperatorCode
https://www.freedesktop.org/software/ModemManager/api/latest/gdbus-org.freedesktop.ModemManager1.Modem.Modem3gpp.html#gdbus-property-org-freedesktop-ModemManager1-Modem-Modem3gpp.OperatorName
--
Aleksander
https://aleksander.es
More information about the ModemManager-devel
mailing list