Commit Graph

10 Commits

Author SHA1 Message Date
Denis Kenzior 616b00aab5 Change the DataConnectionManager API
The various attributes obtained from CGREG are actually completely
useless and are not used internally for anything except computing the
Attached status.  It makes sense to get rid of these properties since
they will be the same as reported by CREG in Dual-Transfer-Mode devices.
The only difference might be how hardware reports the technology used,
but frequently a vendor specific command is required anyway
2010-03-26 23:00:28 -05:00
Anders Gustafsson ce65188308 Fix: Documentation fixes 2009-12-16 13:21:53 -06:00
Denis Kenzior fa3fa12403 Update docs with new Errors 2009-11-18 13:25:35 -06:00
Denis Kenzior f6d1397753 Fix: Typo 2009-11-16 11:06:12 -06:00
Martin Xu 0eb3d1cb98 add Settings property description to dataconnectionmanger-api.txt 2009-11-16 09:58:35 -06:00
Denis Kenzior 708f7481b0 Update CreateContext API 2009-11-02 16:02:09 -06: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
Denis Kenzior 8d373fc897 Add address & netmask properties to GPRS api 2009-09-02 13:48:40 -05:00
Denis Kenzior b40e151ba9 Update GPRS api with context use type 2009-09-02 09:59:41 -05:00
Denis Kenzior 5cbb665823 Add proposed data connection manager API 2009-09-01 18:14:59 -05:00