Commit Graph

276 Commits

Author SHA1 Message Date
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
Dan Williams
3232a3f7d6 api: better handling of Location API security issues
Since D-Bus signals cannot by nature be restricted to authenticated
clients (unless using private D-Bus connections) we can handle the
security a bit differently here.  Since the Enable() call can be
authenticated, we'll trust the client to say whether higher
security should be used by disallowing location update signals.  This
does mean the client will have to poll for location updates, but at
least then clients requesting location information can be
authenticated.
2010-03-05 18:17:51 -08:00
Dan Williams
2950f31068 api: clarify some Location API bits 2010-03-05 17:55:48 -08:00
Dan Williams
12a8a63fc1 api: first draft of Location information API
NOT FINAL; need to discuss with Pablo and others and actually implement
it before declaring it final.
2010-03-05 17:52:55 -08:00
Norbert Frese
3d0f2ecf12 core: add an UnlockRequired property that provides lock status (bgo #604551)
Clients can check the property to determine lock/unlock status and thus
unlock the modem before trying to connect if required.

Bits of the patch by dcbw (see the bug).
2010-01-31 11:06:55 -08:00
Dan Williams
fabc1eba23 doc: build and completeness fixes 2010-01-19 15:02:30 -08:00
Dan Williams
b94627572f core: implement a PropertiesChanged signal for the MMModem class
At the moment only the Enabled property is exported.
2009-12-22 16:58:23 -08:00
Dan Williams
710986bd4b core: add Enabled property to org.freedesktop.ModemManager.Modem interface 2009-12-21 11:37:36 -08:00
Dan Williams
791faca8fa introspection: add missing mm-modem-gsm.xml 2009-12-21 11:17:59 -08:00
Dan Williams
958b9048a3 cdma: split 1x and EVDO registration states
Like UMTS vs. GSM, EVDO and 1x are separate networks and technologies
and have separate registration state.  You can even be roaming on
EVDO while in your home 1x network.  Handle that.
2009-10-12 10:06:53 -07:00
Dan Williams
91171cdae2 cdma: implement generic registration state handling 2009-10-09 16:17:13 -07:00
Dan Williams
d867b1fe6a gsm: add cell access technology reporting to Scan() 2009-10-06 11:39:40 -07:00
Dan Williams
14e5c52f78 core: don't allow concurrent flashes on the same device
Previously, a few operations (like disable) could trigger a modem
flash in parallel with another flash.  That's wrong, don't allow
that.  At the same time, add in finer-grained error checking on
serial port speed operations, and fix a GSM generic bug that would
send the POWER_UP string on disable.
2009-09-08 17:34:04 -07:00
Dan Williams
2d194a5798 gsm: harmonize band/mode enums
Use the same enum for set/get of band and mode, as for exposing the
device's capabilities.
2009-08-05 13:03:59 -04:00
Dan Williams
356f8f097e gsm: add SupportedBands property 2009-07-23 14:25:48 -04:00