From e8f56215d9a62b66e6645af9e75efbc6d2424600 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Wed, 11 Jan 2012 06:29:43 -0600 Subject: [PATCH] hso: Setup CSCS properly --- plugins/hso.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/plugins/hso.c b/plugins/hso.c index 30719a2..19bdc5e 100644 --- a/plugins/hso.c +++ b/plugins/hso.c @@ -345,6 +345,16 @@ static int hso_enable(struct ofono_modem *modem) g_at_chat_send(data->control, "ATE0 +CMEE=1", NULL, NULL, NULL, NULL); g_at_chat_send(data->app, "ATE0 +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->control, "AT+CSCS=\"GSM\"", none_prefix, + NULL, NULL, NULL); + g_at_chat_send(data->app, "AT+CSCS=\"GSM\"", none_prefix, + NULL, NULL, NULL); + g_at_chat_send(data->control, "AT+CFUN=4", none_prefix, cfun_enable, modem, NULL); -- 2.7.4