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.
This commit is contained in:
Lars Poeschel 2020-08-04 14:38:46 +02:00 committed by Denis Kenzior
parent a56976e2bb
commit ab8d482af1
1 changed files with 4 additions and 2 deletions

View File

@ -773,10 +773,12 @@ static void setup_aux(struct ofono_modem *modem)
g_at_chat_set_slave(data->modem, data->aux); 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, g_at_chat_send(data->aux, "ATE0; &C0; +CMEE=1", none_prefix,
NULL, NULL, NULL); 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", g_at_chat_send(data->aux, "ATE0; &C0; +CMEE=1; +QIURC=0",
none_prefix, NULL, NULL, NULL); none_prefix, NULL, NULL, NULL);