summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Poeschel <poeschel@lemonage.de>2020-08-04 14:38:46 +0200
committerDenis Kenzior <denkenz@gmail.com>2020-08-07 11:09:53 -0500
commitab8d482af16f2ba89da98a61cd7820f5a2893462 (patch)
tree9575c04e2fe12f9b42f33f7091243d1cf87df88d
parenta56976e2bbfb768f393e63a691d6a3f34c6f25c3 (diff)
downloadofono-ab8d482af16f2ba89da98a61cd7820f5a2893462.tar.gz
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.
-rw-r--r--plugins/quectel.c6
1 files 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);