Commit Graph

1070 Commits

Author SHA1 Message Date
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
Olivier Le Thanh Duong 6d9bd02480 Migrate from RFC2822 to ISO8601 2009-10-21 19:04:47 -05:00
Marko Saukko 1b13ce308f Doc: Update modem api
Add SetProperty and Powered property to modem-api.txt document.
2009-10-21 19:04:45 -05:00
Denis Kenzior f726596860 Rename: drivers/hfpmodem/hfp.[ch] to hfpmodem.[ch]
Be more consistent with other drivers
2009-10-19 22:13:19 -05:00
Denis Kenzior c4594d2543 Fix: Make 'make distcheck' happy again 2009-10-19 17:07:23 -05:00
Denis Kenzior 17072b1949 Fix: Use debug instead of info 2009-10-19 17:00:32 -05:00
Denis Kenzior 5635703141 Refactor: Setup the HF features bitmap
Do not use magic numbers unless strictly necessary
2009-10-19 16:59:44 -05:00
Denis Kenzior 0ca88b36e7 Refactor: Don't store indicator names
We already know the indicators we're interested in from the
specification, malloc/free-ing the indicator names is thus pointless.
Instead save off the indicator index positions in an array.  Parse the
current values instead of storing the unparsed list.
2009-10-19 16:58:13 -05:00
Zhenhua Zhang fb0c157c11 Add initial glue code for hfp driver 2009-10-19 15:48:07 -05:00
Denis Kenzior 7f06b6ead7 Add test script for USSD 2009-10-16 17:46:29 -05:00
Denis Kenzior 86cd4951b3 Fix: Use proper printf format for string precision 2009-10-16 17:46:29 -05:00
Denis Kenzior 210bb5cc0a Cleanup: Fixup USSD to use cbs_decode_dcs
Don't decode by hand, use existing function
2009-10-16 17:46:28 -05:00
Andrzej Zaborowski 15c07346df Parse +CUSD responses. 2009-10-16 17:46:28 -05:00
Denis Kenzior feda620c94 Fix: Stop crashing when unrefing chat in callback 2009-10-16 17:46:28 -05:00
Marcel Holtmann 41c4abada0 Release 0.8 2009-10-16 22:18:31 +02:00
Denis Kenzior eb2c60469c Fix: Don't return NULL if message is empty
Empty SMS messages are in sms_decode_text are returned as NULL, e.g.
error.  This shouldn't be the case, empty messages should be reported
and signaled.
2009-10-16 13:19:11 -05:00
Denis Kenzior 281065e249 Mention Marko's contribution 2009-10-16 13:07:35 -05:00
Andrzej Zaborowski 30b86c1dda Fix: Skip over empty messages 2009-10-16 11:50:42 -05:00
Andrzej Zaborowski 2974d69ddf Fix: Emit debug message instead of an error
SMS storage is frequently empty at startup, if this is the case, do not
use ofono_error, use ofono_debug instead.
2009-10-16 11:14:26 -05:00
Andrzej Zaborowski 2d992d7912 Always return a string from telephony_error_to_str.
So that it can be used as a printf argument directly.
2009-10-16 11:14:02 -05:00
Andrzej Zaborowski 5773e30373 Refactor: Move network registration status utils
Move the status to string functions to common.c so that they can be
reused in data connection related network registration code.
2009-10-16 11:12:43 -05:00
Andrzej Zaborowski e6b8550328 Fix: Free converted string after use.
Also make sure we don't read beyond end of the string.
2009-10-16 11:09:42 -05:00
Marko Saukko c6f4a39ab7 API: Documentation fixes 2009-10-16 11:01:09 -05:00
Aki Niemi 2a8159b21b Fix conditional statement 2009-10-16 14:02:27 +03:00
Aki Niemi 9ca602c283 Fix: restrict keyword use breaking distcheck 2009-10-16 11:26:15 +03:00
Pekka Pessi 86b6cd91c9 isimodem/voicecall.c: initial version
Implementing all the voicecall methods. Tested with Nokia 2008 modems.

 - problems in call creation are probably not reported properly
 - deflect not implemented in modem, not properly tested

TODO: Clean up style issues and align with other drivers.
2009-10-16 11:18:52 +03:00
Aki Niemi 74cc9cb4b7 Refactor sub-sub-block handling 2009-10-16 11:18:52 +03:00
Denis Kenzior a1ca46253f Setup better debugging information for calypso 2009-10-15 16:15:18 -05:00
Denis Kenzior 9f9327e1e5 Fix: Quiet a warning on some compilers 2009-10-15 16:15:18 -05:00
Denis Kenzior 42b74e9db3 Multiplexer support for OpenMoko device 2009-10-15 16:15:18 -05:00
Denis Kenzior 389da0bb15 Fix: Do not leak chat memory 2009-10-15 16:15:18 -05:00
Denis Kenzior 43e5152934 Fix: Do not leak chat references in case of error 2009-10-15 16:15:17 -05:00
Denis Kenzior 20dc22a6c4 Fix: Cleanup debug formats 2009-10-15 16:15:17 -05:00
Denis Kenzior d4d1617684 Fix: Do not send shutdown more than once 2009-10-15 16:15:17 -05:00
Denis Kenzior a8af38d209 Fix: Be more paranoid in checking DLC validity 2009-10-15 16:15:17 -05:00
Denis Kenzior 350141ac9b Update unit tests for GSM 07.10 implementation 2009-10-15 16:15:17 -05:00
Denis Kenzior 112d07e14e Refactor: Add driver model to GAtMux
GAtMux can now be made to work with multiple multiplexing protocols.
Currently on the 27.010 (07.10) Advanced and Basic modes are supported.
However, further protocol support can be added by providing the
necessary driver functions for GAtMux
2009-10-15 16:15:17 -05:00
Denis Kenzior 90bdd961a7 Fix: Quiet compiler warning 2009-10-15 16:15:17 -05:00
Denis Kenzior bcf962c79c Forgot to add void* to get_data 2009-10-15 16:15:17 -05:00
Denis Kenzior 6bfd76123b Forgot to add driverdata functions 2009-10-15 16:15:17 -05:00
Denis Kenzior a4a54f6625 Refactor: Enable multiplexer drivers for GAtMux 2009-10-15 16:15:17 -05:00
Denis Kenzior 1575f2dcd1 Fix: Notify sources upon shutdown 2009-10-15 16:15:16 -05:00
Denis Kenzior e4017db3bb Update unit test for the new API 2009-10-15 16:15:16 -05:00
Denis Kenzior 74f350aaf7 Add mux setup step to phonesim plugin 2009-10-15 16:15:16 -05:00