* [PATCH] ublox: Disable DCD to avoid HUP when leaving data mode.
@ 2017-10-04 18:49 Richard =?unknown-8bit?q?R=C3=B6jfors?=
2017-10-05 16:21 ` Denis Kenzior
0 siblings, 1 reply; 2+ messages in thread
From: Richard =?unknown-8bit?q?R=C3=B6jfors?= @ 2017-10-04 18:49 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 673 bytes --]
The HUP results in errors in gatio which will deref parts
of the AT channel. This makes it impossible to recover and
send further AT commands after the HUP.
---
plugins/ublox.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/plugins/ublox.c b/plugins/ublox.c
index 250a5be4..5611ef5c 100644
--- a/plugins/ublox.c
+++ b/plugins/ublox.c
@@ -200,6 +200,8 @@ static int ublox_enable(struct ofono_modem *modem)
g_at_chat_send(data->modem, "ATE0 +CMEE=1", none_prefix,
NULL, NULL, NULL);
+
+ g_at_chat_send(data->modem, "AT&C0", NULL, NULL, NULL, NULL);
}
/* The modem can take a while to wake up if just powered on. */
--
2.11.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ublox: Disable DCD to avoid HUP when leaving data mode.
2017-10-04 18:49 [PATCH] ublox: Disable DCD to avoid HUP when leaving data mode Richard =?unknown-8bit?q?R=C3=B6jfors?=
@ 2017-10-05 16:21 ` Denis Kenzior
0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2017-10-05 16:21 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 342 bytes --]
Hi Richard,
On 10/04/2017 01:49 PM, Richard Röjfors wrote:
> The HUP results in errors in gatio which will deref parts
> of the AT channel. This makes it impossible to recover and
> send further AT commands after the HUP.
> ---
> plugins/ublox.c | 2 ++
> 1 file changed, 2 insertions(+)
Applied, thanks.
Regards,
-Denis
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-10-05 16:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-04 18:49 [PATCH] ublox: Disable DCD to avoid HUP when leaving data mode Richard =?unknown-8bit?q?R=C3=B6jfors?=
2017-10-05 16:21 ` Denis Kenzior
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.