ofono/plugins
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
..
atgen.c atgen: implement Online property 2010-09-09 01:15:10 +02:00
bluetooth.c bluetooth: Various style issues 2010-06-21 22:48:15 -05:00
bluetooth.h bluetooth: define DBUS_TIMEOUT macro 2010-08-05 10:34:38 -05:00
caif.c Disable dummy CAIF modem detection for now 2010-01-28 12:11:36 +01:00
calypso.c calypso: Subscribe to %SIMREM and %SIMINS 2010-08-18 00:29:37 -05:00
example_history.c history: Make example_history use Delivery Reports 2010-06-21 15:21:39 -05:00
example_nettime.c Add network time support 2010-05-19 10:46:18 +03:00
g1.c Drivers can notify core of SIM insertion / removal 2010-04-15 16:49:40 -05:00
hfp.c hfp: fix typo 2010-08-23 20:15:28 +02:00
hso.c hso: Enable phonebook atom 2010-09-19 20:38:13 +09:00
huawei.c huawei: fix online logic 2010-09-21 02:08:45 +09:00
ifx.c ifx: Add skeleton for Infineon modem plugin 2010-09-18 22:13:53 +09:00
mbm.c mbm: implement Online property 2010-09-09 01:24:34 +02:00
modem.conf plugins: Add STE sample to modem.conf 2010-08-17 14:51:31 +02:00
modemconf.c modemconf: Add support for Interface for STE plugin 2010-08-17 14:50:31 +02:00
nokia.c nokia: Add GPRS handling 2010-08-20 21:27:13 +02:00
novatel.c novatel: implement Online property 2010-09-09 01:21:25 +02:00
ofono.rules udev: Add rule for ZTE MF110 modem 2010-08-28 08:19:02 +02:00
palmpre.c Drivers can notify core of SIM insertion / removal 2010-04-15 16:49:40 -05:00
phonesim.c phonesim: set character set to GSM 2010-09-15 13:56:59 -05:00
ste.c ste: implement Online property 2010-09-09 01:24:03 +02:00
udev.c udev: Add support for IFX device detection 2010-09-18 22:08:41 +09:00
usbpnmodem.c Fix: set correct local address for phonet on PCs 2010-05-26 00:06:43 +03:00
wavecom.c wavecom: Trivial comment update 2010-04-20 11:54:25 -05:00
zte.c zte: implement Online property 2010-09-09 01:28:39 +02:00