Huawei E270 HSPA Get's detected but connection fails

Bug #280637 reported by Bas Grolleman
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
NetworkManager
Fix Released
Medium
network-manager (Ubuntu)
Fix Released
Medium
Unassigned
Intrepid
Won't Fix
High
Unassigned

Bug Description

Description: Ubuntu intrepid (development branch)
Release: 8.10

Ok, after updating to the latest packages my HDSPA card stopped working, it's still detected but when I try to connect it attempts to do this for less then a second and gives up. It was working fine before the update, except for some DNS issues once in a while.

I did remove the configuration in network manager and added a new one. (Seems that the latest update should fix my DNS issue, since it can be provided now)

Card is a Huawei Mobile Connect from KPN Mobile, Netherlands.

-- Daemon.log doring connect
Oct 9 10:26:04 bgrolleman-mp NetworkManager: <info> Activation (ttyUSB0) starting connection 'KPN Mobile'
Oct 9 10:26:04 bgrolleman-mp NetworkManager: <info> (ttyUSB0): device state change: 3 -> 4
Oct 9 10:26:04 bgrolleman-mp NetworkManager: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) scheduled...
Oct 9 10:26:04 bgrolleman-mp NetworkManager: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) started...
Oct 9 10:26:04 bgrolleman-mp NetworkManager: <debug> [1223540764.303096] nm_serial_device_open(): (ttyUSB0) opening device...
Oct 9 10:26:04 bgrolleman-mp NetworkManager: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) complete.
Oct 9 10:26:04 bgrolleman-mp NetworkManager: <WARN> init_done(): Modem initialization failed
Oct 9 10:26:04 bgrolleman-mp NetworkManager: <info> (ttyUSB0): device state change: 4 -> 9
Oct 9 10:26:04 bgrolleman-mp NetworkManager: <debug> [1223540764.464118] nm_serial_device_close(): Closing device 'ttyUSB0'
Oct 9 10:26:04 bgrolleman-mp NetworkManager: <info> Marking connection 'KPN Mobile' invalid.
Oct 9 10:26:04 bgrolleman-mp NetworkManager: <info> Activation (ttyUSB0) failed.
Oct 9 10:26:04 bgrolleman-mp NetworkManager: <info> (ttyUSB0): device state change: 9 -> 3
Oct 9 10:26:04 bgrolleman-mp NetworkManager: <info> (ttyUSB0): deactivating device.
Oct 9 10:26:04 bgrolleman-mp NetworkManager: nm_system_device_flush_ip4_routes_with_iface: assertion `iface_idx >= 0' failed
Oct 9 10:26:04 bgrolleman-mp NetworkManager: nm_system_device_flush_ip4_addresses_with_iface: assertion `iface_idx >= 0' failed

Revision history for this message
Bas Grolleman (bgrolleman) wrote :

I did a reinstall today from the Ubuntu Intrepid Beta and UMTS works fine, it however breaks again after updating the system to current using apt-get.

Could anybody help out and atleast give me some pointers on how I should debug the issue. Sending basic commands lilke ATZ work, but others like ATDT didn't have an effect.

Revision history for this message
Bas Grolleman (bgrolleman) wrote :

Ok, after spending a few hours greping and searching and comparing with the Vodafone connect software, I got it to work.

#!/bin/bash
echo "ATZ^M" > /dev/ttyUSB0
echo "CPIN=0000^M" > /dev/ttyUSB0

Seems something goes wrong with sending the pin number, I'm at the office now but I will try and see if I can reproduce this on the way home.

Revision history for this message
Bas Grolleman (bgrolleman) wrote :

Ok, after a new check it seems I need to send

ATZ
AT+CPIN=0000

After I do that the modem works fine with networkmanager. I already tried filling in my PIN in the configuration dialog, but this doesn't seem to have any effect.

Revision history for this message
Alexander Sack (asac) wrote :

please become root like:

sudo su

and run:

/etc/init.d/NetworkManager stop
NM_SERIAL_DEBUG=1 NetworkManager --no-daemon 2>&1 | tee /tmp/nm-serial.txt

and attach /tmp/nm-serial.txt

Changed in network-manager:
status: New → Incomplete
Revision history for this message
Bas Grolleman (bgrolleman) wrote :

I tried connecting multiple times, hope this is enough info

Revision history for this message
Alexander Sack (asac) wrote :

plesae file you mm-serial against NetworkManager in bugzilla.gnome.org and give us your bug id.

Changed in network-manager:
importance: Undecided → Medium
status: Incomplete → Triaged
Revision history for this message
Bas Grolleman (bgrolleman) wrote :
Daniel Wiberg (dannew)
Changed in network-manager:
importance: Undecided → Unknown
status: New → Unknown
Revision history for this message
ToineM (toinemeijvis) wrote :

I had the same problem with the Huawei E870 (KPN internetkaart 820) A simpel sollution can be: remove the pin code from the SIM card. I did this by placeing the SIM card in a cellphone and in the settings menu, disabele the pin code.

Revision history for this message
Alexander Sack (asac) wrote : Re: [Bug 280637] Re: Huawei E270 HSPA Get's detected but connection fails

ToineM wrote:
> I had the same problem with the Huawei E870 (KPN internetkaart 820) A
> simpel sollution can be: remove the pin code from the SIM card. I did
> this by placeing the SIM card in a cellphone and in the settings menu,
> disabele the pin code.
>
>

so we need a backport of revision 4222 ... lets try that:

viewvc:
http://svn-archive.gnome.org/viewvc/NetworkManager/trunk/src/nm-gsm-device.c?r1=4222&r2=4221&pathrev=4222

patch:
http://svn-archive.gnome.org/viewvc/NetworkManager/trunk/src/nm-gsm-device.c?view=patch&r1=4222&r2=4221&pathrev=4222

 Attempt to compensate for modems that don't enable full AT parsing before
 the PIN has been entered.

 * src/nm-gsm-device.c
  - (init_modem): accept different init strings
  - (init_done): try different init strings on failure
  - (check_pin_done): on PIN success, do full modem init

Revision history for this message
Alexander Sack (asac) wrote :

high (wrt to the devices affected)

Changed in network-manager:
importance: Undecided → High
status: New → Triaged
milestone: none → intrepid-updates
Changed in network-manager:
status: Unknown → Fix Released
Revision history for this message
Martin Mai (mrkanister-deactivatedaccount-deactivatedaccount) wrote :

This should be fixed in Jaunty now. Thanks for reporting.

Changed in network-manager:
status: Triaged → Fix Released
Revision history for this message
Sergio Zanchetta (primes2h) wrote :

Thank you for reporting this bug to Ubuntu. Intrepid Ibex 8.10 reached EOL on 30 March 2010.
Please see this document for currently supported Ubuntu releases:
https://wiki.ubuntu.com/Releases

Please feel free to report any other bugs you may find.
Thank you.

Changed in network-manager (Ubuntu Intrepid):
status: Triaged → Won't Fix
Changed in network-manager:
importance: Unknown → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.