Commit Graph

324 Commits

Author SHA1 Message Date
Dan Williams
9be1d66ef0 cdma: implement GetEsn() 2009-06-19 12:54:07 -04:00
Dan Williams
6d4616c1d3 modem: move GetInfo from GsmCard -> Modem interface
It's generic, everything implements some variant of +GMM, +GMR, and +GMI.
2009-06-19 12:43:37 -04:00
Dan Williams
924814c101 udev: move device probing and detection to udev
Get rid of dependency on HAL, using libgudev instead.  Fix up the plugin API
to no longer use either HAL or udev defines, but let plugins use whatever
mechanism they want for getting more information out of the device given the
subsystem and device node name.

Modems are now defined as "master" devices which "own" a one or more ports.
A port could be a serial tty device or a network device or whatever.  The
plugin figures out whether it supports a given port or not and then assigns
it to a new or existing modem.  Modems now have a 'valid' property that
should be set to TRUE when the modem has enough ports to operate correctly.
For devices (ex. 'hso') that use a network device for data transfer, the
modem would need to grab at least one TTY and the network device associated
with that physical device to be 'valid'.

Also move the generic modem support code to a plugin like other modem plugins,
and change the I-support-this-device mechanism to return a number indicating
the level of support.  For example, the generic plugin would return a quite
low number if the device indicates via probing that it can do GSM or CDMA, but
a more specific plugin can indicate better support for the device, and thus
the more specific plugin would win control.
2009-06-18 14:25:30 -04:00
Tambet Ingo
440cd967e2 Fix a typo.
Thanks to Pablo Martí Gamboa.
2009-06-09 14:34:12 +03:00
Dan Williams
58a48405cf gsm: clean up network modes
Add specific modes for HSUPA and HSPA; add modes for 2G and 3G only, and
update plugins to use the right modes.
2009-04-15 10:44:09 -04:00
Tambet Ingo
45f32e7e09 Implement sending SMS messages.
Add a test program to use the newly added method.
2009-03-23 15:05:15 +02:00
Tambet Ingo
fd5f4222d7 Extend org.freedesktop.ModemManager.Modem interface.
* Add IpMethod property with known values ppp (default), static, DHCP.
* Rename DataDevice property to Device.
* Add GetIP4Config method. It should be implemented only when IpMethod==static.
* Update org.freedesktop.ModemManager.Modem.Gsm.Sms interface based on
  Pablo Martí Gamboa's suggestions.
* Adjust MBM and HSO interfaces to take advantage of the generic Modem
  interface.
2009-02-06 13:34:02 +02:00
Tambet Ingo
19bd7d7e7f Fix DBus permissions. 2009-02-06 13:32:45 +02:00
Tambet Ingo
17b739c73d Implement simple interface. 2009-01-19 10:45:18 +02:00
Tambet Ingo
a1223a9eaf Convert multiple return values to structs.
Python DBus bindings are unable to implement methods that return multiple
values.
2008-12-17 13:35:22 +02:00
Alexander Sack
1673c6c998 Implement SendPuk feature
* introspection/mm-modem-gsm-card.xml: add SendPuk method
	Gsm.Card interface

* src/mm-generic-gsm.c (send_puk_done, send_puk):
	- implement generic SendPuk with +CPIN="<puk>,<pin>"

* src/mm-modem-gsm-card.h,
  src/mm-modem-gsm-card.c (mm_modem_gsm_card_send_pin,
  impl_gsm_modem_send_pin): implement SendPuk glue.
2008-12-05 12:41:46 +01:00
Tambet Ingo
ed5d81da8f Implement a plugin for Ericsson MBM modems (like F3507g) (Author Per Hallsmark). 2008-10-20 11:11:23 +03:00
Tambet Ingo
07f1b3cc3a Document DBus error codes and messages. 2008-09-16 14:00:10 +03:00
Tambet Ingo
f570e1517d Implement PIN changing and enabling/disabling. 2008-09-15 17:08:46 +03:00
Tambet Ingo
209a6390cb Fix up HSO modem plugin. 2008-09-01 11:27:35 +03:00
Tambet Ingo
2087ca49b6 Fix another upper case inconsistency in the public API (SetApn). 2008-08-29 18:09:23 +03:00
Tambet Ingo
c71ae54f88 Include the missing mm-gsm-modem-hso.xml to EXTRA_DIST. 2008-08-29 14:29:26 +03:00
Tambet Ingo
424f514b02 Implement the more granular GSM interfaces as agreed on NM mailing list.
Convert all exisiting code over to new DBus interfaces.
2008-08-29 11:43:36 +03:00
Tambet Ingo
64b4827c4c Implement HSO modem driver. 2008-08-26 14:40:20 +03:00
Tambet Ingo
d6be2af93f Implement registration information retrieving for GSM modems. 2008-08-21 17:18:38 +03:00
Tambet Ingo
149b41f220 Implement per modem type DBus interfaces.
A major code reorganization.
2008-08-21 09:11:17 +03:00
Tambet Ingo
751a9f8273 Fix a typo. 2008-08-13 10:05:45 +03:00
Tambet Ingo
be059f7a73 Document the public DBus API. 2008-07-31 17:14:50 +03:00
Tambet Ingo
cc31458b18 Initial commit. 2008-07-31 09:43:00 +03:00