Commit Graph

397 Commits

Author SHA1 Message Date
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
Marcel Holtmann dcbceb249d ifx: Use multiplexer line discipline configuration option
Since the udev support allows to specify a line discipline number as
part of the modem configuration, use that one and report and error if
it has not been set.
2010-09-25 13:21:53 +09:00
Marcel Holtmann d0adc058c4 udev: Add support for setting IFX multiplexer line discipline
The IFX modem plugin uses a kernel based multiplexer. And to support
different line discipline numbers on different target platforms, allow
them to be specified as option:

KERNEL=="ttyIFX[0-9]*", ENV{OFONO_DRIVER}="ifx", ENV{OFONO_IFX_LDISC}="23"

The extra OFONO_IFX_LDISC option specifies to use line discipline 23
for the multiplexer setup. The number is just an example here and the
correct one will be different.
2010-09-25 13:12:36 +09:00
Marcel Holtmann 2a62e28659 ifx: Use SIM state notification for SIM insertion and removal
The +XSIM notifies us about missing or removed SIM. Use that for telling
the core if a SIM card is present or not. Besides that all other states
are treated as when a SIM card got inserted.
2010-09-25 11:49:00 +09:00
Marcel Holtmann 08f0ce6772 ifx: Add support for multiplexer setup
This supports a simple static multiplexer that is activated with setting
the line discipline 23 on the TTY. It is static, because the DLC numbers
are hardcoded.
2010-09-24 22:28:49 +09:00
Marcel Holtmann 12c846637d ifx: Add initial modem plugin implementation
This is a first attempt at the Infineon modem support. The support
is limited since it doesn't handle the setup of the multiplexer or
the different SIM states yet.
2010-09-24 18:32:06 +09:00
Marcel Holtmann 12bfc932f9 calypso: Fix debug for modem callbacks 2010-09-24 14:45:31 +09:00
Marcel Holtmann 69a6323633 calypsomodem: Use better debug strings for DLCs 2010-09-24 14:37:42 +09:00
Marcel Holtmann be1912fe9c Make debug handling with OFONO_AT_DEBUG a bit more consistent 2010-09-24 14:14:04 +09:00
Denis Kenzior 7e32ced1f3 example_history: Update to the new internal API 2010-09-21 08:44:48 -05:00
Kalle Valo 78842faa30 huawei: fix online logic
The recently introduced online support to huawei didn't work with my
Huawei E1552. The problem was that with command AT+CFUN=1;+CFUN=5
the modem didn't initialise the sim state properly.

To fix this I changed the logic so that CFUN=5 is called only after the sim
state has switched to a valid state. Now my Huawei E1552 works with connman
again.

PIN locked SIMs still won't work. The problem is that it takes some time for
the sim state to go to a valid state:

Sep 20 15:01:57 dell-m520 ofonod[12451]: Pcui:< \r\n+CPIN: READY\r\n\r\nOK\r\n
[...]
Sep 20 15:02:00 dell-m520 ofonod[12451]: huawei: invalid sim state in post online (0)
[...]
Sep 20 15:02:01 dell-m520 ofonod[12451]: Pcui:< \r\n^SIMST:1\r\n

I don't know why it takes so long to get a valid state.

There is also another issue, in "cold start" case the phonebook
initialisation fails:

Sep 20 14:34:24 dell-m520 ofonod[11939]: Pcui:> AT+CPBS=?\r
Sep 20 14:34:24 dell-m520 ofonod[11939]: Pcui:< \r\n+CME ERROR: SIM busy\r\n

But in "warm start" it seems to work:

Sep 20 14:38:59 dell-m520 ofonod[12091]: Pcui:> AT+CPBS=?\r
Sep 20 14:38:59 dell-m520 ofonod[12091]: Pcui:< \r\n+CPBS: ("SM","EN","ON")\r\n\r\nOK\r\n

I consider this as a minor issue and didn't investigate it at all.
2010-09-21 02:08:45 +09:00
Kalle Valo 940eaffa72 huawei: poll sim state
On my Huawei E1552 when I plug in the modem (ie. cold start) with PIN locked
SIM, the sim state is 255 (HUAWEI_SIM_STATE_NOT_EXISTENT). As the modem
doesn't send ^SIMST notifications, poll the sim state until it's ready.

In theory it might be possible to do this better, for example follow
^BOOT notifications or something, but it's unknown what parameter we
should check for.
2010-09-21 02:08:24 +09:00
Yang Gu 5d569e2ee6 hso: Enable phonebook atom 2010-09-19 20:38:13 +09:00
Marcel Holtmann df807d6d0a ifx: Add skeleton for Infineon modem plugin 2010-09-18 22:13:53 +09:00
Marcel Holtmann 3443a7a177 udev: Add support for IFX device detection
The IFX device detection is pretty static, but instead of using
a static configuration file it is important to know when the device
node is actually present. For this udev is perfect. Adding a simple
udev rule is all that it takes:

KERNEL=="ttyIFX[0-9]*", ENV{OFONO_DRIVER}="ifx"

With this rule for every TTY with the kernel name like ttyIFX0, a new
modem will be added and the IFX modem plugin driver requested for it.
2010-09-18 22:08:41 +09:00
Jeevaka Badrappan 0d809cd636 phonesim: set character set to GSM 2010-09-15 13:56:59 -05:00
Pekka Pessi ebb9b3e952 zte: implement Online property 2010-09-09 01:28:39 +02:00
Pekka Pessi 8a7e919578 mbm: implement Online property 2010-09-09 01:24:34 +02:00
Pekka Pessi de4d998e37 ste: implement Online property 2010-09-09 01:24:03 +02:00
Pekka Pessi aac914f656 novatel: implement Online property 2010-09-09 01:21:25 +02:00
Pekka Pessi 6ce4fb3689 hso: implement Online property 2010-09-09 01:19:37 +02:00
Pekka Pessi 9cbff5e19a huawei: implement Online property
Huawei uses +CFUN=5 for offline
2010-09-09 01:16:33 +02:00
Pekka Pessi e28adba8ad atgen: implement Online property 2010-09-09 01:15:10 +02:00
Marcel Holtmann ad5fb5ddda huawei: Decode voice call notifications 2010-09-05 21:54:55 +02:00
Marcel Holtmann 92916affea huawei: Decode voice channel settings 2010-09-05 20:50:30 +02:00
Marcel Holtmann ba532ae192 huawei: Check for voice call support 2010-09-04 23:43:59 +02:00
Marcel Holtmann bafc89a858 udev: Check for valid USB serial numbers 2010-09-04 22:51:38 +02:00
Denis Kenzior bb3df7a66d phonesim: Move the stk atom to post_sim state 2010-09-02 10:45:01 -05:00
Pekka Pessi bbe4cf9f9d mbm: D5530 gets bogus +GCAP, not +CGAP 2010-08-30 11:28:19 -05:00
Marcel Holtmann 58830cb025 udev: Add rule for ZTE MF110 modem 2010-08-28 08:19:02 +02:00
Pekka Pessi 72bc1c7780 mbm: add quirks for Dell D5530
Dell D5530 is an OEM version of F3507g. It has an annoying habit of
announcing itself to world with its own name. Another problem is some weird
+CGAP messages at the same time. It also crashes upon processing received
CBS messages.
2010-08-25 12:18:23 -05:00
Marcel Holtmann a5bb510787 novatel: Use Qualcomm specific quirk for SIM handling 2010-08-23 22:54:34 +02:00
João Paulo Rechi Vita 8ca72b9706 hfp: fix typo 2010-08-23 20:15:28 +02:00
Marcel Holtmann c2cf902d03 huawei: Query AT^U2DIAG and AT^GETPORTMODE settings
Just to make the values show up in the AT command debug logs, query them
when enabling the device.
2010-08-23 17:43:20 +02:00
Pekka Pessi 51a1bae8c7 mbm: fix initial polling for sim
There seems to be no specific error codes returned when SIM is missing.
Poll at least 5 times upon an error and give up after that.
2010-08-23 16:31:36 +02:00
Marcel Holtmann 0488550b55 nokia: Add GPRS handling 2010-08-20 21:27:13 +02:00
Marcel Holtmann a466443f55 zte: Add GPRS handling 2010-08-20 21:19:40 +02:00
Marcel Holtmann e3372f0b04 mbm: Remove registration and bearer specific notifications 2010-08-20 16:51:24 +02:00
Marcel Holtmann 9cdc303574 mbm: Enable notifications for packet switched bearer changes 2010-08-20 16:24:12 +02:00
Marcel Holtmann 132041004b mbm: Enable CFUN and EREG notifications 2010-08-20 15:45:17 +02:00
Marcel Holtmann 3251e7e234 mbm: Fix naming of MBM driver for GPRS context handling 2010-08-20 14:12:01 +02:00
Marcel Holtmann f1e8114f2a mbm: Use proper MBM quirks 2010-08-20 14:09:55 +02:00
Marcel Holtmann 607b21e7e3 ste: Use MBM quirk for network registration 2010-08-20 14:08:12 +02:00
Marcel Holtmann 26213aa1cc ste: Use MBM quirk instead of a STE specific one 2010-08-20 14:07:19 +02:00
Zhenhua Zhang 2084fffed0 udev: Add check for serial before string operation
'serial' could be NULL in some case. So it need to add check before
doing string operation.
2010-08-20 10:20:39 +02:00
Marcel Holtmann 12af4601bd nokia: Add initial plugin for Nokia Datacard support 2010-08-20 03:05:18 +02:00
Marcel Holtmann d05ea32ac2 udev: Add detection for Nokia data cards 2010-08-20 02:20:37 +02:00
Denis Kenzior 7be74dabe2 zte: Use QUALCOMM_MSM quirk for sim driver 2010-08-19 18:20:29 -05:00