zte: Setup CSCS on both ports

This commit is contained in:
Denis Kenzior 2012-01-11 06:37:05 -06:00
parent 845deec554
commit 89c757f49d
1 changed files with 10 additions and 0 deletions

View File

@ -167,6 +167,16 @@ static void zoprt_enable(gboolean ok, GAtResult *result, gpointer user_data)
g_at_chat_send(data->modem, "AT&C0", NULL, NULL, NULL, NULL);
g_at_chat_send(data->aux, "AT&C0", 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);
/* Read PCB information */
g_at_chat_send(data->aux, "AT+ZPCB?", none_prefix, NULL, NULL, NULL);