From: Lars Poeschel <[email protected]>

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 feddb378..50d1b5d3 100644
--- a/plugins/quectel.c
+++ b/plugins/quectel.c
@@ -795,10 +795,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);
 
-- 
2.27.0
_______________________________________________
ofono mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to