From 6bdee3cc68e13724a4ebc05a4259196493a0b901 Mon Sep 17 00:00:00 2001 From: Andrey Skvortsov Date: Sun, 21 Jun 2026 18:15:01 +0300 Subject: [PATCH 1/2] man,mmcli: add information about 'any' modem index for mmcli It's possible to use special name 'any' as a modem index. It's especially useful if system has only single modem. Signed-off-by: Andrey Skvortsov --- docs/man/mmcli.1 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/man/mmcli.1 b/docs/man/mmcli.1 index 79811e2f..f37788d2 100644 --- a/docs/man/mmcli.1 +++ b/docs/man/mmcli.1 @@ -176,8 +176,10 @@ in use, like \fIBearer\fR. For example: .RE .TP -.B \-m, \-\-modem=[PATH|INDEX] -Specify a modem. +.B \-m, \-\-modem=[PATH|INDEX|any] +Specify a modem via full D-Bus object path, modem index, or 'any'. 'any' selects +the first available modem regardless of index or path, which can simplify +operation for single-modem systems. .TP .B \-b, \-\-bearer=[PATH|INDEX] Specify a bearer. From 30b76ac3e2c0313aec887bfe0ea4b84f1ff592aa Mon Sep 17 00:00:00 2001 From: Andrey Skvortsov Date: Sun, 21 Jun 2026 18:47:06 +0300 Subject: [PATCH 2/2] man,mmcli: add description for --location-monitor Signed-off-by: Andrey Skvortsov --- docs/man/mmcli.1 | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/docs/man/mmcli.1 b/docs/man/mmcli.1 index f37788d2..98cb9869 100644 --- a/docs/man/mmcli.1 +++ b/docs/man/mmcli.1 @@ -498,6 +498,10 @@ This DBus property signal updates are by default disabled. .B \-\-location\-set\-disable\-signal Disable reporting location updates via DBus property signals. +.TP +.B \-\-location\-monitor +Continuously monitor all available location information. + .SH MESSAGING OPTIONS All messaging options must be used with \fB\-\-modem\fR or \fB\-m\fR. @@ -941,6 +945,33 @@ be omitted from the output. | $GPVTG,,T,,M,,N,,K,N*2C .Ed +Location information may be continuously monitored using +\fB\-\-location\-monitor\fR, which watches 'Location' property updates. Note +that these updates must first be enabled with +\fB\-\-location\-set\-enable\-signal\fR. + +.Bd -literal -compact + $ sudo mmcli -m 0 --location-set-gps-refresh-rate=10 + successfully set GPS refresh rate + + $ sudo mmcli -m 0 --location-enable-gps-nmea --location-set-enable-signal + successfully setup location gathering + + $ sudo mmcli -m 0 --location-monitor + ----------- + GPS | nmea: $GPGSA,A,2,03,04,06,07,09,,,,,,,,1.7,1.4,1.0*3E + | $GPGSV,3,1,11,03,38,123,37,04,56,037,18,06,41,277,21,07,52,209,32*75 + | $GPGSV,3,2,11,09,61,320,23,11,17,313,19,30,12,217,24,01,02,168,*77 + | $GPGSV,3,3,11,16,21,077,,26,13,047,,40,,,36*79 + | $GPGGA,152454.00,3651.420706,N,03101.297031,E,1,05,1.4,128.4,M,32.0,M,,*6A + ----------- + GPS | nmea: $GPGSA,A,2,03,04,06,07,09,,,,,,,,1.7,1.4,1.0*3E + | $GPGSV,3,1,11,03,38,123,37,04,56,037,24,06,41,277,20,07,52,209,33*7A + | $GPGSV,3,2,11,09,61,320,23,11,17,313,18,30,12,217,23,01,02,168,*71 + | $GPGSV,3,3,11,16,21,077,,26,13,047,,40,,,36*79 + | $GPGGA,152504.00,3651.420036,N,03101.297176,E,1,05,1.4,60.7,M,32.0,M,,*56 +.Ed + .SS A-GPS support If A-GPS is enabled before starting the GPS engine, and if a data connection