diff options
author | Denis Kenzior <denkenz@gmail.com> | 2009-11-26 07:37:50 -0600 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2009-11-26 07:44:25 -0600 |
commit | 37384ddb9c66b380b7fb0d2dae754d10418a8637 (patch) | |
tree | b0179a9f1efd77878a7bae14824b8599353c6a5b /plugins | |
parent | d91c61e6213e58f9a5ffb60e1c8f169e2c46e7c5 (diff) | |
download | ofono-37384ddb9c66b380b7fb0d2dae754d10418a8637.tar.bz2 |
Fix: Make Calypso handling a bit better
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/phonesim.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/phonesim.c b/plugins/phonesim.c index 39a55a97..4704c4fc 100644 --- a/plugins/phonesim.c +++ b/plugins/phonesim.c @@ -159,7 +159,7 @@ static void mux_setup(GAtMux *mux, gpointer user_data) g_at_chat_set_debug(data->chat, phonesim_debug, NULL); if (data->calypso) - g_at_chat_set_wakeup_command(data->chat, "\r", 1000, 5000); + g_at_chat_set_wakeup_command(data->chat, "AT\r", 500, 5000); g_at_chat_send(data->chat, "AT+CFUN=1", NULL, cfun_set_on_cb, modem, NULL); @@ -233,10 +233,12 @@ static int phonesim_enable(struct ofono_modem *modem) phonesim_disconnected, modem); if (data->calypso) { - g_at_chat_set_wakeup_command(data->chat, "AT\r", 1000, 5000); + g_at_chat_set_wakeup_command(data->chat, "AT\r", 500, 5000); g_at_chat_send(data->chat, "ATE0", NULL, NULL, NULL, NULL); + g_at_chat_send(data->chat, "AT%CUNS=0", + NULL, NULL, NULL, NULL); } if (data->use_mux) { |