Commit Graph

55 Commits

Author SHA1 Message Date
Denis Kenzior b3a3d72825 ifx: Use sim_initialized_notify 2017-11-08 21:41:34 -06:00
Denis Kenzior 6e3a6156b3 ifx: Bump the setup timeout
The newer IFX firmware was changed, it no longer accepts AT commands
until the UA frame has been sent back to the AP.  The commands are
simply dropped on the floor.  This requires a proper fix in GAtMux, but
until then simply bump up the timeout to get around this issue.
2012-11-28 10:31:15 -06:00
Denis Kenzior e9d15ae899 ifx: Rework SIM state handling
When performing a SIM REFRESH, particularly NAA Initialization, we need
to wait until the modem sends XSIMSTATE: 7, not XSIMSTATE:2.  Even on
normal initialization it seems safer to wait until XSIMSTATE:2.
2012-11-28 10:31:14 -06:00
Denis Kenzior 8b339a4754 ifx: Move connman atom to post_sim state 2012-11-22 06:50:09 -06:00
Denis Kenzior 792c9c02f8 ifx: Get rid of have_sim tracking 2012-11-22 06:50:08 -06:00
Marcel Holtmann d36e4b7580 ifx: Add comments about unhandled SIM states 2012-11-23 16:41:23 +01:00
Marcel Holtmann 7693007d2e ifx: Add support for Assisted Satellite Navigation 2012-02-16 13:06:52 +01:00
Marcel Holtmann e3ef803a75 ifx: Setup CSCS to use GSM for the aux port
This change is needed since otherwise umlauts and other characters
for USSD responses will not work properly.
2012-02-10 12:20:58 +01:00
Denis Kenzior 2708ca3b63 ifx: Take out bad merge 2012-02-09 22:35:21 -06:00
Marcel Holtmann e2fe4e4940 ifx: Use CFUN=0 (Minimum Functionality) to disable modem 2012-02-10 02:42:43 +01:00
Marcel Holtmann b1b0fe761e ifx: Remove handling of audio settings setup
The audio settings setup is now done as port of the audio settings atom.
2012-02-10 01:17:06 +01:00
Marcel Holtmann 31efecfe72 ifx: Fix compilation issue 2012-02-02 21:51:26 -08:00
Denis Kenzior 6b44e65993 ifx: Make sure query XSIMSTATE
XSIMSTATE=1 does not seem to reliably activate XSIM notifications
anymore.  So query the XSIMSTATE at startup instead.
2012-02-02 09:15:36 -06:00
Denis Kenzior 1b5b46a23e ifx: Use a proper prefix for XGENDATA 2012-02-02 05:53:53 -06:00
Marcel Holtmann c867c9f9bf plugins: Update copyright information 2011-10-10 13:39:54 -07:00
Marcel Holtmann 99a53ca653 ifx: Fix minor whitespace mistakes 2011-08-09 16:50:30 -07:00
Marcel Holtmann f416abdc39 ifx: Fix race condition when online/offline operation fails 2011-07-24 12:54:38 +02:00
Andras Domokos 4a36b93d6a ssn: remove SSN atom completely 2011-03-11 13:08:51 -06:00
Jeevaka Badrappan f2b8e0f5b9 ifx: Remove modem selftest support
Commands used for self tests are not working for all
versions of the modem firmware.
2011-02-10 08:16:51 -08:00
Anand Ramakrishna 6608c0018d ifx: Fix for changed selftest AT command syntax
It is a fix to support the selftest AT command syntax changed in latest
IFX fw version.
2011-02-08 14:44:12 -08:00
Anand Ramakrishna 09b169c95f ifx: Adding modem selftest for Infineon modem
Infineon modem selftest, during ifx_enable().
Two steps trigger with timeout. In case one fails, modem will not power up.
2011-02-07 13:41:59 -08:00
Jeevaka Badrappan 8c667aadad plugins: remove NULL check 2011-01-29 18:39:37 +01:00
Marcel Holtmann deaa45196d ifx: Move SMS support into post_sim stage 2011-01-29 10:28:05 +01:00
Marcel Holtmann a4d14ccb3e ifx: Remove modification of GIOChannel before multiplexer setup
After g_at_chat_new() call the GIOChannel is already in non blocking,
no encoding and no buffering mode. So no need for extra modifications.
2011-01-19 15:32:52 +01:00
Jeevaka Badrappan 00a2335ed4 ifx: add ctm create to ifx plugin 2011-01-14 14:34:48 +01:00
Denis Kenzior 9e4c1a64cf ifx: Move radio_settings to post_sim 2010-12-21 16:31:14 -06:00
Jeevaka Badrappan e3358cc24b ifx: Move call forwarding to post sim 2010-12-17 17:03:55 -06:00
Lucas De Marchi 67f78f680d plugins: explicitly compare pointers to NULL
This patch was generated by the following semantic patch
(http://coccinelle.lip6.fr/)

// <smpl>
@fix disable is_null,isnt_null1@
expression *E;
@@

- !E
+ E == NULL
// </smpl>
2010-11-29 12:55:49 -06:00
Marcel Holtmann f6c3a9ae94 ifx: Enable vendor quirk for GPRS atom
Enabling the Infineon specific vendor quirk for the GPRS atom will enable
support for the GPRS suspend notifications.
2010-10-29 13:42:34 +02:00
Marcel Holtmann 305514ced9 ifx: Add support for having three active GPRS contexts
The Infineon modem can at least support three active GPRS contexts in
M-RAW_IP mode. So use another DLC for the third context.
2010-10-26 17:05:23 +02:00
Marcel Holtmann 74c23d3302 ifx: Use M-RAW_IP support only with internal multiplexer
The GPRS context can only be fully supported with the internal multiplexer
right now. So use M-RAW_IP support in that case. If using a kernel based
multiplexer, then no GPRS context is provided.
2010-10-26 17:00:52 +02:00
Marcel Holtmann 2c863506d3 ifx: Detect when DLC shutdown happens
In case one of the DLCs shuts down, the system has an undefined state
and thus just shutdown the whole device.
2010-10-24 20:15:45 +02:00
Marcel Holtmann 4a5f37dafd ifx: Detect modems stuck in multiplexer mode
When the initial AT commands on the master device don't respond, then
the modem is stuck in multiplexer mode. For now just report an error.
2010-10-24 20:00:32 +02:00
Marcel Holtmann e4b09b3012 ifx: Use PPP based GPRS context if M-RAW_IP is not available 2010-10-23 12:57:42 +02:00
Marcel Holtmann 2c06348356 ifx: Add two GPRS contexts since the modem should support it 2010-10-21 23:51:36 +02:00
Marcel Holtmann f6b92bd2d9 ifx: Use Infineon specific GPRS context driver 2010-10-21 21:54:04 +02:00
Marcel Holtmann cca0782029 ifx: Use Infineon specific phonebook vendor quirk 2010-10-21 20:32:18 +02:00
Marcel Holtmann e74723776a ifx: Assign GPRS DLCs as slaves of the network DLC 2010-10-21 18:51:38 +02:00
Marcel Holtmann 2475d8826c ifx: Wait for DLC creation to settle (internal multiplexer)
When driving the Infineon modem with the builtin multiplexer there is
a small race condition with setting up the channels and sending the
first AT commands. The window here is pretty small, but it seems to be
a modem firmware issue. In case the AT command is send right away it can
happen that the modem does not process any further AT commands. In that
case the setup is stuck and enabling the modem fails.

Just adding a 10 milliseconds delay after DLC creation and before
sending the first AT commands is enough to make this work smoothly.
2010-10-19 22:59:21 +02:00
Marcel Holtmann 56480ba582 ifx: Separate AT command from multiplexer debug setting 2010-10-17 14:50:45 +02:00
Marcel Holtmann 9bc187bd45 ifx: Disable modem UART for power saving
Send AT+XPOW=0,0,0 command when enabling modem to disable UART. This
is done for power saving.
2010-10-13 08:42:45 +03:00
Marcel Holtmann 7a77b292e3 ifx: Remove support for OFONO_IFX_MODEL option
The Infineon modem model is now auto-detected, so there is no longer
any need to specify it in the udev configuration rules.
2010-10-01 15:18:06 +02:00
Marcel Holtmann 0aae76c7aa ifx: Enable audio settings atom support 2010-10-01 13:17:24 +02:00
Marcel Holtmann 31d3142256 ifx: Fix crash with XGENDATA result callback 2010-10-01 12:31:19 +02:00
Marcel Holtmann 7dbdf46215 ifx: Use XGENDATA for modem model detection
The XGENDATA result contains various strings that also contain the modem
model. Make this command mandatory for the modem bringup and after it
succeeded, check for the XMM6260 string to setup specific audio settings.

This makes using ENV{OFONO_IFX_MODEL}="XMM6260" obsolete, but for now it
is still left as a possible option. It might be removed later.
2010-10-01 06:38:02 +02:00
Marcel Holtmann 2f90ddff3c ifx: Request firmware details on modem init
The firmware details can be requested via AT+XGENDATA. So do this at
modem init to have these in the logs. Currently nothing is done with
this data, but eventually it can be used for modem specific settings
like the audio configuration.
2010-09-29 23:30:39 +09:00
Marcel Holtmann 4d49d0879f ifx: Add support for audio configuration of modem
For the XMM6260 Infineon modem it is possible to use different audio
configuration depending on your platform. Currently the setup of
FULL_DUPLEX, BURSTMODE_48KHZ and BURSTMODE_96KHZ are supported. If
appropiate values for OFONO_IFX_MODEL and OFONO_IFX_AUDIO are set
in the udev rules file, then the audio configuration will be changed
when bringing up the modem.
2010-09-29 07:41:01 +09:00
Marcel Holtmann 592f927495 ifx: Add warning for unknown SIM states 2010-09-26 17:09:25 +09:00
Marcel Holtmann f5eaf8a3fb ifx: Allow +XSIM notification to arrive during AT+XSIMSTATE=1
When not using none_prefix for matching the responses of AT+XSIMSTATE
call, it will consume all notifications. And this includes the initial
SIM state that the modem sends at that point. Without this notification
the SIM will never be marked as inserted.
2010-09-25 14:20:32 +09:00
Marcel Holtmann 1267247f5e ifx: Use internal mutliplexer if line discipline is not specified
If there is no line discipline specified for a kernel based multiplexer,
then fallback to the internal one.
2010-09-25 14:09:40 +09:00