Which new information do you refer to Joern?
The new logs after the control characters are removed and dialling is done?

On 9/2/09, Joern <linuxjo...@googlemail.com> wrote:
> Ok,
>
> please post your new informations here.
> Good luck
>
> Joern
>
> --
> Can not establish an internet connection via Huawei ETS2058/2258/2558 ISP
> Neotel
> https://bugs.launchpad.net/bugs/418763
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “network-manager” package in Ubuntu: New
>
> 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.1.cf199a964-0ubuntu2
>   Candidate: 0.7.1~rc4.1.cf199a964-0ubuntu2
>   Version table:
>  *** 0.7.1~rc4.1.cf199a964-0ubuntu2 0
>         500 http://za.archive.ubuntu.com jaunty/main Packages
>         100 /var/lib/dpkg/status
>
>
> Steps followed:
> 1. Added extra entry in /boot/grub/menu.lst
>
> title           Ubuntu 9.04, kernel 2.6.28-11-generic custom
> uuid            39e495fe-c573-4584-98ef-3fe79cfabac0
> kernel          /boot/vmlinuz-2.6.28-11-generic
> root=UUID=39e495fe-c573-4584-98ef-3fe79cfabac0 ro quiet splash
> usbserial.vendor=0x12d1 usbserial.product=0x1010
> initrd          /boot/initrd.img-2.6.28-11-generic
>
> 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/peers/neotel
> # This optionfile was generated by pppconfig 2.3.18.
> #
> #
> hide-password
> noauth
> connect "/usr/sbin/chat -v -f /etc/chatscripts/neotel"
> debug
> /dev/ttyUSB0
> 115200
> defaultroute
> noipdefault
> user "[nnnnnnnn...@neotel.co.za"
> remotename neotel
> ipparam neotel
>
> 4. Ensured that the chatscript is correct
>
> cat /etc/chatscripts/neotel
>
> # 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/chatscripts/neotel finished (pid 7287), status = 0x3
> 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.d/NetworkManager stop
>  * 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/rules.d/77-nm-probe-modem-capabilities.rules
>
> # do not edit this file, it will be overwritten on update
>
> ACTION!="add|change", GOTO="nm_modem_probe_end"
> SUBSYSTEM!="tty", GOTO="nm_modem_probe_end"
>
> DRIVERS=="serial_cs|nozomi", IMPORT{program}="nm-modem-probe --delay 3000
> --export $tempnode", GOTO="nm_modem_probe_end"
>
> # Only probe known mobile broadband drivers
> DRIVERS=="option|sierra|hso|cdc_acm|qcserial", GOTO="probe"
>
> GOTO="nm_modem_probe_end"
>
> LABEL="probe"
>
> # Don't probe new-style beagleboard cdc-acm ports
> SUBSYSTEMS=="usb", ATTRS{idVendor}=="0525", GOTO="nm_modem_probe_end"
>
> SUBSYSTEM=="tty", SUBSYSTEMS=="usb", DRIVERS=="?*",
> ENV{NM_MODEM_DRIVER}="$attr{driver}"
> SUBSYSTEM=="tty", SUBSYSTEMS=="usb", ATTRS{bInterfaceNumber}=="?*",
> ENV{NM_MODEM_USB_INTERFACE_NUMBER}="$attr{bInterfaceNumber}"
> SUBSYSTEM=="tty", SUBSYSTEMS=="usb", ATTRS{idVendor}=="?*",
> ATTRS{idProduct}=="?*", IMPORT{program}="nm-modem-probe --vid
> 0x$attr{idVendor} --pid 0x$attr{idProduct} --usb-interface
> $env{NM_MODEM_USB_INTERFACE_NUMBER} --driver $env{NM_MODEM_DRIVER} --delay
> 3000 --export $tempnode", GOTO="nm_modem_probe_end"
>
> LABEL="nm_modem_probe_end"
>
> 10. Found bug http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=533645 -
> According to the bug report the Huawei modem takes longer than 3 seconds to
> respond. Did the following to try and solve the problem.
>
> 10.1  Installed (unstable) network-manager-0.7.1-2 - debian
> 10.2 Tested again - same results.
> 10.3 Changed /lib/udev/rules.d/77-nm-probe-modem-capabilities.rules to as
> follows
>
> # do not edit this file, it will be overwritten on update
>
> ACTION!="add|change", GOTO="nm_modem_probe_end"
> SUBSYSTEM!="tty", GOTO="nm_modem_probe_end"
>
> DRIVERS=="serial_cs|nozomi", IMPORT{program}="nm-modem-probe --delay 3000
> --export $tempnode", GOTO="nm_modem_probe_end"
>
> # Only probe known mobile broadband drivers
> DRIVERS=="option|sierra|hso|cdc_acm|qcserial", GOTO="probe"
>
> GOTO="nm_modem_probe_end"
>
> LABEL="probe"
> # default settle time
> SUBSYSTEMS=="usb", ENV{NM_MODEM_PROBE_DELAY}="15000"
>
> # Don't probe new-style beagleboard cdc-acm ports
> SUBSYSTEMS=="usb", ATTRS{idVendor}=="0525", GOTO="nm_modem_probe_end"
>
> SUBSYSTEM=="tty", SUBSYSTEMS=="usb", DRIVERS=="?*",
> ENV{NM_MODEM_DRIVER}="$attr{driver}"
> SUBSYSTEM=="tty", SUBSYSTEMS=="usb", ATTRS{bInterfaceNumber}=="?*",
> ENV{NM_MODEM_USB_INTERFACE_NUMBER}="$attr{bInterfaceNumber}"
> #SUBSYSTEM=="tty", SUBSYSTEMS=="usb", ATTRS{idVendor}=="?*",
> ATTRS{idProduct}=="?*", IMPORT{program}="nm-modem-probe --vid
> 0x$attr{idVendor} --pid 0x$attr{idProduct} --usb-interface
> $env{NM_MODEM_USB_INTERFACE_NUMBER} --driver $env{NM_MODEM_DRIVER} --delay
> 3000 --export $tempnode", GOTO="nm_modem_probe_end"
>
> # some Huawei modems require a longer settle time
> SUBSYSTEMS=="usb", ATTRS{idVendor}=="12d1",
> ENV{NM_MODEM_PROBE_DELAY}="12000"
>
> # on Huawei modems, better not touch interface #1.
> SUBSYSTEMS=="usb", ATTRS{idVendor}=="12d1",
> ENV{NM_MODEM_USB_INTERFACE_NUMBER}=="01", GOTO="nm_modem_probe_end"
>
> SUBSYSTEM=="tty", SUBSYSTEMS=="usb", ATTRS{idVendor}=="?*",
> ATTRS{idProduct}=="?*", IMPORT{program}="nm-modem-probe --vid
> 0x$attr{idVendor} --pid 0x$attr{idProduct} --usb-interface
> $env{NM_MODEM_USB_INTERFACE_NUMBER} --driver $env{NM_MODEM_DRIVER} --delay
> $env{NM_MODEM_PROBE_DELAY} --export $tempnode", GOTO="nm_modem_probe_end"
>
> LABEL="nm_modem_probe_end"
>
> 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_MODEM_PROBED=1\n");
>
>       }
>
>
>
> +     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_MODEM_PROBE_TIME_MS=%ld\n", probe_time_ms);
>
> 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.
>

-- 
Can not establish an internet connection via Huawei ETS2058/2258/2558 ISP Neotel
https://bugs.launchpad.net/bugs/418763
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to