Commit Graph

169 Commits

Author SHA1 Message Date
Denis Kenzior 09bb5f7554 emulator: Add basic emulator skeleton 2011-02-10 00:34:47 -06:00
Denis Kenzior 458fe585a0 modem: Fix up previous commit 2011-02-10 00:27:01 -06:00
Guillaume Zajac 2b50146a21 modem Add powered watch API 2011-02-10 00:27:01 -06:00
Jukka Saunamaki 7243af46fa gprs,gprs-provision: add SPN to provisioning API 2011-02-08 21:48:54 -06:00
Jussi Kangas a8671fe1f7 sim: Allow usage of SIM codes longer than 8 digits
Some PIN codes (e.g. subsidy locks, etc) can have PIN codes much longer
than the default 8 digits.
2011-02-08 10:19:52 -06:00
Lucas De Marchi bc0386cb23 sms: restore pending tx messages from backup
Based on patch from: Kristen Carlson Accardi <kristen@linux.intel.com>
2011-01-28 16:55:31 -06:00
Denis Kenzior 71e5278ce6 gprs-provision: Refactor provisioning 2011-01-26 14:55:58 -06:00
Jukka Saunamaki feee571bba ofono.h: add gprs-provision 2011-01-26 14:55:58 -06:00
Andrzej Zaborowski 84d0a57f8a sim-auth: Add skeleton for the sim-auth atom 2011-01-20 11:16:06 -06:00
Andrzej Zaborowski 20face53bd ofono.h: Remove unneeded initialisers
They have no effect, enum already ensures the values are unique.
2011-01-20 11:16:05 -06:00
Jeevaka Badrappan 480f7dffd9 core: M15 coding style fix 2011-01-12 08:06:58 -08:00
Dara Spieker-Doyle a728ff4da1 cdma-voicecall: Add CDMA MO Call Support 2010-12-22 19:01:10 -06:00
Lucas De Marchi df2984a724 ctm: Add initial CTM atom implementation 2010-11-26 13:08:48 -06:00
Gustavo F. Padovan b79b64439f dbus: Add __ofono_error_access_denied 2010-11-23 05:06:29 -06:00
Denis Kenzior 60aceb3e71 modem: Miscellaneous style fixes 2010-11-22 09:54:25 -06:00
Andras Domokos d7fb7da021 modem: add modem online-offline watch 2010-11-22 09:53:41 -06:00
Andrzej Zaborowski 3083841f72 sim: Add sim_service_available()
This is meant to query EFsst or EFust.

The function is not public api because the service constants are in
src/simutil.h.
2010-11-10 09:09:05 -06:00
Andrzej Zaborowski 65159c2f0b stk: API for SMS Point-to-Point download to UICC
The callback returns the TP-User-Data element content of the RP-ACK or
RP-ERROR message, returned by the UICC.
2010-11-08 13:36:23 -06:00
Denis Kenzior 857e2d046f sms: Separate history from dbus flags in txq_submit 2010-11-04 10:25:42 -05:00
Denis Kenzior 3436c58fac sms: Refactor __ofono_sms_txq_submit 2010-11-04 10:25:42 -05:00
Denis Kenzior 4a2111347f sms: Add __ofono_sms_message_path_from_uuid 2010-11-04 10:25:41 -05:00
Denis Kenzior 0edb5e3645 sms: add __ofono_sms_get_next_ref 2010-11-04 10:25:41 -05:00
Andrzej Zaborowski 0dd1e9ed07 voicecall: __ofono_voicecall_tone_send internal api
This provides a way for other atoms to send DTMF tones during a call.
It is assumed that vc->driver->send_tone returns only after the tones
have finished being emitted.

In this version Dbus DTMF requests are in the same queue as STK
requests.
2010-10-22 21:59:11 -05:00
Aki Niemi 5a85a57cc3 sms: Implement text and datagram watch
Allow setting a watch for incoming text and datagram messages on the
sms atom.
2010-10-14 15:22:16 +03:00
Marcel Holtmann 760e1e4c04 core: Add support for audio settings interface 2010-09-29 23:57:39 +09:00
Denis Kenzior f4a0b9fa20 modem: Add modemwatch watchlist functions
Used for registering to modem added & removed notifications
2010-09-28 22:49:22 -05:00
Denis Kenzior 1db4300467 ofono: Don't go over 80 characters per line 2010-09-28 22:43:31 -05:00
Denis Kenzior f79ac9df1b ssn: The id is unsigned 2010-09-28 22:43:09 -05:00
Denis Kenzior dbd7639d25 history: Update to the new SHA1 based sms id API 2010-09-21 08:44:48 -05:00
Denis Kenzior 016f168f47 sms: Refactor __ofono_sms_txq_submit 2010-09-21 08:44:47 -05:00
Jeevaka Badrappan 77361655c0 ussd: Add __ofono_ussd_initiate internal api 2010-09-15 11:36:03 -05:00
Denis Kenzior 0d2b9cb5f4 modem: Add __ofono_modem_foreach 2010-09-09 14:00:09 -05:00
Denis Kenzior 4a60d69e98 modem: Remove unneeded functions 2010-09-09 13:38:20 -05:00
Denis Kenzior 7461abbe23 modem: Break out append_modem_properties 2010-09-09 13:34:36 -05:00
Jeevaka Badrappan 0834a7c18d call-settings: Add __ofono_call_settings_is_busy 2010-09-09 10:08:47 -05:00
Jeevaka Badrappan 0741cc8cb2 call-forwarding: Add __ofono_call_forwarding_is_busy 2010-09-09 10:08:37 -05:00
Jeevaka Badrappan b0be5779b8 call-barring: Add __ofono_call_barring_is_busy 2010-09-09 10:08:22 -05:00
Yang Gu 41d38d76bc ussd: Add __ofono_ussd_is_busy
Send SS requires Call Forwarding / Call Settings / Call Barring to check
whether USSD is currently busy.  If it is, then the SIM should be
notified appropriately.

We introduce a function __ofono_ussd_is_busy to help with this.
2010-09-09 08:57:36 -05:00
Denis Kenzior 605d720bd4 voicecall: Refactor ofono_voicecall_busy 2010-08-27 19:06:36 -05:00
Andrzej Zaborowski 4a9a985c9d voicecall: add __ofono_voicecall_dial internal api
The callback is only invoked when the call is CONNECTED (becomes
active).  Cancel ensures that the callback will not be called and
does nothing more in this version, it's an open question if we
want to release the call.
2010-08-27 10:41:34 -05:00
Denis Kenzior f86bc5ebde dbus: Add Canceled error 2010-08-16 10:41:35 -05:00
Denis Kenzior 84e73a8b7c sms: Refactor ofono_sms_submit introduced by stk
Simplify the logic and get rid of duplicated code
2010-07-08 14:27:34 -05:00
Andrzej Zaborowski 516a9b06c5 Add __ofono_sms_submit for other atoms to submit SMs. 2010-07-08 14:27:33 -05:00
Andrzej Zaborowski 7e5ef25c5a stk: Use envelope encoding utility from stkutil.c 2010-06-09 12:26:32 -05:00
Denis Kenzior 7b77888217 Add __ofono_error_not_available 2010-05-26 21:03:15 -05:00
Aki Niemi b8ec7553ef Add network time support
Adding a new notify function in the netreg atom for notifying a
received Network Identification and Timezone (NITZ) indication. This
data is consumed via a nettime plugin, of which there is also an
example.
2010-05-19 10:46:18 +03:00
Andrzej Zaborowski aad4d0de78 Add Sim Toolkit atom
- Add ofono_stk atom in stk.c
- Move envelope command from sim driver to stk driver
2010-04-15 16:49:40 -05:00
Aki Niemi 8d4004d182 Add radio settings atom and driver API
This interface exposes a read-write property for radio access technology
selection mode.
2010-02-04 23:43:18 +02:00
Marcel Holtmann e4850f2eeb Add support for dynamic debug feature 2010-01-26 10:06:53 +01:00
Marcel Holtmann 144080e749 Update copyright information 2010-01-01 17:00:10 -08:00
Andrzej Zaborowski da6f3e63e0 Handle EF-CBSMID contents. 2009-12-17 21:45:39 -06:00
Denis Kenzior c7ac706de1 Refactor: call id allocation / release 2009-12-04 16:52:30 -06:00
Denis Kenzior b0f0e248e9 When SIGTERM is received, run the event loop
This feature will continue running the event loop for another 10 seconds
or so or until all the modems have been shut down.  This will allow the
modem drivers to properly shutdown their respective devices.
2009-12-02 19:11:36 -06:00
Denis Kenzior 9777d244ec Report AttachInProgress Error
If one tries to activate a context and we're currently attaching or
detaching from GPRS, report the AttachInProgress error
2009-11-18 13:24:20 -06:00
Denis Kenzior e1e44e772a Refactor: Send NotAttached error
If one tries to activate the context and we're currently not attached to
GPRS, report a NotAttached error instead of a failure
2009-11-18 13:23:13 -06:00
Denis Kenzior 9afdf1a35b Add SMS history capability 2009-11-05 16:46:43 -06:00
Denis Kenzior fd6d9f9fc7 Fix: Don't pass ofono_network_operator structures 2009-10-29 15:28:26 -05:00
Denis Kenzior a3b736afe5 Add implementation of GPRS context atom 2009-10-23 17:05:56 -05:00
Denis Kenzior bb7945d6aa Refactor: Split up GPRS into two atoms
Split up GPRS into two atoms: GPRS and GPRS Context.  GPRS will handle
the areas of GPRS network registration, basic GPRS capability detection
and attach / detach.

GPRS Context will handle setting up / activating / deactivating the
indicidual contexts.

This will allow us to use the generic GPRS atom for most devices while
customizing the GPRS context accordingly.
2009-10-23 17:05:54 -05:00
Denis Kenzior 729d580692 Add InUse error type 2009-10-23 17:05:53 -05:00
Denis Kenzior 0b68ad7e32 Second round of renaming 2009-10-23 17:05:53 -05:00
Denis Kenzior b2fd75014a Refactor: rename data-connection to gprs
Keep the name specific to GSM, other implementations will probably
require their own interfaces
2009-10-23 17:05:53 -05:00
Andrzej Zaborowski f43efa8a5f Add GPRS support
This commit implements the GPRS context setup and teardown according to
doc/dataconnectionmanager-api.txt

One issue with the AT implementation of the api is that "Powered" (a
read-write property) can be set independently of "Attached" (read-only
property) and remain set when "Attached" is clear.  The semantics would
be that the network doesn't have resources to let the modem attach,
but the modem waits for the resources to become available and then
attaches.  On AT the modem is in this state only when executing +CGATT,
so currently the code will rerun +CGATT as soon as the previous one
returns with error, probably starving other commands.  A possible
workaround would be for "Powered" to flip back to False after the modem
fails to attach once, or give up on having separate properties.
Alternatively we could re-try to attach periodically but on one modem
I've tried +CGATT fails after about 1 minute (that's the Calypso) and
on another only about 0.5s (Nokia phones with AT emulation).

When "Powered"  is set and "RoamingAllowed" is clear and we manage to
attach and find that we're roaming, ofono resets "Powered".

We may want to catch the user trying to dial *99***1# which is the
backwards compatibility quirk for old modems (same way ofono parses
USSD strings).
2009-10-23 17:05:53 -05:00
Zhenhua Zhang f5e24369ca Add call volume interface to adjust speaker and mic volume 2009-09-29 14:56:21 -05:00
Denis Kenzior 6f86a8d0a6 Add utility for setting the netreg base station 2009-09-11 21:35:31 -05:00
Denis Kenzior f03b97c635 Add network registration status watch capability 2009-09-11 16:25:15 -05:00
Denis Kenzior 32fc30fa02 Refactor various watch functions
Use a common core kernel for all the watcher registrations /
notifications.  This is now done in watch.c
2009-09-11 12:39:53 -05:00
Denis Kenzior 78b853a97d Add initial Cell Broadcast atom implementation 2009-09-10 16:13:16 -05:00
Denis Kenzior 03a0fde2f4 Add simple utility to validate paths 2009-09-02 17:39:23 -05:00
Denis Kenzior 4fac5d1c73 Hide the ofono_modem datastructure 2009-08-20 16:58:01 -05:00
Denis Kenzior ca95c87dae Port history to the new atom API
Use __atom_foreach
2009-08-20 16:29:18 -05:00
Denis Kenzior 2fea7be017 Add __ofono_modem_foreach_atom function 2009-08-20 15:59:50 -05:00
Denis Kenzior e711b0e62a Break out device info into a separate driver
The modem info ops (Serial, Manufacturer, etc) are broken into a
separate oFono atom.  This is mainly to support a proper modem device
driver infrastructure.  As a result the data structures have been
tweaked a little.

driver.h is now empty and has been removed.
2009-08-20 12:48:29 -05:00
Denis Kenzior 8bbd68b2fd Remove unused variables 2009-08-20 12:48:28 -05:00
Denis Kenzior 04c12038ba Evolve the voicecall driver 2009-08-19 18:35:08 -05:00
Denis Kenzior 5b1f5ba084 Evolve the netreg driver 2009-08-19 18:35:07 -05:00
Denis Kenzior 5999b418e8 Evolve message waiting low level API 2009-08-19 18:35:07 -05:00
Denis Kenzior a45007f91d Add a new SIM not ready error 2009-08-19 18:35:07 -05:00
Denis Kenzior 5e72405120 Evolve SIM driver 2009-08-19 18:35:06 -05:00
Denis Kenzior 3b043e9b1a Move ofono_destroy_fun to types.h 2009-08-19 18:35:06 -05:00
Denis Kenzior 1cd48d1abe Remove unneeded variable 2009-08-19 18:35:06 -05:00
Denis Kenzior c4a349fdf9 Evolve SMS driver API 2009-08-19 18:35:06 -05:00
Denis Kenzior 5abd3c14d8 Port call-settings to the new USSD API 2009-08-17 15:08:48 -05:00
Denis Kenzior 91789b2680 Port call-forwarding to new USSD API 2009-08-17 15:08:48 -05:00
Denis Kenzior c4d9393fa3 Get rid of unneeded variable 2009-08-17 15:08:48 -05:00
Denis Kenzior 65eb5e2089 Refactor call barring to the new USSD API 2009-08-17 15:08:48 -05:00
Denis Kenzior d5339edc44 Refactor supplementary service control strings
The registration was done by using the storage in the modem.  Refactored
to use the new atom watch APIs and storing the control entries in the
ussd atom itself
2009-08-17 15:08:43 -05:00
Denis Kenzior 229bb3a4ed Evolve the USSD API 2009-08-17 13:45:55 -05:00
Denis Kenzior 314c0facc3 Refactor cssn into ofono_ssn
Make this into a fully fledged entity, with a driver instead of the
current kludge.  This means modem drivers can actually choose whether
to instantiate a CSSN atom or not

Move the notification functions from voicecall.c into ssn.c.

Move the cssn.h header into include/ssn.h and refactor

Update call barring to utilize ofono_ssn and use the new atom_watch
functionality to detect when ssn has been added or removed
2009-08-14 18:49:01 -05:00
Denis Kenzior 6482d98e56 Add atom get_registered function 2009-08-14 18:47:12 -05:00
Denis Kenzior e36c8b1d5d Follow the more common glib convention for destroy 2009-08-14 17:06:59 -05:00
Denis Kenzior c1c04e8c8d Add atom_watch functions 2009-08-14 16:33:43 -05:00
Denis Kenzior 6119c08c28 Rework ofono_modem_remove_atom
Change to ofono_atom_free since the atom now carries all necessary
information about the modem it is attached to
2009-08-14 16:31:34 -05:00
Denis Kenzior 9020b1dc7e Add getter functions for atoms 2009-08-14 16:24:46 -05:00
Denis Kenzior ecdfbebc51 Evolve the phonebook driver 2009-08-14 11:19:10 -05:00
Denis Kenzior 0e3cc07966 Remove defunct pointer to call waiting data
Doesn't exist anymore
2009-08-14 11:19:10 -05:00
Denis Kenzior 04926379e5 Evolve call settings driver 2009-08-14 11:19:10 -05:00
Denis Kenzior 521039596a Evolve the call meter driver API 2009-08-14 11:19:09 -05:00
Denis Kenzior 872a24690d Evolve the call-forwarding driver 2009-08-14 11:19:09 -05:00
Denis Kenzior 67e19dc14c Evolve the call-barring driver
- Move call barring related functionality out of driver.h into a
  dedicated file, call-barring.h
- Update to use the new atom framework
- Remove over-reliance on the modem structure, call-barring structure
  should now be used instead whenever possible
2009-08-14 11:19:09 -05:00