Can not establish an internet connection via Huawei ETS2058/2258/2558 ISP Neotel
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
network-manager (Ubuntu) |
Invalid
|
Low
|
Unassigned |
Bug Description
Binary package hint: network-manager
Linux [xxxx]-desktop 2.6.28-11-generic #42-Ubuntu SMP Fri Apr 17 01:57:59 UTC 2009 i686 GNU/Linux
Description: Ubuntu 9.04
Release: 9.04
apt-cache policy network-manager
network-manager:
Installed: 0.7.1~rc4.
Candidate: 0.7.1~rc4.
Version table:
*** 0.7.1~rc4.
500 http://
100 /var/lib/
Steps followed:
1. Added extra entry in /boot/grub/menu.lst
title Ubuntu 9.04, kernel 2.6.28-11-generic custom
uuid 39e495fe-
kernel /boot/vmlinuz-
initrd /boot/initrd.
2. Checked that it is recognized.
lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 007: ID 12d1:1010 Huawei Technologies Co., Ltd.
Bus 005 Device 002: ID 0572:1321 Conexant Systems (Rockwell), Inc.
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
ls -l /dev/ttyU*
crw-rw---- 1 root dialout 188, 0 2009-08-25 18:36 /dev/ttyUSB0
3. Set up pppconfig
cat /etc/ppp/
# This optionfile was generated by pppconfig 2.3.18.
#
#
hide-password
noauth
connect "/usr/sbin/chat -v -f /etc/chatscript
debug
/dev/ttyUSB0
115200
defaultroute
noipdefault
user "[nnnnnnnnnn]
remotename neotel
ipparam neotel
4. Ensured that the chatscript is correct
cat /etc/chatscript
# This chatfile was generated by pppconfig 2.3.18.
# Please do not delete any of the comments. Pppconfig needs them.
#
# ispauth PAP
# abortstring
ABORT BUSY ABORT 'NO CARRIER' ABORT VOICE ABORT 'NO DIALTONE' ABORT 'NO DIAL TONE' ABORT 'NO ANSWER' ABORT DELAYED
# modeminit
'' ATZ
# ispnumber
OK-AT-OK "ATDT#777"
# ispconnect
CONNECT \d\c
# prelogin
# ispname
# isppassword
# postlogin
# end of pppconfig stuff
5. Tried to dial
sudo pon neotel while running tail -f /var/log/syslog
syslog output:
Aug 25 19:13:38 [xxxx]-desktop pppd[7286]: pppd 2.4.5 started by root, uid 0
Aug 25 19:13:39 [xxxx]-desktop chat[7288]: abort on (BUSY)
Aug 25 19:13:39 [xxxx]-desktop chat[7288]: abort on (NO CARRIER)
Aug 25 19:13:39 [xxxx]-desktop chat[7288]: abort on (VOICE)
Aug 25 19:13:39 [xxxx]-desktop chat[7288]: abort on (NO DIALTONE)
Aug 25 19:13:39 [xxxx]-desktop chat[7288]: abort on (NO DIAL TONE)
Aug 25 19:13:39 [xxxx]-desktop chat[7288]: abort on (NO ANSWER)
Aug 25 19:13:39 [xxxx]-desktop chat[7288]: abort on (DELAYED)
Aug 25 19:13:39 [xxxx]-desktop chat[7288]: send (ATZ^M)
Aug 25 19:13:39 [xxxx]-desktop chat[7288]: expect (OK)
Aug 25 19:14:24 [xxxx]-desktop chat[7288]: alarm
Aug 25 19:14:24 [xxxx]-desktop chat[7288]: send (AT^M)
Aug 25 19:14:24 [xxxx]-desktop chat[7288]: expect (OK)
Aug 25 19:15:09 [xxxx]-desktop chat[7288]: alarm
Aug 25 19:15:09 [xxxx]-desktop chat[7288]: Failed
Aug 25 19:15:09 [xxxx]-desktop pppd[7286]: Script /usr/sbin/chat -v -f /etc/chatscript
Aug 25 19:15:09 [xxxx]-desktop pppd[7286]: Connect script failed
Aug 25 19:15:10 [xxxx]-desktop pppd[7286]: Exit.
6. tail -f /var/log/syslog and removed the usb connection - got the following output
Aug 25 19:27:07 [xxxx]-desktop kernel: [ 4792.520039] usb 5-2: USB disconnect, address 8
Aug 25 19:27:07 [xxxx]-desktop kernel: [ 4792.521458] generic ttyUSB0: generic converter now disconnected from ttyUSB0
Aug 25 19:27:07 [xxxx]-desktop kernel: [ 4792.521474] usbserial_generic 5-2:1.0: device disconnected
7. tail -f /var/log/syslog and inserted the usb connection again - got the following output
Aug 25 19:29:02 [xxxx]-desktop kernel: [ 4908.328017] usb 5-2: new full speed USB device using uhci_hcd and address 10
Aug 25 19:29:03 [xxxx]-desktop kernel: [ 4908.570169] usb 5-2: configuration #1 chosen from 1 choice
Aug 25 19:29:03 [xxxx]-desktop kernel: [ 4908.573231] usbserial_generic 5-2:1.0: generic converter detected
Aug 25 19:29:03 [xxxx]-desktop kernel: [ 4908.573308] usb 5-2: generic converter now attached to ttyUSB0
Aug 25 19:29:03 [xxxx]-desktop NetworkManager: <info> (ttyUSB0): ignoring due to lack of mobile broadband capabilties
8. stopped NetworkManager and set export NM_SERIAL_DEBUG=1 and ran NetworkManager --no-daemon
sudo /etc/init.
* Stopping network connection manager NetworkManager [ OK ]
export NM_SERIAL_DEBUG=1
NetworkManager --no-daemon
NetworkManager: <info> starting...
/sbin/ifup: interface lo already configured
NetworkManager: <info> (ttyUSB0): ignoring due to lack of mobile broadband capabilties
NetworkManager: <info> (ttyUSB0): ignoring due to lack of mobile broadband capabilties
NetworkManager: <info> (ttyS0): ignoring due to lack of mobile broadband capabilties
NetworkManager: <info> (ttyACM0): ignoring due to lack of mobile broadband capabilties
9. sudo vi /lib/udev/
# do not edit this file, it will be overwritten on update
ACTION!
SUBSYSTEM!="tty", GOTO="nm_
DRIVERS=
# Only probe known mobile broadband drivers
DRIVERS=
GOTO="nm_
LABEL="probe"
# Don't probe new-style beagleboard cdc-acm ports
SUBSYSTEMS=="usb", ATTRS{idVendor}
SUBSYSTEM=="tty", SUBSYSTEMS=="usb", DRIVERS=="?*", ENV{NM_
SUBSYSTEM=="tty", SUBSYSTEMS=="usb", ATTRS{bInterfac
SUBSYSTEM=="tty", SUBSYSTEMS=="usb", ATTRS{idVendor}
LABEL="
10. Found bug http://
10.1 Installed (unstable) network-
10.2 Tested again - same results.
10.3 Changed /lib/udev/
# do not edit this file, it will be overwritten on update
ACTION!
SUBSYSTEM!="tty", GOTO="nm_
DRIVERS=
# Only probe known mobile broadband drivers
DRIVERS=
GOTO="nm_
LABEL="probe"
# default settle time
SUBSYSTEMS=="usb", ENV{NM_
# Don't probe new-style beagleboard cdc-acm ports
SUBSYSTEMS=="usb", ATTRS{idVendor}
SUBSYSTEM=="tty", SUBSYSTEMS=="usb", DRIVERS=="?*", ENV{NM_
SUBSYSTEM=="tty", SUBSYSTEMS=="usb", ATTRS{bInterfac
#SUBSYSTEM=="tty", SUBSYSTEMS=="usb", ATTRS{idVendor}
# some Huawei modems require a longer settle time
SUBSYSTEMS=="usb", ATTRS{idVendor}
# on Huawei modems, better not touch interface #1.
SUBSYSTEMS=="usb", ATTRS{idVendor}
SUBSYSTEM=="tty", SUBSYSTEMS=="usb", ATTRS{idVendor}
LABEL="
10.4 Modified nm-modem-probe.c as follows
@@ -455,6 +455,11 @@
guint32 delay_ms = 0;
unsigned int vid = 0, pid = 0, usbif = 0, last_err = 0;
unsigned long int tmp;
+ GTimeVal probe_start, probe_end, probe_diff;
+ glong probe_time_ms;
+
+ g_get_current_time (&probe_start);
+
while (1) {
int option;
@@ -469,7 +474,7 @@
break;
case 'a':
tmp = strtoul (optarg, NULL, 10);
- if (tmp < 1 || tmp > 3000) {
+ if (tmp < 1 || tmp > 30000) {
fprintf (stderr, "Invalid delay: %s\n", optarg);
return 1;
}
@@ -613,6 +618,11 @@
printf ("ID_NM_
}
+ g_get_current_time (&probe_end);
+ g_timeval_subtract (&probe_diff, &probe_end, &probe_start);
+ probe_time_ms = (probe_diff.tv_sec * 1000) + (probe_diff.tv_usec / 1000);
+ printf ("ID_NM_
to increase the wait time from 3 seconds to 30 seconds and recompiled NetworkManager.
10.4 rebooted.
10.5 Tested again - same results.
Could you please have a look at this issue and let me know what you find. I might have missed something on the way.
Changed in network-manager (Ubuntu): | |
status: | New → Incomplete |
importance: | Undecided → Low |
Hi,
and two questions:
### "/etc/chatscrip ts/neotel" and error in "pon neotel" ###
# modeminit
'' ATZ
Aug 25 19:13:39 [xxxx]-desktop chat[7288]: send (ATZ^M)
Why it tried to send ATZ^M ?
Normally it need to send ATZ.
As next the "pon neotel" try to send:
Aug 25 19:14:24 [xxxx]-desktop chat[7288]: send (AT^M)
How did they get this?