gsm: fix init for modems for which ATZ does not play well with others

This commit is contained in:
Dan Williams
2009-06-29 23:11:43 -04:00
parent 5298be26dd
commit 4e7548e496
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -327,6 +327,11 @@ init_done (MMSerialPort *port,
info->error = g_error_copy (error);
mm_callback_info_schedule (info);
} else {
/* Ensure echo is off after the init command; some modems ignore the
* E0 when it's in the same like as ATZ (Option GIO322).
*/
mm_serial_port_queue_command (port, "E0 +CMEE=1", 2, NULL, NULL);
if (MM_GENERIC_GSM_GET_PRIVATE (info->modem)->unsolicited_registration)
mm_serial_port_queue_command (port, "+CREG=1", 5, NULL, NULL);
else
+1 -1
View File
@@ -25,7 +25,7 @@ typedef enum {
MM_GENERIC_GSM_PROP_POWER_DOWN_CMD,
MM_GENERIC_GSM_PROP_INIT_CMD,
MM_GENERIC_GSM_LAST_PROP = MM_GENERIC_GSM_PROP_POWER_DOWN_CMD
MM_GENERIC_GSM_LAST_PROP = MM_GENERIC_GSM_PROP_INIT_CMD
} MMGenericGsmProp;