Commit Graph

135 Commits

Author SHA1 Message Date
Martin Xu 5cc3323cd1 Fix: handle weird Dell 5530 mbm card network name 2009-11-24 14:54:46 -06:00
Marcel Holtmann 0333ad8580 Move g_at_chat_add_terminator after chat object is verified 2009-11-24 18:08:46 +01:00
Yang Gu 4bc444e9a8 Support Huawei specific terminator 2009-11-24 18:06:45 +01:00
Denis Kenzior 4c64f30438 Fix: Try sending AT<CR>
Sometimes <CR> doesn't work
2009-11-23 19:55:16 -06:00
Denis Kenzior 781a9eedf3 Turn off echo on HSO modems 2009-11-18 18:07:11 -06:00
Denis Kenzior 08ff8b6cd9 Make HSO modem driver use App & Control ports
The Application port gets all unsolicited notifications except for
OWANCALL notifications.  In turn only the Control port gets OWANCALL
notifications.

This means that we run GPRS Context control on the Control port and
network registration / sms on the application port
2009-11-18 18:07:11 -06:00
Denis Kenzior d4fb6d1a8c Make HSO support detect Application & Control port 2009-11-18 18:07:10 -06:00
Denis Kenzior eec0dbfb85 Fix: Use none_prefix
Do not eat up unsolicited notifications that might arrive as a result of
CFUN=0
2009-11-18 18:07:10 -06:00
Denis Kenzior 781f9cc0d0 Add initial HSO GPRS context driver 2009-11-18 18:07:10 -06:00
Denis Kenzior 9badf5ca73 Fix: modem _disable needs to send the CFUN
For PalmPre driver
2009-11-18 12:09:43 -06:00
Denis Kenzior d7613a0478 Fix: modem _disable needs to send the CFUN
For Novatel driver
2009-11-18 12:09:43 -06:00
Denis Kenzior 1ebf59b61b Fix: modem _disable needs to send the CFUN
For MBM driver
2009-11-18 12:09:42 -06:00
Denis Kenzior 446b9e645d Fix: modem _disable needs to send the CFUN
For Huawei driver
2009-11-18 12:09:42 -06:00
Denis Kenzior 16834cc005 Fix: modem _disable needs to send the CFUN
For HSO driver
2009-11-18 12:09:42 -06:00
Denis Kenzior 8c52019c1a Fix: modem _disable needs to send the CFUN
For G1 Driver
2009-11-18 12:09:42 -06:00
Denis Kenzior 911b78594e Support SonyEricsson MD300 2009-11-18 09:34:08 -06:00
Denis Kenzior 6afea47158 Fix: Use Application port instead of Control
It seems Control port does not send CGREG unsolicited notifications
2009-11-17 11:38:23 -06:00
Denis Kenzior 6c428c9823 Fix: Add support for Option Icon 401 2009-11-13 09:12:47 -06:00
Denis Kenzior 9a29698cdf Fix: Remove yet another duplicate atom 2009-11-13 09:12:35 -06:00
Denis Kenzior df410cfd1e Fix: Remove duplicate SMS atom from HSO plugin 2009-11-13 00:23:19 -06:00
Ryan M. Raasch d10f7c2b04 Fix: Capitalize modem options in calypso driver
This patch fixes the calypso driver when setting the g_at_tty
variables.
2009-11-11 16:49:25 -06:00
Zhenhua Zhang 28c6bbb558 Add call volume support for hfpmodem
The call volume driver listens the speaker volume and microphone
gain from the AG. It also allow to synchronze the speaker and
microphone volume changes with the AG through AT+VGS and AT+VGM.

Volume level synchronization from HFP spec 1.5 Section 4.28.2
is performed on startup.
2009-11-11 15:53:55 -06:00
Denis Kenzior 7b9d72f2fe Add SMS support to PalmPre plugin 2009-11-10 16:29:24 -06:00
Andrzej Zaborowski aad6a76125 Add Palm Pre plugin 2009-11-10 16:29:23 -06:00
Denis Kenzior 27e32f12cd Fix: Rename G1 quirk to QUALCOMM_MSM 2009-11-10 16:29:23 -06:00
Denis Kenzior 55425238b0 Add sample implementation of SMS history 2009-11-05 16:47:38 -06:00
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