summaryrefslogtreecommitdiffstats
path: root/plugins/nokia.c
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2012-01-11 06:36:41 -0600
committerDenis Kenzior <denkenz@gmail.com>2012-01-11 06:38:28 -0600
commit9afba481287b7b06737bdd29aaec8b87dbda8c04 (patch)
tree5b1108aad74c9b0009ccfa20dbeb7c825e00a6e2 /plugins/nokia.c
parent908eadf4d1992e26b02388063f8465747e454e1e (diff)
downloadofono-9afba481287b7b06737bdd29aaec8b87dbda8c04.tar.bz2
nokia: Setup CSCS on both ports
Diffstat (limited to 'plugins/nokia.c')
-rw-r--r--plugins/nokia.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/nokia.c b/plugins/nokia.c
index ae6c997d..ef598fa4 100644
--- a/plugins/nokia.c
+++ b/plugins/nokia.c
@@ -162,6 +162,16 @@ static int nokia_enable(struct ofono_modem *modem)
g_at_chat_send(data->aux, "ATE0 &C0 +CMEE=1", NULL,
NULL, NULL, NULL);
+ /*
+ * Ensure that the modem is using GSM character set and not IRA,
+ * otherwise weirdness with umlauts and other non-ASCII characters
+ * can result
+ */
+ g_at_chat_send(data->modem, "AT+CSCS=\"GSM\"", none_prefix,
+ NULL, NULL, NULL);
+ g_at_chat_send(data->aux, "AT+CSCS=\"GSM\"", none_prefix,
+ NULL, NULL, NULL);
+
g_at_chat_send(data->aux, "AT+CFUN=1", none_prefix,
cfun_enable, modem, NULL);