summaryrefslogtreecommitdiff
path: root/cli
Commit message (Collapse)AuthorAgeFilesLines
* mmcli: added --messaging-create-sms-with-text optionTom Wimmenhove2023-05-172-16/+74
| | | | | | | | | 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.
* cli: update copyrightAleksander Morgado2023-04-141-2/+2
|
* cli: remove unneeded EOLs when printing PCOsAleksander Morgado2023-03-071-2/+2
| | | | | | | | | | | | | | | | | 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
* cli,output: coding style fixesAleksander Morgado2023-02-171-8/+8
|
* cli,output: print valid json for network scan resultFlorian Eckert2023-02-171-17/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* cli: add formating option (json and key/value) for created SMSFrederic Martinsons2023-01-183-1/+5
| | | | | | Fixes #657 Signed-off-by: Frederic Martinsons <frederic.martinsons@gmail.com>
* build: drop autotoolsAleksander Morgado2022-11-071-63/+0
|
* libmm-glib,3gpp-profile: new print() methodAleksander Morgado2022-11-041-124/+19
| | | | Can be used right away in the mmcli output generation logic.
* core,log: new 'MSG' log level between 'INFO' and 'WARN'Aleksander Morgado2022-11-041-1/+1
| | | | | | | | | 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.
* mmcli: update copyright yearsAleksander Morgado2022-10-191-1/+1
|
* libmm-glib,common-helpers: don't assume new_from_unix_utc() always succeedsAleksander Morgado2022-10-051-2/+2
| | | | | | | | | | | 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.
* cli,output: plug leak of OutputItemListItem itemsAleksander Morgado2022-08-191-0/+1
|
* cli,sim: print GID1 and GID2 fields if availableAleksander Morgado2022-08-193-1/+16
|
* cli,sms: minor alignment fixAleksander Morgado2022-08-191-1/+1
|
* cli: don't print signal quality unless modem is enabledAleksander Morgado2022-05-253-6/+11
| | | | | | 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.
* mmcli: correctly set key_lengthAmol Lad2022-04-281-1/+3
| | | | Fixes https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/559
* cli: new --test-session option to use the session busAleksander Morgado2022-02-161-2/+29
|
* mmcli,modem: new '--get-cell-info' actionAleksander Morgado2022-01-183-0/+87
|
* cli: fix 3GPP location mcc/mnc field namesAleksander Morgado2021-12-261-2/+2
|
* mmcli: new '--3gpp-profile-manager-status' operationAleksander Morgado2021-12-263-1/+32
| | | | | | | | 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
* cli,modem-3gpp-profile-manager: delete should allow other index fieldsAleksander Morgado2021-12-261-13/+48
| | | | | Instead of expecting a specific profile id, allow the command to support different index field types.
* cli: indent all profile property names to the same columnAleksander Morgado2021-12-241-10/+10
|
* cli: don't use dashes in 3GPP profile human outputAleksander Morgado2021-12-241-3/+3
|
* cli: new 'profile-source' setting in 3GPP profileAleksander Morgado2021-12-241-0/+7
|
* cli: new 'roaming-allowance' in 3GPP profile and bearer propertiesAleksander Morgado2021-12-243-0/+23
|
* cli: new 'profile enabled' setting in 3GPP profileAleksander Morgado2021-12-241-0/+2
|
* cli: new 'access-type-preference' in 3GPP profile and bearer propertiesAleksander Morgado2021-12-243-235/+254
|
* cli,modem: add 5GNR registration settings in modem info outputAleksander Morgado2021-12-243-0/+20
|
* cli,modem-3gpp: new '--3gpp-set-nr5g-registration-settings' actionAleksander Morgado2021-12-241-1/+70
|
* cli,sim: new 'SimType', 'Removability' and 'EsimStatus' propertiesAleksander Morgado2021-12-113-0/+9
|
* build,meson: Make feature options booleanIñigo Martínez2021-11-081-4/+5
| | | | | | | | | | | Different options are set as `feature`, also every possible plugin, but this may cause confusion. All options set as `feature` but plugins have been made `boolean` to avoid further confusions. `help2man` is also installed in the CI image because is required to build different libraries.
* api,bearer: add 'uplink-speed' and 'downlink-speed' statsSom_SP2021-11-033-0/+14
| | | | | | | | | | | These values show the rates that have been negotiated with the network during the PS domain attach. These are not the current ongoing data rates associated to the network usage at some given moment. Includes updates by Aleksander Morgado to fix coding style issues and add missing documentation items.
* api,3gpp: new 'SetPacketServiceState()' methodAleksander Morgado2021-11-021-1/+85
|
* api,3gpp: new 'PacketServiceState' propertyAleksander Morgado2021-11-023-6/+11
| | | | | This property allows the user to know whether the device is attached or detached from the packet domain service.
* cli, plugins: factorize usage of iso8601 datetime formatFrederic Martinsons2021-10-221-1/+1
| | | | | | Signed-off-by: Frederic Martinsons <frederic.martinsons@sigfox.com> Includes updates by Aleksander Morgado to fix coding style issues.
* api,bearer: new 'start-date' field in bearer statisticsFrederic Martinsons2021-10-223-8/+32
| | | | | | | | | | It stores the epoch timestamp of the current bearer session start. If there is no connected bearer, it is set to 0 and not displayed in mmcli output. Signed-off-by: Frederic Martinsons <frederic.martinsons@sigfox.com> Includes updates by Aleksander Morgado to fix coding style issues.
* libmm-glib: new 'MMSignalThresholdProperties' helper objectAleksander Morgado2021-10-201-76/+12
| | | | To avoid needing to work with GVariants directly.
* libmm-glib,mmcli: add support for the new signal 'SetupThresholds()' APISom_SP2021-10-203-28/+173
| | | | Includes updates by Aleksander Morgado to fix mostly coding style issues.
* libmm-glib,mmcli: add support for 'error-rate' measurements in signal infoSom_SP2021-10-203-20/+56
| | | | Includes updates by Aleksander Morgado to fix mostly coding style issues.
* 3gpp-profile: Add profile nameAndrew Lassalle2021-10-171-0/+6
| | | | | QMI modems also report a profile name, and that value can be used to select and update a specific profile.
* cli,signal: fix error message without EOLAleksander Morgado2021-10-141-2/+2
|
* mmcli,sar: rename actions to just --sar-enable and --sar-disableAleksander Morgado2021-10-131-2/+2
|
* build,meson: add SAR interface support in mmcliAleksander Morgado2021-10-131-0/+1
|
* mmcli:add SAR command --sar-status/--sar-enable/--sar-disable/--set-power-levellvmaorui2021-10-136-0/+397
|
* build: Port to mesonIñigo Martínez2021-09-071-0/+47
| | | | | | meson is a build system focused on speed an ease of use, which helps speeding up the software development. This patch adds meson support along autotools.
* cli, location: Fix multi-sentence NMEA message outputTeemu Ikonen2021-09-013-1/+39
| | | | | | | | Multi-sentence NMEA messages were printed as is, that is with linebreaks, which made mmcli --location-get output look broken. Split NMEA sentences with linebreaks to separate output list items, so that they line up correctly.
* cli,location: new '--location-monitor' actionAleksander Morgado2021-07-011-1/+53
| | | | | | This action allows us to monitor location updates as signaled via the 'Location' property, only available if location signaling has been explicitly enabled (e.g. with --location-set-enable-signal)
* cli,location: TAC is 3 bytes in 5GNRAleksander Morgado2021-07-011-1/+1
| | | | | | | | TAC is 3 bytes for NG-RAN as specified in 3GPP TS 38.413 clause 9.3.3.10 and in 3GPP TS 24.501 clause 9.10.3.8. We'll always print it as 3 bytes in the cli output, as that's also backwards compatible with the original 2 byte TAC in LTE.
* libmm-glib,oma: deprecate method names without the mm_modem_oma prefixAleksander Morgado2021-06-251-1/+1
|
* mmcli,messaging: fix leak when printing supported storagesAleksander Morgado2021-06-241-0/+1
|