Commit Graph

1196 Commits

Author SHA1 Message Date
Guillaume Zajac d0232dee06 atmodem: Poll SIM state after having entered PIN
We encountered the problem of CME ERROR 14: SIM busy on ZTE modems.
ZTE modems don't use SIM notification to check SIM state.
We poll SIM ready state before confirming PIN is entered.
2012-04-18 04:22:19 -05:00
Guillaume Zajac fb92db81d4 atutil: Add destroy notify to sim_state_query 2012-04-18 04:06:43 -05:00
Denis Kenzior 2bc5a791d7 speedup: No need to parse error 2012-04-16 13:15:52 -05:00
Denis Kenzior 8227642757 speedup: Remove ussd atom in case we fail to init 2012-04-16 13:15:52 -05:00
Denis Kenzior 77de440f28 atmodem: Remove ussd atom in case we fail to init 2012-04-16 13:15:52 -05:00
Nicolas Bertrand a9cc215bc5 speedup: Add speedup driver to handle USSD 2012-04-16 13:15:52 -05:00
Michael Brudevold ef25cf1adf hfpmodem: use full CLCC handling in dialing case
A call that moves from the dialing to active state before the +CLCC response
will not properly be added as a voicecall. This is because the dialing callback
was using simplified handling and only looked for calls in the dialing or
alerting state.

AT sequence that exhibited the failure (AG device was an iPhone accessing
visual voicemail):

> +CIND: ("service",(0-1)),("call",(0-1)),("callsetup",(0-3)),
("battchg",(0-5)),("signal",(0-5)),("roam",(0-1)),("callheld",(0-2))
...
> +CIEV: 3,2
< AT+CLCC
> +CIEV: 2,1
> +CIEV: 3,0
> +CLCC: 1,0,0,0,0,"**21153**",129,"Voicemail"
2012-04-11 23:54:38 -05:00
Philippe Nunes 09449f1e66 sms: Add ZTE quirk for CDS notifications 2012-04-06 11:05:48 -05:00
Denis Kenzior ccbccc9bd0 nwmodem: Remove atom if driver fails to init 2012-03-26 16:50:59 -05:00
Denis Kenzior 86e64128fa ifxmodem: Remove atom if driver fails to init 2012-03-26 16:50:46 -05:00
Denis Kenzior 979b244fcf hsomodem: Remove atom if driver fails to init 2012-03-26 16:50:36 -05:00
Denis Kenzior ab4cfc1070 ztemodem: Remove atom if driver fails to init 2012-03-26 16:50:11 -05:00
Denis Kenzior e9fc8c6411 ztemodem: Fix compile error
drivers/ztemodem/radio-settings.c:129: error: ‘value’ may be used
uninitialized in this function
2012-03-26 16:49:38 -05:00
Bertrand Aygon 75e3bb6167 ztemodem: Add radio settings support 2012-03-26 16:42:38 -05:00
Bertrand Aygon 87bda87830 Add ZTE modem driver 2012-03-26 16:38:19 -05:00
Jarkko Lehtoranta 8b11ee67d7 huaweimodem: Fix AT^DDSETEX=2 timing for voice calls
Voice output serial port is enabled on some Huawei models (e.g. E169)
without problems, but for example on E173u-2 it is never enabled
during an incoming call. There might also be other Huawei models
having the same issue.

I traced the issue down to "^DDSETEX" AT command, which is used
to notify the device to start streaming audio. It seems that Ofono
sends this command too early on incoming calls. The command should
always be sent *after* the dial "D" or answer "A" command. The patch
fixes this behavior and afterwards voice will also work on E173u-2.
2012-03-24 11:50:34 -07:00
Denis Kenzior 31e1b2e6ce sim: Don't use sprintf unnecessarily
Using sprintf for a single quote is quite wasteful
2012-03-23 08:28:37 -05:00
Denis Kenzior 95e7982938 sim: Fix up various coding style violations 2012-03-23 08:27:44 -05:00
Nicolas Bertrand ad29b6d18f sim: Use quoted string with AT+CRSM data parameter
Fix issue with some modems preventing to update elementary files
(speedup, ZTE, huawei, MBM)
2012-03-23 08:12:24 -05:00
Marcel Holtmann 63acbad39a swmodem: Add support for IPv6 and IPv4v6 contexts 2012-03-21 22:09:03 -07:00
Marcel Holtmann 81ad5ea8e0 swmodem: Add Sierra Wireless DirectIP support 2012-03-21 21:13:13 -07:00
Marcel Holtmann 82d0c258c3 swmodem: Add Sierra Wireless modem driver 2012-03-21 21:10:30 -07:00
Marcel Holtmann 6b0880f8a7 isimodem: Remove includes of <glib/gtypes.h> 2012-03-19 16:12:36 -07:00
Denis Kenzior ebac438d93 voicecall: Fix strange GTA04 modem CLCC behavior 2012-03-06 10:12:31 -06:00
Renat Zaripov c217638197 sms: Disable sending AT+CNMA with SIMCOM quirk
SIMCOM SIM900 modem module not support AT+CNMA command
2012-02-27 20:29:22 -06:00
Denis Kenzior 876fb9e1b4 atutil: Ignore invalid CLCC results
Some phones report CLCC calls with out-of-range info.  E.g. call index
being 0 (it is 1 based according to 27.007) and call states being
reported as '6' (valid call states are 0-5.)
2012-02-27 20:28:42 -06:00
Renat Zaripov 409b0f01b6 sim: Add SIMCOM specific PIN retry handling
Use AT+SPIC for obtaining retries remaining for SIM PIN / PUK

AT+SPIC Retries Remaining to Input SIM PIN/PUK

+SPIC: <pin1>,<pin2>,<puk1>,<puk2>

Parameters
<pin1> Times remained to input chv1
<pin2> Times remained to input chv2
<puk1> Times remained to input puk1
<puk2> Times remained to input puk2
2012-02-22 04:14:16 -06:00
Marcel Holtmann 04ab1b2863 atmodem: Use CSQ based notification for IFX signal strength
Since the XCIEV notifications are unclear, use XCSQ notifcations to
report signal strength updates.
2012-02-16 08:20:29 +01:00
Marcel Holtmann bba5a1a000 atmodem: Ignore results from IFX radio signal strength indication
It seems the that XCIEV notification actually returns results from XCSQ
and not the described range 0-7. This makes this notification rather
useless to report signal strength.
2012-02-16 08:15:48 +01:00
Marcel Holtmann 1ed0b9997c atmodem: Fix handling of IFX signal strength indication 2012-02-14 15:23:59 +01:00
Marcel Holtmann 286b4a8530 atmodem: Add debug for IFX signal strength reporting 2012-02-14 14:53:51 +01:00
Marcel Holtmann e5c966ce53 ifxmodem: Add support for dynamic DNS for IPv6 and dual mode contexts 2012-02-10 12:02:42 +01:00
Marcel Holtmann 5c5eff0b5b ifxmodem: Add support for IPv6 and dual mode contexts 2012-02-10 11:45:34 +01:00
Marcel Holtmann 25bde3be6b ifxmodem: Remove audio settings mode handling
With the current updated setup, the audio settings mode is no longer
provided. So don't bother even trying to configure it.
2012-02-10 10:04:34 +01:00
Marcel Holtmann b88a621528 ifxmodem: Remove another usage g_utf8_validate 2012-02-10 09:42:54 +01:00
Denis Kenzior 9d666ccce0 ifx: Don't use g_utf8_validate
Emergency Numbers can only be digits, so there's no point to use the
'Hammer of Thor' that is g_utf8_validate when a much simpler function
will do the job just as well.
2012-02-10 00:38:37 -06:00
Denis Kenzior 7e42c5bbb0 ifx: Modify XLEMA behavior
XLEMA reports emergency numbers that are hardcoded (e.g. 112 and 911)
and that are already read from EFecc.  The additional emergency numbers
we are interested in should only come from the NVM or the network NITZ
update.
2012-02-09 22:34:02 -06:00
Marcel Holtmann cfdc96186e ifxmodem: Handle malformed emergency numbers
This might be either a modem firmware bug or the SIM card is provisioned
really badly, but the last entry contains garbage characters.

ofonod[20620]: Voice: < \r\n+XLEMA: 1,9,"112",,1\r\n\r\n+XLEMA: 2,9,"911",,1\r\n\r\n+XLEMA: 3,9,"000",57,1\r\n\r\n+XLEMA: 4,9,"08",49,1\r\n\r\n+XLEMA: 5,9,"112",49,1\r\n\r\n+XLEMA: 6,9,"118",0,1\r\n\r\n+XLEMA: 7,9,"119",0,1\r\n\r\n+XLEMA: 8,9,"911",0,1\r\n\r\n+XLEMA: 9,9,"999\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377",0,1\r\n

Fix this by just validating the string and cutting off once an invalid
character is found.
2012-02-10 02:15:16 +01:00
Denis Kenzior d5bdd1f741 ifx: Add necessary incantations for audio 2012-02-09 08:36:18 -06:00
Renat Zaripov a81490560b atmodem: Add SIMCOM vendor quirk
Adding vendor quirk for SIMCOM SIM900 modem module.
2012-01-11 23:48:24 -06:00
Marcel Holtmann b111c99026 huaweimodem: Reset errors for USSD cancel operation 2012-01-12 06:25:36 +01:00
Marcel Holtmann 6ada7d8bdc huaweimodem: Add support for USSD 8-bit PDU mode
The Huawei devices support a special 8-bit PDU mode for USSD that is
by default selected (AT^USSDMODE=1). It avoids the complicated logic
for character set selection and conversion.
2012-01-12 06:02:16 +01:00
Marcel Holtmann f654d75182 atmodem: Add more debug for USSD response parsing 2012-01-12 04:01:07 +01:00
Guillaume Zajac 38056fdd50 atmodem: Create new sim driver without EF entries
This driver will be used by CDMA modems to support PIN
management and IMSI retreival.
EF entries for CDMA modems cannot be implemented without
manufacturers specifications.
2012-01-11 06:46:24 -06:00
Denis Kenzior 6f2f3897c7 ussd: Remove CSCS handling for QUALCOMM_MSM 2012-01-11 06:38:28 -06:00
Marcel Holtmann b9e86d98be huaweimodem: Move CDMA network registration into default driver
With merging the GSM/UTMS and CDMA modem plugin into a unified version,
it also makes sense to merge the Huawei specific vendor atom drivers
into one.
2012-01-06 19:53:23 -08:00
Marcel Holtmann 9e26e29f8d atmodem: Add call state polling for Qualcomm MSM based modems
The voice call support of the Qualcomm MSM based modems does not report
NO CARRIER, NO ANSWER or BUSY unsolicited notifications. So keep polling
for call state changes via AT+CLCC even during an active call.
2012-01-06 14:08:35 -08:00
Marcel Holtmann 02cbee4955 atmodem: Disable AT+COLP for Qualcomm MSM based modems
In case of Qualcomm MSM based modems, AT+COLP=0 needs to be used to make
ATD<number>; return right away. Otherwise it only returns once the remote
party accepted or rejected the call.
2012-01-06 14:05:59 -08:00
Syam Sidhardhan 5e06f070aa atutil: Fix newline before EOF 2012-01-01 18:17:36 -06:00
Syam Sidhardhan 31db8836a6 isimodem: Remove extra bogus semicolon 2011-12-28 16:00:39 -06:00