Skip to contentSkip to conversation

ublox: Disable DCD to avoid HUP when leaving data mode.

PATCH Applied Richard Röjfors 2 participants 2 messages Oct 4, 2017 – Oct 5, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ublox: Disable DCD to avoid HUP when leaving data mode.

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(+)
plugins/ublox.c +2 -0
index 250a5be4..5611ef5c 100644
@@ -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. */
Signature · 1 line
2.11.0
#1 lore raw

Hi Richard,

Quoted 6 lines · Richard Röjfors

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