mirror of git://git.sysmocom.de/ofono
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.master
parent
a56976e2bb
commit
ab8d482af1
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue