Commit Graph

109 Commits

Author SHA1 Message Date
Denis Kenzior 6297470cf0 Fix: Handle MBM hardware that fails on EMRDY? 2009-11-05 11:00:57 -06:00
Denis Kenzior c63a0413cd Fix: Minor style issues 2009-11-03 11:57:43 -06:00
Gustavo F. Padovan 1acd7f8b75 Create network registration driver for hfpmodem
This driver handles phone informations about registration status, signal
strength and roaming status listening +CIEV commands.  It also gets the
Network Operator name with +COPS commands.
2009-11-03 11:49:35 -06:00
Marcel Holtmann 3c24593c0c Use ofono_info() for AT command debugging 2009-11-01 23:42:18 +09:00
Ryan M. Raasch f92888fae7 Inserted the GSM syntax option in modem.conf
This is patch to allow the gsm syntax to be specified in the
modem.conf file. It is a 2nd version based on code change requests.
2009-11-01 23:29:03 +09:00
Denis Kenzior a25f11862d Fix: Quiet compiler warning 2009-10-29 14:18:58 -05:00
Denis Kenzior 7ac963a26f Refactor: Make MBM driver actually use EMRDY 2009-10-29 14:18:58 -05:00
Denis Kenzior 8fed5a97fe Fix: Return EINPROGRESS as intended 2009-10-29 14:18:58 -05:00
Zhenhua Zhang 4a36fc7c82 Add voicecall driver for Bluetooth HFP
HFP voicecall driver uses AT+CIEV indicator to notify call status
update according to Bluetooth HFP spec v1.5. This patch only adds single
call support.
2009-10-28 17:33:33 -05:00
Denis Kenzior 6d31b05b95 Cleanup previous patch 2009-10-28 16:56:45 -05:00
Ryan Raasch a55b43123f Add serial settings parser to modemconf plugin 2009-10-28 16:39:19 -05:00
Marcel Holtmann 0bf1401589 Remove support for call forwarding and barring from MBM plugin 2009-10-25 01:14:26 +09:00
Andrzej Zaborowski 427224e9f8 Register gprs-context on calypso modem/phonesim. 2009-10-24 10:27:11 -05:00
Denis Kenzior 5cfe541582 Add GPRS context setup to MBM plugin 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 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
Olivier Le Thanh Duong 6d9bd02480 Migrate from RFC2822 to ISO8601 2009-10-21 19:04:47 -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 a1ca46253f Setup better debugging information for calypso 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 74f350aaf7 Add mux setup step to phonesim plugin 2009-10-15 16:15:16 -05:00
Marcel Holtmann 32ffbf915e Enable a few extra atoms in the Huawei plugin 2009-10-02 13:23:26 +02:00
Marcel Holtmann 0ebadcee45 Enable more atoms in the MBM plugin 2009-10-02 13:22:09 +02:00
Marcel Holtmann 7e11615ac3 Remove unused variables causing a compiler warning 2009-10-02 03:26:35 +02:00
Denis Kenzior 79cb80c7eb Update plugins to the new g_at_tty_open API 2009-10-01 17:01:15 -05:00
Andres Salomon 4decda3f7f G1: move chat handling into enable callback
This updates the g1 code to create the GAtChat object in the enable() callback,
and to unref it in the disable() callback.  This is more in line with what
the other plugins do, and as a bonus fixes a segfault when powering down
the G1 modem..

Signed-off-by: Andres Salomon <dilinger@collabora.co.uk>
2009-09-29 23:04:24 -05:00
Denis Kenzior 2e09c0002d Add call volume atom to calypso plugin 2009-09-29 14:56:23 -05:00
Denis Kenzior b015cd655a Add call volume to phonesim plugin 2009-09-29 14:56:22 -05:00
Denis Kenzior 2fb723c658 Fix: F3607gw not being recognized properly
Reports <foo> Broadband <foo> instead of <foo> Broadband Minicard <foo>

F3607gw Mobile Broadband Data Modem
F3607gw Mobile Broadband Modem
F3607gw Mobile Broadband GPS Port
F3607gw Mobile Broadband Network Adapter
F3607gw Mobile Broadband Device Management
F3607gw Mobile Broadband USIM Port
2009-09-28 12:51:33 -05:00
Denis Kenzior 599069e109 Add disconnection function 2009-09-18 13:33:41 -05:00
Denis Kenzior 12e77a3c70 Convert all the modem drivers to the new API 2009-09-17 10:15:34 -05:00
Denis Kenzior 8d52353425 Fix double free issue 2009-09-10 17:20:00 -05:00
Denis Kenzior f208e15ea8 Enable cell broadcast for phonesim plugin 2009-09-10 16:29:52 -05:00
Denis Kenzior 0c1f8003af Fix memory leak 2009-09-10 16:13:15 -05:00
Marcel Holtmann c155a91313 Add option to phonesim to run with or without multiplexer 2009-09-08 09:24:52 +02:00
Denis Kenzior 74d0493230 Add a few more comments to the calypso plugin 2009-09-07 20:16:16 -05:00
Marcel Holtmann 3c0ea95f9a Add more calypso specific quirks when using phonesim 2009-09-08 03:14:46 +02:00
Marcel Holtmann 0910ee7349 Add support for using phonesim and calypso for testing 2009-09-08 03:01:52 +02:00
Marcel Holtmann e4d0a28b48 Update modem configuration parameter parsing for generic AT plugin 2009-09-05 04:48:08 +02:00
Denis Kenzior 8f607eff42 Update calypso modem driver
Use calypso voicecalls driver
2009-09-04 20:37:50 -05:00
Denis Kenzior 918a8ee7f3 Make calypso plugin use the permissive parser 2009-09-04 20:37:49 -05:00
Denis Kenzior 85cbb8bfe9 Make G1 driver use the permissive parser 2009-09-04 20:37:48 -05:00