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.
This commit is contained in:
Marcel Holtmann 2010-08-23 17:43:20 +02:00
parent 51a1bae8c7
commit c2cf902d03
1 changed files with 8 additions and 0 deletions

View File

@ -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);