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:
@@ -596,7 +596,7 @@ connect (MMModem *modem,
|
|||||||
|
|
||||||
info = mm_callback_info_new (modem, callback, user_data);
|
info = mm_callback_info_new (modem, callback, user_data);
|
||||||
command = g_strconcat ("DT", number, NULL);
|
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);
|
g_free (command);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -83,7 +83,7 @@ def cdma_connect(proxy, user, password):
|
|||||||
# Modem.Simple interface
|
# Modem.Simple interface
|
||||||
simple = dbus.Interface(proxy, dbus_interface=MM_DBUS_INTERFACE_MODEM_SIMPLE)
|
simple = dbus.Interface(proxy, dbus_interface=MM_DBUS_INTERFACE_MODEM_SIMPLE)
|
||||||
try:
|
try:
|
||||||
simple.Connect({'number':"#777"}, timeout=60)
|
simple.Connect({'number':"#777"}, timeout=92)
|
||||||
print "\nConnected!"
|
print "\nConnected!"
|
||||||
return True
|
return True
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
|
Reference in New Issue
Block a user