Commit Graph

1113 Commits

Author SHA1 Message Date
Marcel Holtmann 0516900c72 Add test script for showing primary data contexts 2009-10-25 00:49:08 +09:00
Marcel Holtmann 8864778c02 Add some extra special handling to list-modem test script 2009-10-25 00:42:23 +09:00
Andrzej Zaborowski 427224e9f8 Register gprs-context on calypso modem/phonesim. 2009-10-24 10:27:11 -05:00
Andrzej Zaborowski 87f4e3890d Just return success when value already set in SetProperty. 2009-10-24 10:27:06 -05:00
Denis Kenzior ffd7c1920a Fix: Some modems report PDP_type in a list 2009-10-23 17:05:57 -05:00
Denis Kenzior 5cfe541582 Add GPRS context setup to MBM plugin 2009-10-23 17:05:56 -05:00
Denis Kenzior 722204ae6c Fix: Connect up gprs and gprs_context 2009-10-23 17:05:56 -05:00
Denis Kenzior 7faa34d235 Fix: Typo in property name 2009-10-23 17:05:56 -05:00
Denis Kenzior a66de6880a Add initial implementation of MBM gprs context 2009-10-23 17:05:56 -05:00
Denis Kenzior c3772c2bb6 Fix: Update Init string & shutdown string for mbm 2009-10-23 17:05:56 -05:00
Denis Kenzior 3408fc5094 Register for CGEV indications in gprs context 2009-10-23 17:05:56 -05:00
Denis Kenzior 14c116be36 Remove unused code and make compiler happy 2009-10-23 17:05:56 -05:00
Denis Kenzior d6161ddb61 Add basic atmodem gprs context implementation 2009-10-23 17:05:56 -05:00
Denis Kenzior a3b736afe5 Add implementation of GPRS context atom 2009-10-23 17:05:56 -05:00
Denis Kenzior fa800e5852 Fix: Rename Flag 2009-10-23 17:05:56 -05:00
Denis Kenzior f9a8ea1b08 Deactivate the context for removal if active 2009-10-23 17:05:56 -05:00
Denis Kenzior 08eda615c5 Refactor/Implement basic activate logic
Not yet tested
2009-10-23 17:05:55 -05:00
Denis Kenzior a12d252609 Add stub of gprs context deactivated 2009-10-23 17:05:55 -05:00
Denis Kenzior 0b45287dbd Fix: Typos 2009-10-23 17:05:55 -05:00
Denis Kenzior 69c872f400 Refactor: Initialization code 2009-10-23 17:05:55 -05:00
Denis Kenzior 43256236a0 Add GPRS registration status implementation 2009-10-23 17:05:55 -05:00
Denis Kenzior 8cb2bb7608 Remove unused code 2009-10-23 17:05:55 -05:00
Denis Kenzior 7587fe0de3 Fix: Style 2009-10-23 17:05:55 -05:00
Denis Kenzior 46dde73ab2 Remove unused functions 2009-10-23 17:05:55 -05:00
Denis Kenzior 369d9f8f33 Refactor: Deactivate all contexts function 2009-10-23 17:05:55 -05:00
Denis Kenzior 752468b16e Remove unused function 2009-10-23 17:05:55 -05:00
Denis Kenzior 8e0797ca24 Refactor: GPRS Remove Context function 2009-10-23 17:05:55 -05:00
Denis Kenzior b2c2ed5fdd Refactor: GPRS CreateContext function 2009-10-23 17:05:55 -05:00
Denis Kenzior f80df022d4 Remove unused function 2009-10-23 17:05:54 -05:00
Denis Kenzior 87b5d16c14 Refactor: context object path list 2009-10-23 17:05:54 -05:00
Denis Kenzior 58d44f6be9 Refactor: Context set_property function 2009-10-23 17:05:54 -05:00
Denis Kenzior 7409a6761f Refactor: Context get_properties 2009-10-23 17:05:54 -05:00
Denis Kenzior cbaf0aacfc Refactor: context finding by path 2009-10-23 17:05:54 -05:00
Denis Kenzior 6f7ef99759 Remove unused function 2009-10-23 17:05:54 -05:00
Denis Kenzior 65f77b2b3a Add CID range function 2009-10-23 17:05:54 -05:00
Denis Kenzior b745ebcf6f Refactor: Primary Context dbus reg/unreg 2009-10-23 17:05:54 -05:00
Denis Kenzior 7b3ab433eb Refactor: Use ofono_bool_t instead of int 2009-10-23 17:05:54 -05:00
Denis Kenzior 05d7cf9ee1 Refactor: Rename GPRS type enums 2009-10-23 17:05:54 -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 88c0f77a58 Refactor: First 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
Denis Kenzior 0faa8b3c42 Fix: Invalid call state transition
When an active and a waiting call exist, and the active is released the
waiting call becomes incoming.  This wasn't properly handled by the
generic at driver.
2009-10-23 13:56:26 -05:00
Zhang, Zhenhua fa10070bf9 Replace Glib type with standard C type 2009-10-23 13:40:49 -05:00
Zhenhua Zhang 525ca751bd Handle right bracket in next_unquoted_string 2009-10-23 13:39:41 -05:00
Denis Kenzior 732b91b2e8 Mention Ryan's contributions 2009-10-21 19:07:37 -05:00
Ryan Raasch d1db227d20 Enable / Disable CREAD functionality in gattty 2009-10-21 19:06:43 -05:00
Denis Kenzior 2b695bcdb6 Mention Olivier's contributions 2009-10-21 19:04:49 -05:00