Huawei modem (12d1:1573) resets with AT^GETPORTMODE

David McCullough david.mccullough at
Sun Mar 2 19:31:55 PST 2014

Hi all,

Just tried out a new modem module from Huawei (12d1:1573) and it seems get
quite upset with the AT^GETPORTMODE command.  Without modem manager running
I can issue this command on any of the suitable tty ports and the modem will
HW reset after 15 seconds or so.

Here is a patch that disables the command on this modem,  not sure if this
is the best way to do it so happy to be pointed in the right direction.


diff --git a/plugins/huawei/mm-plugin-huawei.c b/plugins/huawei/mm-plugin-huawei.c
index 89fe0fc..23cd4eb 100644
--- a/plugins/huawei/mm-plugin-huawei.c
+++ b/plugins/huawei/mm-plugin-huawei.c
@@ -285,6 +285,12 @@ huawei_custom_init_step (HuaweiCustomInitContext *ctx)
+	/* this particular modem crashes/resets if you run AT^GETPORTMODE */
+	if (mm_device_get_product (mm_port_get_device (MM_PORT (ctx->port))) == 0x1573) {
+		ctx->getportmode_done = TRUE;
+		ctx->getportmode_retries = 0;
+	}
     /* Try to get a port map from the modem */
     if (!ctx->getportmode_done) {
         if (ctx->getportmode_retries == 0) {

Signed-off-by: David McCullough <david.mccullough at>

David McCullough,  david.mccullough at,   Ph: 0410 560 763

More information about the ModemManager-devel mailing list