mirror of git://git.sysmocom.de/ofono
hso: Setup CSCS after SIM card has been detected
This commit is contained in:
parent
0043f4735e
commit
d4eeced43c
|
@ -217,6 +217,16 @@ static void sim_status(gboolean ok, GAtResult *result, gpointer user_data)
|
|||
if (data->have_sim == FALSE)
|
||||
return;
|
||||
|
||||
/*
|
||||
* 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);
|
||||
|
||||
/*
|
||||
* Option has the concept of Speech Service versus
|
||||
* Data Service. Problem is that in Data Service mode
|
||||
|
@ -345,16 +355,6 @@ 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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue