Bug 462876

Summary: Cannot connect with USB Modem with knetworkmanager
Product: [openSUSE] openSUSE 11.1 Reporter: Xavier Callejas <xavier>
Component: NetworkAssignee: Will Stephenson <wstephenson>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None CC: forgotten_--EoyBps8f, per_angstrom, sreeves, xavier
Version: Final   
Target Milestone: ---   
Hardware: i686   
OS: openSUSE 11.1   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: '/var/log/messages' logging the connection tries
/var/log/NetworkManager as requested (with connection tries)
log of a GSM connection try

Description Xavier Callejas 2008-12-30 03:37:43 UTC
Hi,

I'm running openSUSE 11.1, a KDE 4 desktop and knetworkmanager (kde3 version).

I have a HUWAEI E226 USB GSM modem.

knetworkmanager detects my USB modem (/dev/ttyUSB0), I configure it, but it do nothing when I click on connect, the system tray icon stays still like if I didn't click on connect.

I think that it could be because at the time I click connect, knetworkmanager tries to connect using '/dev/ttyUSB1' instead of '/dev/ttyUSB0' witch is the correct device.

I have to use kppp to use my GSM modem :s

In openSUSE 11.0 knetworkmanager worked perfectly with this same modem.
Comment 1 Per Ångström 2008-12-30 14:59:45 UTC
Possibly related to bug 462647.
Comment 2 Alexander Orlovskyy 2009-01-08 11:17:35 UTC
Xavier, please provide following info:

/var/log/NetworkManager 

Comment 3 Xavier Callejas 2009-01-08 16:00:39 UTC
OK,

I restarted syslog to start logging since I plug the modem.

What I did:

1. Plugged the modem.
2. Wait until the led lights of the modem turns blinking blue (the modem starts with blinking green, when is green means error or not signal or booting).
3. I have already configurated in knetworkmanager a connection, so I just click on the knetworkmanager icon and then I choose the GSM connection.
4. The log terminate with "closing /dev/ttyUSB1" and the led lights of the modem turns green.
5. Unplugged the modem and start again with step 1 one more time, same result.

'/var/log/messages' attached.
Comment 4 Xavier Callejas 2009-01-08 16:01:41 UTC
Created attachment 263904 [details]
'/var/log/messages' logging the connection tries
Comment 5 Alexander Orlovskyy 2009-01-09 07:58:10 UTC
Xavier, the requested file was NetworkManager, see comment #2
Comment 6 Xavier Callejas 2009-01-11 22:40:16 UTC
Created attachment 264383 [details]
/var/log/NetworkManager as requested (with connection tries)
Comment 7 Alexander Orlovskyy 2009-01-12 10:36:51 UTC
Xavier, please after providing the requested information click on:

This comment provides the needed information. Remove the status of NEEDINFO from this bug.
---------------------------------------------------------------------------------

Reassign to : gnome team
Comment 8 Xavier Callejas 2009-01-12 13:50:35 UTC
I tried several times but it throw me an error telling that I an not allowed to modify this bug from NEEDINFO to NEW state.
Comment 9 Alexander Orlovskyy 2009-01-12 14:31:20 UTC
Xavier, NEEDINFO was changed to NEW state.
Comment 10 Scott Reeves 2009-01-13 20:18:35 UTC
hmmm, seems like bnc-team-gnome is not the right assignee to look at this ...
Comment 11 Xavier Callejas 2009-01-21 19:28:12 UTC
Hi,

Is there news?

Right now I'm using kppp and sometimes it disconnects it self and get freezed, I have to manually kill all the process as root (as I have to execute kppp as root) and then try to connect again, also I have to tell firefox that I'm not offline every time I start it.

I remember knetworkmanager in openSUSE 11.0 so easy to connect with my USB modem :(

Thanks & rgds.
Comment 12 Xavier Callejas 2009-01-22 19:24:05 UTC
Hi,

Yesterday openSUSE delivered a path for hal by online update, now I can connect perfectly with my USB modem using knetworkmanager.

Thanks!!! :D
Comment 13 Xavier Callejas 2009-01-29 01:54:38 UTC
Hi,

Now I can't connect again, I think that is because the timeout expire to fast.

I have to connect with kppp again :s

The corresponding networkmanager log is attached.
Comment 14 Xavier Callejas 2009-01-29 01:55:40 UTC
Created attachment 268505 [details]
log of a GSM connection try
Comment 15 Xavier Callejas 2009-02-02 14:37:42 UTC
It is just my system or if you upgrade to KDE 4.2 you can't connect to USB modem with knetworkmanager anymore (again) ?
Comment 16 Xavier Callejas 2009-02-25 21:49:00 UTC
I FIX IT! :D

Now I can use NetworkManager to connect to Internet using my HUWAEI USB GSM modem.

The problem wasn't related to KDE nor GNOME.

The problem was the timeout for waiting the ppp connection start, NetworkManager closed the connection prematurely (maybe my ISP take to much to assigning me a TCP auto. configuration)

In the upstream source code the timeout is for just 10 seconds ! but I think I need to wait about 25 seconds to receive the TCP config.

I also need to pass the parameter:

ipcp-max-failure 30

to pppd command to accept the DNS servers configuration from my ISP.


This is the patch:

--- NetworkManager-0.7.0/src/ppp-manager/nm-ppp-manager.c	2008-11-07 05:03:23.000000000 -0600
+++ NetworkManager-0.7.0-patched/src/ppp-manager/nm-ppp-manager.c	2009-02-25 01:57:15.000000000 -0600
@@ -65,7 +65,7 @@
 #include "nm-ppp-manager-glue.h"
 
 #define NM_PPPD_PLUGIN PLUGINDIR "/nm-pppd-plugin.so"
-#define NM_PPP_WAIT_PPPD 15000 /* 15 seconds */
+#define NM_PPP_WAIT_PPPD 1200000 /* 120 seconds */
 #define PPP_MANAGER_SECRET_TRIES "ppp-manager-secret-tries"
 
 typedef struct {
@@ -712,6 +712,7 @@
 static gboolean
 pppd_timed_out (gpointer data)
 {
+	nm_info ("se ha incrementado el tiempo de espera para ppp");
 	NMPPPManager *manager = NM_PPP_MANAGER (data);
 
 	nm_warning ("Looks like pppd didn't initialize our dbus module");
@@ -834,6 +835,9 @@
 	nm_cmd_line_add_string (cmd, "ipparam");
 	nm_cmd_line_add_string (cmd, priv->dbus_path);
 
+        nm_cmd_line_add_string (cmd, "ipcp-max-failure");
+        nm_cmd_line_add_string (cmd, "30");
+
 	nm_cmd_line_add_string (cmd, "plugin");
 	nm_cmd_line_add_string (cmd, NM_PPPD_PLUGIN);
Comment 17 Forgotten User --EoyBps8f 2011-12-08 09:14:23 UTC
fixed