From c2cf902d03aa2e8f9b7603f46a402c0974be4e47 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Mon, 23 Aug 2010 17:43:20 +0200 Subject: huawei: Query AT^U2DIAG and AT^GETPORTMODE settings Just to make the values show up in the AT command debug logs, query them when enabling the device. --- plugins/huawei.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'plugins') diff --git a/plugins/huawei.c b/plugins/huawei.c index f833dc13..fc331ffe 100644 --- a/plugins/huawei.c +++ b/plugins/huawei.c @@ -233,6 +233,14 @@ static void cfun_enable(gboolean ok, GAtResult *result, gpointer user_data) g_at_chat_register(data->pcui, "^SIMST:", simst_notify, FALSE, modem, NULL); + /* query current device settings */ + g_at_chat_send(data->pcui, "AT^U2DIAG?", none_prefix, + NULL, NULL, NULL); + + /* query current port settings */ + g_at_chat_send(data->pcui, "AT^GETPORTMODE", none_prefix, + NULL, NULL, NULL); + /* query current sim state */ g_at_chat_send(data->pcui, "AT^SYSINFO", sysinfo_prefix, sysinfo_cb, modem, NULL); -- cgit v1.2.3