Commit Graph
90 Commits
Author SHA1 Message Date
Aleksander Morgado 466b6edbf7 gsm: allow setting more than one band 2011-04-29 12:31:07 +02:00
Aleksander Morgado 573dcd51c0 introspection: add missing UMTS 2600 band reference 2011-04-28 12:02:15 +02:00
Nathan Williams 487972c1ac gsm: implement basic SMS reception and PDU parsing 2011-04-14 14:07:31 -05:00
Dan Williams 3568f534c8 api: clarify SendPin documentation 2011-03-26 12:20:46 -05:00
Dan Williams 00b6cce4df api: fix up StateChanged duplicate reason code
And add new reason codes to the C headers.
2011-01-24 14:36:24 -06:00
Dan Williams e3de8c4a11 api: fix up modem state changed reason enum description 2011-01-24 13:57:22 -06:00
Dan Williams 2b2ca316a1 Merge remote branch 'chromium/to-upstream' 2011-01-24 13:56:40 -06:00
Guido Günther 807120996f api: add reply parameter to USSD Respond method (bgo #638038)
The network will usually send back the new sub menu to pick from.
2011-01-14 12:23:21 -06:00
Dan Williams d908389aff core: add modem reset/power-cycle command
Based on a patch by Elly Jones from Google.
2011-01-14 12:17:02 -06:00
Dan Williams 6c56db07fc cdma: fix segfault by handling MEID property
Also, MEID->Meid to follow standard D-Bus property semantics.
2011-01-04 17:21:41 -06:00
Dan Williams a502fd2b19 gsm: add access technology support for HSPA+ 2011-01-01 11:55:41 -06:00
Dan Williams 36c87991c3 build: fix distcheck after introspection XML renames 2010-12-21 11:55:25 -06:00
Elly Jones f047ca66a4 modemmanager: Add a reason to ConnectionStateChanged events.
This can be used by a connection manager to decide to respond in a different way
to certain kinds of disconnects (e.g. intentional versus unintentional versus
suspension).

TEST=None
This change introduces no additional code, so testing it in isolation is not
possible.

BUG=chromium-os:6744

Change-Id: Ie371e20ec7a003333eba013af3ad61c0e494a4ad
Signed-Off-By: Elly Jones <ellyjones@chromium.org>

Review URL: http://codereview.chromium.org/3413011
(cherry picked from commit 29a9674b818fd64c19bad84f526f6fa68edec174)
2010-12-21 11:19:17 -05:00
David Rochberg d4b2be5f6b Replace ActivationCompleted with ActivationStateChanged, add CDMA error enums.
BUG=6885
TEST=mm-modem.h is correct, cromo compiles

Change-Id: I2b6a49bda5a6ff7bf6e4aac2e99914bf3c33c732

Review URL: http://codereview.chromium.org/3705001

Review URL: http://codereview.chromium.org/3702006
2010-12-21 11:13:05 -05:00
Elly Jones eb90498efd Add CDMA Activate and ActivateManual methods.
BUG=6885
TEST=built modemmanager and cromo

Change-Id: Ib73a093b13da05948a2f1da8f051fe7c55682584

Review URL: http://codereview.chromium.org/3517013
(cherry picked from commit f447c8e1a0062500e1171e031cf4c8fef76ffd59)

Conflicts:

	src/mm-modem-cdma.c
2010-12-20 15:19:45 -05:00
David Rochberg b19b25f324 Add enums for activation state
BUG=6885
TEST=inspect mm-modem.h, build cromo et al against new mm-modem.h

Change-Id: Id8c849b6cffbadb9d5d2aa4109257eb747cf9bb5

Review URL: http://codereview.chromium.org/3616004
(cherry picked from commit 3a50b8c28d155060ce035a1c6d5eadf3d91297a5)
2010-12-20 14:47:52 -05:00
Elly Jones 60725028af Add State property and StateChanged signal.
Change-Id: I74451404361aa8bcc33ad0e66cbd5c6208222496
2010-12-20 14:40:35 -05:00
Eric Shienbrood 74b49b8b4d Added MEID property to org.freedesktop.ModemManager.Cdma interface.
BUG=chromium-os:4560
TEST=tested using modified flimflam and cromo

Change-Id: I385abf8df340c26259810ea44c43680cc420c015

Review URL: http://codereview.chromium.org/3136020
2010-12-20 14:05:34 -05:00
Elly Jones 12600464e3 Fix include paths in introspection XML.
Change-Id: I3af3ac8f60009f25b365c424d93258ded16f9212
2010-12-20 13:26:41 -05:00
Elly Jones ac5f135a4a Add org.freedesktop.ModemManager.Modem.Cdma.xml.
Mea culpa. I moved it with 'mv', not 'git mv', thus resulting in total loss.

Change-Id: I94edfb9ca3b09d7956eea08971090ee022700d4d
2010-12-20 13:09:03 -05:00
Elly Jones 245818de33 Install xml files so they can be used by cromo (chromeos modem manager)
Amended: Install the files under their proper DBus names.

Review URL: http://codereview.chromium.org/1618004
(cherry picked from commit 89f7f05f1294485fa8b44cfdd3c9b0d924d45ac1)

Conflicts:

	Makefile.am

Change-Id: I65b2b0c1b5e579bb5b1d5d5b390c3be2ae49543c
2010-12-20 12:23:41 -05:00
Jason Glasgow 241bef544d Install xml introspection files for DBus interfaces.
Review URL: http://codereview.chromium.org/1618004

Change-Id: Ib362c3dcdeb91472a64cf9edb6b4e0ddbcffe93a
2010-12-20 11:24:43 -05:00
Dan Williams d2ce75b57a core: separate PropertiesChanged signal XML
Which requires that we turn it into a GInterface that MMModemBase
can implement, because dbus-glib does not allow attaching more
than one introspection glue structure to an object at a time.

Also implement the standard D-Bus properties changed signal.
2010-12-17 16:27:55 -06:00
Dan Williams 5b34f40d1d docs: bump doc version to current MM prerelease version 2010-11-23 16:17:12 -06:00
Dan Williams 1684d8b173 gsm: add SimIdentifier property
An obfuscated SimIdentifier that may be available before the PIN has
been entered, for use in auto-unlocking a device.  If this value is
present, it should be used in preference to DeviceIdentifier as it
is SIM-specific like the PIN code.
2010-10-25 17:41:08 -05:00
Dan Williams 328d2369a9 core: add DeviceIdentifier property
This is computed before any PIN is entered, and thus before we can
usually get IMEI or MEID/ESN out of the device in many cases. It's
therefore not the same as EquipmentIdentifier.

This is intended to be used by UI programs for matching devices with
PIN numbers for automatic unlocking.  While the PIN number is actually
*SIM* specific, no modems allow access to the IMSI before the PIN is
entered, and thus we cannot actually match the PIN with the SIM.  The
device ID is the next best thing we can use and should allow auto
unlocking in most cases.
2010-10-21 16:57:37 -05:00
Dan Williams 655bf7a9fa api: fix up location method flag name 2010-06-29 22:36:11 -07:00
David Rochberg 89c572e59d core: add FactoryReset method
Cleanups and authorization checks by me (dcbw).
2010-06-22 17:47:07 -07:00
Dan Williams 88c538314a core: EquipmentIdentity -> EquipmentIdentifier 2010-06-22 17:14:13 -07:00
Torgny Johansson 8873c0a7dc gsm: add GetOperatorID method
Returns the ID of the operator that issued the SIM card.

Cleanups and get_mnc_length_done() by me (dcbw).
2010-06-22 16:50:21 -07:00
Torgny Johansson 52929a2c92 core: add modem EquipmentIdentity property to report IMEI/ESN/MEID 2010-06-22 14:36:49 -07:00
Torgny Johansson f179a56908 gsm: add UnlockRetries property
Which reports the # of attempts remaining for the current PIN required
by the device or SIM.

Some modifications/cleanups by dcbw.
2010-06-22 14:05:09 -07:00
Dan Williams f4bfd94106 api: fix U1900 flag description
From David Rochberg <rochberg@google.com>
2010-06-04 19:07:39 -07:00
Dan Williams 481b6539b4 api: revise and simplify Location spec
Simplify the NMEA type and add GPS raw for generic GPS data.
2010-05-19 23:33:33 -07:00
Dan Williams 1df244f307 api: fix syntax error 2010-03-18 08:47:14 -07:00
Dan Williams e3aa8d5008 api: add UMTS 1900MHz (Class II) band 2010-03-16 11:04:12 -07:00
Dan Williams a872107cfc api: better define Scan() command results 2010-03-15 11:57:01 -07:00
Dan Williams c7739979ed api: update and clarify Location API 2010-03-11 13:15:33 -08:00
Dan Williams 79aef47b25 api: clarify registration info items 2010-03-11 10:22:37 -08:00
Dan Williams 611e832d0e api: add 'reply' parameter to USSD Initiate() command 2010-03-10 10:17:26 -08:00
Dan Williams 07fc116d5a api: add USSD API proposal
Loosely based on oFono, from Pablo Marti.
2010-03-09 18:11:01 -08:00
Dan Williams cdf9279ee8 api+gsm: split out access technology
As with allowed modes, make things clearer and simpler by giving
access technology it's own values.
2010-03-08 18:02:14 -08:00
Dan Williams c5a897d0ae api+gsm: clean up AllowedMode values
Instead of trying to stuff everything into the mode bitfield it
turns out it's just easier, clearer, and simpler to use different
values for each of the following:

1) the device's supported access technologies and allowed modes
2) the device's current access technology
3) the device's allowed mode preference

Since none of the AccessTechnology or AllowedMode stuff has hit a
release yet, let's make sure we're doing it the right way early on.
2010-03-08 17:27:56 -08:00
Dan Williams e2c487472e api: s/AllowedModes/AllowedMode in Gsm.Network
Only one mode is going to be stored here so it shouldn't be plural.
2010-03-08 14:34:30 -08:00
Dan Williams 5e2983484e api: make HSPA a standalone network mode again
It's just easier this way.  It makes little sense to allow
selecting mode combinations for anything other than
(HSDPA | HSUPA).  Most radios don't allow fine-grained control
of the different technologies within each 2G or 3G class anyway
thus combinations like (GPRS | UMTS) are pointless since the
device wouldn't be able to use GPRS but not use EDGE.
2010-03-08 14:15:25 -08:00
Dan Williams 45fd96132f api: add new AllowedModes and AccessTechnology API
This adds split properties and functions for the allowed modes and the
current access technology used by the device when connected to the
mobile network.
2010-03-07 09:58:30 -08:00
Dan Williams 8fcc5b7fe2 api: more clearly document modes and bands 2010-03-07 09:53:28 -08:00
Dan Williams e7dd2926a3 api: revert parts of 2d194a5798
MM hadn't implemented it yet, but Wader already implemented an earlier
version that didn't use a bitfield but an enum.  Unfortunately the
network mode stuff doesn't allow for distinguishing between the device's
mode preference and the current access technology.  So deprecate the
current network mode stuff in the API in preparation for improved API.
2010-03-07 09:53:03 -08:00
Dan Williams ba977cd529 api: readability fixes 2010-03-07 09:52:48 -08:00
Dan Williams 547a9eb9c0 introspection: add missing 27.007 access technologies 2010-03-07 07:35:11 -08:00