From ab8d482af16f2ba89da98a61cd7820f5a2893462 Mon Sep 17 00:00:00 2001 From: Lars Poeschel Date: Tue, 4 Aug 2020 14:38:46 +0200 Subject: [PATCH] quectel: Set URC port to uart1 on EC21 Set the URC port of the Quectel EC21 to uart1 when it is used through it's serial port. This setting is saved to non-volatile storage by the modem automatically. --- plugins/quectel.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/quectel.c b/plugins/quectel.c index 043d39f9..3c3c61a8 100644 --- a/plugins/quectel.c +++ b/plugins/quectel.c @@ -773,10 +773,12 @@ static void setup_aux(struct ofono_modem *modem) g_at_chat_set_slave(data->modem, data->aux); - if (data->model == QUECTEL_EC21) + 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, "AT+QURCCFG=\"urcport\",\"uart1\"", none_prefix, + NULL, NULL, NULL); + } else g_at_chat_send(data->aux, "ATE0; &C0; +CMEE=1; +QIURC=0", none_prefix, NULL, NULL, NULL);