aboutsummaryrefslogtreecommitdiff
path: root/cli
AgeCommit message (Collapse)Author
2025-05-16api,bearer: new 'DisconnectRequest' propertyDominique Martinet
To report that the bearer has been killed from the modem side and the connection should be terminated. Signed-off-by: Dominique Martinet <dominique.martinet@atmark-techno.com>
2025-04-25api,modem: new 'IgnoredPorts' propertyLukas Voegl
Expose a new list of 'IgnoredPorts' via D-Bus and therefore remove the use of `MM_MODEM_PORT_TYPE_IGNORED` Signed-off-by: Lukas Voegl <lvoegl@tdt.de>
2025-04-03cli: report 5GNR RSSI in extended signal infoDan Williams
MBIM modems report RSSI and sometimes don't report more detailed RSRP and SNR info their MBIMex v2 signal-state replies. RSSI gets reported for every other access technology, and while it's not as good a signal indicator as the others, we might as well show something. Signed-off-by: Dan Williams <dan@ioncontrol.co>
2025-03-29mmcli/cell-broadcast: Allow to set channel listGuido Günther
Allows to set the channel list like: mmcli -m any --cell-broadcast-set-channels=0-9999,4353 Signed-off-by: Guido Günther <agx@sigxcpu.org>
2025-03-29mmcli/cell-broadcast: Add status outputGuido Günther
This allows to get the current channel list: $ mmcli -m any --cell-broadcast-status -------------------------- Cell Broadcast | channels: 0-9999,4353
2025-03-06broadband-modem,cli: slightly bump 3GPP scan timeout; add some cli dbus ↵Dan Williams
timeout slack Add some mmcli D-Bus timeout slack, making them slightly higher than the ModemManager internal timeout, to ensure the cli doesn't time out the D-Bus call when MM succeeds. For 3GPP scan, some modems appear to have internal 5 minute timeouts, so ensure MM doesn't time out right before the modem returns results: ModemManager[282578]: <dbg> [1741054422.321400] [ttyUSB2/at] --> 'AT+COPS=?<CR>' ModemManager[282578]: <wrn> [1741054722.247806] [modem1] failed scanning networks: Serial command timed out ModemManager[282578]: <dbg> [1741054724.119770] [ttyUSB2/at] <-- '<CR><LF>+COPS: (1,"T-Mobile","T-Mobile","310260",0),,(0,1,2,3,4),(0,1,2)<CR><LF><CR><LF>OK<CR><LF>' Signed-off-by: Dan Williams <dan@ioncontrol.co>
2025-03-05treewide: Fix some spelling errorsGuido Günther
All in debug messages or code comments so not user / client visible. Signed-off-by: Guido Günther <agx@sigxcpu.org>
2025-03-05cli: Added bearer path print after successful modem connectAnagh G
For a ModemManager simple connect using mmcli, added the bearer path on which call is connected. This helps in determining the bearer path to directly retrieve bearer information easily of this particular call. Signed-off-by: Anagh G <quic_anaghg@quicinc.com>
2025-02-25cli: fix Cell Broadcast Message short-path conflict with CallDan Williams
They both used 'o', but Call had it first. Change CBM to 'c'. Fixes: https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/962 Signed-off-by: Dan Williams <dan@ioncontrol.co>
2025-01-11cli: set higher 3GPP Scan(), Register(), and Connect() method timeoutsDan Williams
Similar to voice call mmcli timeouts, set larger proxy-wide timeouts for long-running operations. Match these timeouts with the internal ModemManager timeouts for the AT/MBIM/QMI operation timeouts. Fixes: https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/941 Fixes: https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/942 Signed-off-by: Dan Williams <dan@ioncontrol.co>
2024-12-01cli: Add support for listing and deleting Cell Broadcast messagesGuido Günther
This adds ``` $ mmcli -m 0 --cell-broadcast-list-cbm /org/freedesktop/ModemManager1/CBM/0 (received) /org/freedesktop/ModemManager1/CBM/0 (received) $ mmcli -m 0 --cell-broadcast-delete-cbm=0 successfully deleted CBM from modem $ mmcli -m 0 --cbm 0 -------------------------- General | path: /org/freedesktop/ModemManager1/CBM/1 -------------------------- Content | text: This is a test of the Ontario Alert Ready System. There is no danger to your health or safety -------------------------- Properties | update: 0 | message code: 0 ``` Signed-off-by: Guido Günther <agx@sigxcpu.org>
2024-12-01cli: Fix indentGuido Günther
We indent with one space after } Signed-off-by: Guido Günther <agx@sigxcpu.org>
2024-12-01cli: Fix copy/paste error in commentGuido Günther
We check call caps not messaging caps Signed-off-by: Guido Günther <agx@sigxcpu.org>
2024-10-07api,core,mmcli: Add new 'API' support to set-default-storage for SMSAkula Susmitha
API support has been added to set default storage for SMS. Changes were made to get, set the deafult storage value.
2024-07-09mmcli: fix a memory leakLubomir Rintel
Poor modem_uid got left behind.
2024-06-12api: new NetworkRejection propertyUjjwal Pande
When a modem is not able to register to the network, MBIM and QMI indications related to registration reports network rejection cause codes if request is rejected by the network. This information is currently logged in the ModemManager but not exposed outside of ModemManager. These are the changes to define interface to expose network reject cause codes over d-bus to the above layers which could be used by above layers to present this information in a user friendly way.
2024-05-31mmcli/sms: do not leak message_referenceLubomir Rintel
2024-05-29cli,3ppp: allow updating EPS settings before enablingAleksander Morgado
2023-12-11iface-location: allow enabling without SIMRaphaël Jakse
When the modem is in a failed state because of a SIM-related error, like a missing SIM, or if the modem is SIM-locked, allow the Location interface to initialize and be enabled anyway. This allows someone without a SIM to use the GPS, which does not particularly require a phone subscription. It also allows someone with a SIM to use the GPS even if the SIM is still locked. This patch was reworked, while keeping the original idea, by: Aleksander Morgado <aleksander@aleksander.es> Fixes #183
2023-09-18api,modem: new 'Physdev' propertyLukas Voegl
Signed-off-by: Lukas Voegl <lvoegl@tdt.de>
2023-06-08api: new carrier lock supportUjjwal Pande
Adding support for carrier lock for MBIM modems using google simlock mechanism.
2023-05-17mmcli: added --messaging-create-sms-with-text optionTom Wimmenhove
Added a `--messaging-create-sms-with-text' command line option that works similar to `--messaging-create-sms-with-data', except that it uses the content of the file as the message text instead of data. This allows creating mesasges containing both double and single quotes, which was not possible with the existing `--messaging-create-sms' command line option.
2023-04-14cli: update copyrightAleksander Morgado
2023-03-07cli: remove unneeded EOLs when printing PCOsAleksander Morgado
E.g. in the key-value output: modem.3gpp.pco.length : 2 modem.3gpp.pco.value[1] : session-id: 1, complete: yes, data: 270180\n modem.3gpp.pco.value[2] : session-id: 2, complete: yes, data: 271480802110030100108106503A3DFA8306503A3DFE\n Or in the human output: ---------------------------------- 3GPP | | pco: 1: (complete) '270180' | 2: (complete) '271480802110030100108106503A3DFA8306503A3DFE' ---------------------------------- 3GPP EPS | ue mode of operation: csps-2
2023-02-17cli,output: coding style fixesAleksander Morgado
2023-02-17cli,output: print valid json for network scan resultFlorian Eckert
A network scan with json output currently returns the following: root@G3-10940 ~ # mmcli -m 0 -J --3gpp-scan --timeout=300 | jq { "modem": { "3gpp": { "scan-networks": [ "operator-code: 26201, operator-name: TDG, access-technologies: lte, availability: forbidden", "operator-code: 26203, operator-name: o2 - de, access-technologies: lte, availability: forbidden", "operator-code: 26202, operator-name: vodafone.de, access-technologies: lte, availability: current" ] } } } This is a valid JSON, but in order to be able to access the individual data elements more easily, the line can also be dumped as a json object. The following commit converts the lines into a JSON obejct, so that it looks like this: root@G3-10940 ~ # mmcli -m 0 -J --3gpp-scan --timeout=300 | jq { "modem": { "3gpp": { "scan-networks": [ { "operator-code": "26201", "operator-name": "TDG", "access-technologies": "lte", "availability": "forbidden" }, { "operator-code": "26203", "operator-name": "o2 - de", "access-technologies": "lte", "availability": "forbidden" }, { "operator-code": "26202", "operator-name": "vodafone.de", "access-technologies": "lte", "availability": "current" } ] } } } Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2023-01-18cli: add formating option (json and key/value) for created SMSFrederic Martinsons
Fixes #657 Signed-off-by: Frederic Martinsons <frederic.martinsons@gmail.com>
2022-11-07build: drop autotoolsAleksander Morgado
2022-11-04libmm-glib,3gpp-profile: new print() methodAleksander Morgado
Can be used right away in the mmcli output generation logic.
2022-11-04core,log: new 'MSG' log level between 'INFO' and 'WARN'Aleksander Morgado
We're bumping the current "INFO" level messages to the new "MSG" level, also making the new level the default. The old "INFO" level will be used to setup an intermediate level of logging which is not as verbose as "DEBUG" but still provides some capabilities to analyze the behavior of a modem.
2022-10-19mmcli: update copyright yearsAleksander Morgado
2022-10-05libmm-glib,common-helpers: don't assume new_from_unix_utc() always succeedsAleksander Morgado
The g_date_time_new_from_unix_utc() method in glib2 may fail if the given timestamp is too far into the future. The value is supposed to be seconds since unix time origin, but internally it will be converted into usecs, so any value longer than G_MAXINT64 / USEC_PER_SECOND isn't allowed. This is currently used in the CLI, and we're anyway ignoring the error returned in that case, but at least it won't crash if it ever happens.
2022-08-19cli,output: plug leak of OutputItemListItem itemsAleksander Morgado
2022-08-19cli,sim: print GID1 and GID2 fields if availableAleksander Morgado
2022-08-19cli,sms: minor alignment fixAleksander Morgado
2022-05-25cli: don't print signal quality unless modem is enabledAleksander Morgado
We don't have a clear way to report "unknown" signal quality, so for now just skip printing it altogether in the mmcli human output if the modem is not yet enabled.
2022-04-28mmcli: correctly set key_lengthAmol Lad
Fixes https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/559
2022-02-16cli: new --test-session option to use the session busAleksander Morgado
2022-01-18mmcli,modem: new '--get-cell-info' actionAleksander Morgado
2021-12-26cli: fix 3GPP location mcc/mnc field namesAleksander Morgado
2021-12-26mmcli: new '--3gpp-profile-manager-status' operationAleksander Morgado
In order to show the properties of the profile management interface, e.g.: $ sudo mmcli -m a --3gpp-profile-manager-status ----------------------------------- 3GPP profile manager | index field: apn-type
2021-12-26cli,modem-3gpp-profile-manager: delete should allow other index fieldsAleksander Morgado
Instead of expecting a specific profile id, allow the command to support different index field types.
2021-12-24cli: indent all profile property names to the same columnAleksander Morgado
2021-12-24cli: don't use dashes in 3GPP profile human outputAleksander Morgado
2021-12-24cli: new 'profile-source' setting in 3GPP profileAleksander Morgado
2021-12-24cli: new 'roaming-allowance' in 3GPP profile and bearer propertiesAleksander Morgado
2021-12-24cli: new 'profile enabled' setting in 3GPP profileAleksander Morgado
2021-12-24cli: new 'access-type-preference' in 3GPP profile and bearer propertiesAleksander Morgado
2021-12-24cli,modem: add 5GNR registration settings in modem info outputAleksander Morgado
2021-12-24cli,modem-3gpp: new '--3gpp-set-nr5g-registration-settings' actionAleksander Morgado