cdma: increase data call initiation timeout

Some cards (Novatel S720 for example) can take a long time to start
a data call if the device isn't activated on the network or the
signal strength is low.
This commit is contained in:
Dan Williams
2010-01-19 14:35:48 -08:00
parent c6694a06b5
commit 564d054e8e
2 changed files with 2 additions and 2 deletions

View File

@@ -596,7 +596,7 @@ connect (MMModem *modem,
info = mm_callback_info_new (modem, callback, user_data);
command = g_strconcat ("DT", number, NULL);
mm_serial_port_queue_command (priv->primary, command, 60, dial_done, info);
mm_serial_port_queue_command (priv->primary, command, 90, dial_done, info);
g_free (command);
}

View File

@@ -83,7 +83,7 @@ def cdma_connect(proxy, user, password):
# Modem.Simple interface
simple = dbus.Interface(proxy, dbus_interface=MM_DBUS_INTERFACE_MODEM_SIMPLE)
try:
simple.Connect({'number':"#777"}, timeout=60)
simple.Connect({'number':"#777"}, timeout=92)
print "\nConnected!"
return True
except Exception, e: