diff options
author | Sergei Golubtsov <s.e.golubtsov@gmail.com> | 2022-09-04 10:17:01 +0200 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2022-09-06 09:48:14 -0500 |
commit | d80e2afb67c1cda76050388cd46793db4be9c3dc (patch) | |
tree | 72fb38fc48c426eced1f8fa2475a6dbbe5828a98 | |
parent | a8be9865837471e417a28471decd33ebbcdde629 (diff) | |
download | ofono-d80e2afb67c1cda76050388cd46793db4be9c3dc.tar.gz |
quectel: fixing EC200T modem initialization
EC200T doesn't indicate that the Phonebook initialization
is completed (==4) if AT+CFUN=4
-rw-r--r-- | plugins/quectel.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/quectel.c b/plugins/quectel.c index 79a137d8..f933723d 100644 --- a/plugins/quectel.c +++ b/plugins/quectel.c @@ -605,9 +605,12 @@ static void qinistat_cb(gboolean ok, GAtResult *result, gpointer user_data) case QUECTEL_EC200: /* * EC200T doesn't indicate that the Phonebook initialization - * is completed (==4) when AT+CFUN=4, that's why 1 + 2 = 3 + * of some SIM cards is completed (==4) when AT+CFUN=4, + * that's why 1 + 2 = 3 */ ready = 3; + if ((status & ready) == ready) + ready = status; break; case QUECTEL_M95: case QUECTEL_MC60: @@ -828,6 +831,8 @@ static void setup_aux(struct ofono_modem *modem) } else if (data->model == QUECTEL_EC200) { g_at_chat_send(data->aux, "ATE0; &C0; +CMEE=1", none_prefix, NULL, NULL, NULL); + g_at_chat_send(data->aux, "AT+QCFG=\"servicedomain\",2", none_prefix, + NULL, NULL, NULL); } else g_at_chat_send(data->aux, "ATE0; &C0; +CMEE=1; +QIURC=0", none_prefix, NULL, NULL, NULL); |