diff options
author | Lars Poeschel <poeschel@lemonage.de> | 2020-05-26 12:16:23 +0200 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2020-05-21 08:28:09 -0500 |
commit | c7de38491df87ad6241952125be111d475c9afe1 (patch) | |
tree | bdb3d737fb1f79aefbd0f430c3cffd58f7706e25 /plugins | |
parent | debd73639a7a15380042090987da1bd748cd2821 (diff) | |
download | ofono-c7de38491df87ad6241952125be111d475c9afe1.tar.gz |
quectel: EC21 does not understand AT+QIURC
Because the Quectel EC21 does not understand the AT+QIURC command, we
leave that out during initialisation.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/quectel.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/plugins/quectel.c b/plugins/quectel.c index 1d312c45..8ad3aa05 100644 --- a/plugins/quectel.c +++ b/plugins/quectel.c @@ -772,8 +772,14 @@ static void setup_aux(struct ofono_modem *modem) DBG("%p", modem); g_at_chat_set_slave(data->modem, data->aux); - g_at_chat_send(data->aux, "ATE0; &C0; +CMEE=1; +QIURC=0", none_prefix, - NULL, NULL, NULL); + + if (data->model == QUECTEL_EC21) + g_at_chat_send(data->aux, "ATE0; &C0; +CMEE=1", none_prefix, + NULL, NULL, NULL); + else + g_at_chat_send(data->aux, "ATE0; &C0; +CMEE=1; +QIURC=0", + none_prefix, NULL, NULL, NULL); + g_at_chat_send(data->aux, "AT+CFUN?", cfun_prefix, cfun_query, modem, NULL); } |