Commit Graph
98 Commits
Author SHA1 Message Date
Aleksander Morgado 467b8892ae mmcli: ensure the modem exports the Simple interface before trying to use it 2012-03-26 12:09:33 +02:00
Aleksander Morgado 7400b14ee6 mmcli: fix looking for unexisting SMS
We need to ensure we iterate over all modems available.
2012-03-16 14:53:25 +01:00
Aleksander Morgado 6dea9964be mmcli: fix looking for unexisting bearers
We need to ensure we iterate over all modems available.
2012-03-16 14:53:25 +01:00
Aleksander Morgado 979c520381 cli: don't assume every modem exposes the Messaging interface 2012-03-16 14:53:25 +01:00
Aleksander Morgado 1df1fe4f4a mmcli: new Time-specific actions 2012-03-16 14:53:22 +01:00
Aleksander Morgado b50c5d42e0 mmcli: print own numbers in modem info 2012-03-16 14:53:21 +01:00
Aleksander Morgado cd63df938f libmm-common: `MMSimpleStatus' won't be considered internal any more
Renamed `MMCommonSimpleProperties' to `MMSimpleStatus', and removed the
`MMSimpleStatusProperties' provided in libmm-glib. We'll just use the original
one from libmm-common always.
2012-03-16 14:53:20 +01:00
Aleksander Morgado bb352d5da3 libmm-common: `MMLocation3gpp' won't be considered internal any more
Renamed `MMCommonLocation3gpp' to `MMLocation3gpp', and removed the
`MMModemLocation3gpp' provided in libmm-glib. We'll just use the original one
from libmm-common always.
2012-03-16 14:53:19 +01:00
Aleksander Morgado 1385eb394f libmm-common: `MMSimpleConnectProperties' won't be considered internal any more
Renamed `MMCommonConnectProperties' to `MMSimpleConnectProperties', and removed
the `MMModemSimpleConnectProperties' provided in libmm-glib. We'll just use the
original one from libmm-common always.
2012-03-16 14:53:19 +01:00
Aleksander Morgado 3ccc78e858 api: `UnlockRetries' will reply a list of per-lock retry counts
Equivalent to `PinRetryCount' in the previous API. We don't have an additional
property for the retry count of the current lock, as it really is duplicating
information.
2012-03-16 14:53:19 +01:00
Aleksander Morgado 7ab252f079 cli: print list of enabled facility locks 2012-03-16 14:53:19 +01:00
Aleksander Morgado 09d2f062c7 api,dbus: rename AllowedBands' to just Bands'
ModemManager will load:
  1) The list of supported bands. Note that this doesn't mean that any possible
     combination of bands is supported, as modems may support only specific
     combinations, but at least gives a rough idea of what the modem is capable
     of handling.

  2) The list of CURRENT bands. There is no such "Allowed" bands, as we do with
     modes, modems will have a specific set of bands being currently used, which
     will be reported in the `Bands' property.

If the modem allows modifying the list of bands to use, this can be done with
the `SetBands()' method. If the modem doesn't support using a specific
combination of bands, this method will report an error.
2012-03-16 14:28:13 +01:00
Aleksander Morgado 5ee0f23efa cli: print the IP timeout value from the bearer 2012-03-15 14:15:06 +01:00
Nathan Williams 3c41ce5d8b api,dbus: new `Command' method in the API to send arbitrary AT commands
BUG=chromium-os:25348
TEST="mmcli -m 0 --command='E0'"
Change-Id: I320587560fde5780f9d5a4998e32364d36a71ed7
2012-03-15 14:15:06 +01:00
Aleksander Morgado 7f8ca20096 cli: include storage when printing SMS info 2012-03-15 14:15:04 +01:00
Aleksander Morgado 2622705744 cli: new `--store' action to store SMS messages 2012-03-15 14:15:02 +01:00
Aleksander Morgado b61c94016a api,dbus: remove the option to send the SMS in the Create() call
An SMS must be first created with the Messaging interface, and then sent using the
Send() method from the SMS-specific interface.
2012-03-15 14:15:02 +01:00
Aleksander Morgado d528a2211b cli: ensure EOL is added at every error message 2012-03-15 14:15:01 +01:00
Aleksander Morgado e257c4ac49 cli: avoid unneeded refs when synchronously looking for bearer/sms/sim 2012-03-15 14:15:01 +01:00
Aleksander Morgado 0833934f11 cli: added Messaging-specific actions 2012-03-15 14:15:01 +01:00
Aleksander Morgado 6ff1543c32 cli: added SMS-specific actions 2012-03-15 14:15:01 +01:00
Aleksander Morgado 2021ba80fd cli: setup to work with SMS objects 2012-03-15 14:15:01 +01:00
Aleksander Morgado d80d06cd6e cli: fix help, bearers and SIMs can be specified also by index 2012-03-15 14:15:01 +01:00
Aleksander Morgado ffa374c793 cli: fail if requesting location actions and modem doesn't handle locations 2012-03-15 14:14:58 +01:00
Aleksander Morgado c075363c2c cli: fail if requesting CDMA actions and modem is not CDMA 2012-03-15 14:14:58 +01:00
Aleksander Morgado 0527667500 cli: include 3GPP-USSD specific actions 2012-03-15 14:14:58 +01:00
Aleksander Morgado 31ce3e5ae1 cli: fail if requesting 3GPP actions and modem is not 3GPP 2012-03-15 14:14:58 +01:00
Aleksander Morgado cf46336494 cli: allow specifying bearers and SIMs by index
So, these two are equivalent:
   $> mmcli -b 0
   $> mmcli -b /org/freedesktop/ModemManager1/Bearer/0

and also this two:
   $> mmcli -s 0
   $> mmcli -s /org/freedesktop/ModemManager1/SIM/0
2012-03-15 14:14:55 +01:00
Aleksander Morgado 507b48dcd9 cli: IP config getters return newly created objects 2012-03-15 14:14:54 +01:00
Aleksander Morgado 22846fc46f cli: remove `--connect-with-number' option, no longer needed 2012-03-15 14:14:53 +01:00
Aleksander Morgado c753649361 cli: use new enums/flags string getters/builders 2012-03-15 14:14:53 +01:00
Aleksander Morgado f8cb1269e3 cli: include Location-related actions 2012-03-15 14:14:52 +01:00
Aleksander Morgado bb88a63a72 cli: add CDMA-related option group, and enable activation request 2012-03-15 14:14:51 +01:00
Aleksander Morgado 31131a1f66 cli: print properties only if registered in the specific network(s)
If registered in the 3GPP network, print 3GPP-specific properties; and if
registered in a CDMA network, print CDMA-specific properties.
2012-03-15 14:14:50 +01:00
Aleksander Morgado 5f5ad38431 cli: include CDMA-specific properties in the simple status report 2012-03-15 14:14:50 +01:00
Aleksander Morgado 8c704ea7a2 libmm-glib: prefix with '3gpp' the 3GPP-specific simple status properties 2012-03-15 14:14:50 +01:00
Aleksander Morgado 165a4dcb94 cli: split the command to register in a 3GPP network
We provide `--3gpp-register-home' to request automatic registration. This will
try to register in the home network if available; and if not available, in any
other network being allowed.

We also provide `--3gpp-register-in-operator' to try to lock the registration
in the network of a given specific operator, specified by MCCMNC.
2012-03-15 14:14:49 +01:00
Aleksander Morgado d3c25e54c4 cli: print CDMA-related info from the modem 2012-03-15 14:14:49 +01:00
Aleksander Morgado c5fdd83905 cli: new helper to get the CDMA registration state string 2012-03-15 14:14:49 +01:00
Aleksander Morgado ad95567e88 cli: print Rm protocol in bearer info 2012-03-15 14:14:47 +01:00
Aleksander Morgado 4d19a66722 cli: fix invalid write when completing async operation
Don't use the same context to pass the results to finalize().
2012-03-15 14:14:46 +01:00
Aleksander Morgado e8aeb59293 cli: use g_list_free_full() when possible 2012-03-15 14:14:46 +01:00
Aleksander Morgado def30139d7 cli: report as 'none' when no SIM path is given
Instead of giving '/'
2012-03-15 14:14:42 +01:00
Aleksander Morgado a34f51b0a5 cli: new `--set-allowed-bands' 2012-03-15 14:14:41 +01:00
Aleksander Morgado 148025c381 cli: new --set-allowed-modes' and --set-preferred-modes' actions 2012-03-15 14:14:41 +01:00
Aleksander Morgado eb1c7afc8c cli: implement `--simple-status' 2012-03-15 14:14:39 +01:00
Aleksander Morgado 0cdb293452 cli: new `simple-disconnect' command
This command doesn't expect any argument, it will disconnect all available
bearers. You can disconnect specific bearers using `--bearer' and
`--disconnect'.
2012-03-15 14:14:38 +01:00
Aleksander Morgado 6cdc6a4f73 cli: use the new properties handler object in bearer 2012-03-15 14:14:38 +01:00
Aleksander Morgado 3c90793f22 cli: use the new properties handler object in simple Connect() 2012-03-15 14:14:38 +01:00
Aleksander Morgado 9868d757c7 cli: print supported/allowed bands in modem info 2012-03-15 14:14:37 +01:00