Commit Graph

3367 Commits

Author SHA1 Message Date
Marcel Holtmann 9415cf5d2f Use DBUS_CONFDIR variable instead of DBUS_DATADIR 2010-09-21 19:12:15 +09: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
Marcel Holtmann 9f906504a5 atmodem: Allow setting PPP debug via environment variable 2010-09-20 08:28:13 +09:00
Yang Gu 5d569e2ee6 hso: Enable phonebook atom 2010-09-19 20:38:13 +09:00
Marcel Holtmann a4aeedc3f0 ifxmodem: Add skeleton for Infineon driver plugin 2010-09-18 22:18:51 +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
Denis Kenzior 315cfd4217 isimodem/ussd: Fix 64-bit compilation issue 2010-09-16 13:53:26 -05:00
Pekka Pessi fe14190935 isimodem/ussd: fix mobile-terminated cases
ACK notifys. Handle mobile-terminated requests gracefully.
2010-09-16 13:47:46 -05:00
Pekka Pessi 5e92604955 isimodem/debug: debug USSD type 2010-09-16 13:47:15 -05:00
Pekka Pessi 0d9473d8c8 test-ussd: read stdin for Response()s 2010-09-16 13:46:47 -05:00
Pekka Pessi 217c161cf5 ussd: debug log notifys 2010-09-16 13:46:25 -05:00
Pekka Pessi 4b8f2b037c ussd.h: +CUSD is documented in 27.007 section 7.15 2010-09-16 13:45:53 -05:00
Pekka Pessi a111048129 isimodem/ussd: clean const casts 2010-09-16 08:58:54 -05:00
Denis Kenzior e94e45143f TODO: Add Rich Text support task 2010-09-15 16:52:08 -05:00
Denis Kenzior 63be804e48 doc: Add features.txt document 2010-09-15 16:45:41 -05:00
Jeevaka Badrappan 0d809cd636 phonesim: set character set to GSM 2010-09-15 13:56:59 -05:00
Denis Kenzior c97489a161 ussd: Tweak buffer size 2010-09-15 12:11:08 -05:00
Denis Kenzior 41a55beef3 stk: Refactor Send USSD error handling 2010-09-15 12:03:02 -05:00
Denis Kenzior d966b6593b stk: Fix style issues 2010-09-15 11:58:29 -05:00
Denis Kenzior a0d476281d stkutil: Don't include USSD text unless needed 2010-09-15 11:58:00 -05:00
Jeevaka Badrappan 47ddc4b70d stk: Handling of Send USSD proactive command 2010-09-15 11:46:23 -05:00
Denis Kenzior 98e2b6b426 ussd: Give proper errors 2010-09-15 11:45:18 -05:00
Denis Kenzior 165fa52cdf ussd: No need for these structure members 2010-09-15 11:37:23 -05:00
Denis Kenzior ac9e1157ab test: Update monitor-ofono with USSD support 2010-09-15 11:36:26 -05:00
Jeevaka Badrappan 77361655c0 ussd: Add __ofono_ussd_initiate internal api 2010-09-15 11:36:03 -05:00
Denis Kenzior 3114a907ff ussd: Fix up minor style issue 2010-09-15 10:03:53 -05:00
Denis Kenzior f6a4d4a5ce ussd: Rework ussd_request
- Only allocate variables which are needed
- Make sure buffers are big enough
- converted is a simple string, no need to use fancy printf magic
2010-09-14 22:05:32 -05:00
Denis Kenzior 82e6ddfd4b ussd: Simplify ussd notification parser logic 2010-09-14 21:54:25 -05:00
Jeevaka Badrappan eb425a281f ussd: Driver API changes
To support 8bit and UCS2 formatted USSDs as well as Send USSD Proactive
Command.
2010-09-14 17:01:49 -05:00
Denis Kenzior adc0a1bd6c util: Clean up style issues 2010-09-14 12:00:28 -05:00
Denis Kenzior a5d0933b22 smsutil: Clean up ussd_encode 2010-09-14 11:54:57 -05:00
Jeevaka Badrappan 09de3fdaab ussd: Read current CSCS charset 2010-09-14 11:50:28 -05:00
Denis Kenzior ebcfe67d91 util: Clean up some coding style violations 2010-09-14 11:49:25 -05:00
Denis Kenzior c72fd8af18 test-util: Update unit test 2010-09-14 11:45:34 -05:00
Denis Kenzior 1a340c7cf1 util: Return the number of bytes read, not chars
To be consistent with the documentation header and other functions of
this type
2010-09-14 11:45:11 -05:00
Denis Kenzior 9842355fe4 test-util: Fixup various style issues 2010-09-14 10:02:51 -05:00
Jeevaka Badrappan 1c8e27ddae test-util: test for UCS2 to GSM conversion 2010-09-14 09:58:58 -05:00
Jeevaka Badrappan 7cf26fef9d util: Add UCS2 to GSM 7bit converion function 2010-09-14 09:58:49 -05:00
Jeevaka Badrappan fd9570500e smsutil: Add USSD encoding function 2010-09-14 09:58:45 -05:00
Jeevaka Badrappan c44e6361a0 TODO: Add STK Language Notification task 2010-09-14 09:40:24 -05:00
Lucas De Marchi 3783026372 Fix common misspelling in source files
Fix common misspellings by using the list available at
http://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines

From the list cited above, the substitution script found the following
misspelling:

reponsible->responsible
2010-09-14 16:01:47 +09:00
Lucas De Marchi 4c013cefda Fix common misspellings in TODO file
Fix common misspellings by using the list available at
http://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines

From the list cited above, the substitution script found the following
misspellings:

proprietory->proprietary
seperately->separately
2010-09-14 16:01:26 +09:00
Lucas De Marchi 9849f010ab Fix common misspelling in gisi
Fix common misspellings by using the list available at
http://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines

From the list cited above, the substitution script found the following
misspelling:

fomr->from
2010-09-14 16:01:00 +09:00
Lucas De Marchi 53f1e826c6 Fix common misspellings in gatchat
Fix common misspellings by using the list available at
http://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines

From the list cited above, the substitution script found the following
misspellings:

priviledge->privilege
succeded->succeeded
2010-09-14 16:00:42 +09:00
Lucas De Marchi 74125ff5d4 Fix common misspellings in drivers
Fix common misspellings by using the list available at
http://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines

From the list cited above, the substitution script found the following
misspellings:

subsidary(-ies)->subsidiary(-ies)
transfering->transferring
2010-09-14 16:00:16 +09:00
Lucas De Marchi 0ccdcdf984 Fix common misspellings in documentation
Fix common misspellings by using the list available at
http://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines

From the list cited above, the substitution script found the following
misspellings:

accomodate->accommodate
targetted->targeted
transfering->transferring
witheld->withheld
withold->withhold
2010-09-14 15:59:46 +09:00
Zhenhua Zhang b02f8cfbd6 Add support to enable/disable specific plugin
Support to load or not load specific plugin when ofono is started.
E.g., use 'ofonod -P hfp' to disable hfp plugin.
2010-09-11 12:41:27 +02:00
Jeevaka Badrappan e6fbe5e75d stkutil: Add build_dataobj_ussd_text
for ussd specific 'Text' Data object handling
2010-09-10 15:21:20 -05:00