[novatel] Cannot connect with Dell 5520 3G card

Bug #447347 reported by Bernhard Schmidt
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
modemmanager (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: modemmanager

I cannot connect to the university network using the integrated Dell 5520 HSDPA card in my Laptop.

NetworkManager debug output:
NetworkManager: <info> Activation (ttyUSB0) starting connection 'Vodafone (D2) connection 1'
NetworkManager: <info> (ttyUSB0): device state change: 3 -> 4 (reason 0)
NetworkManager: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) scheduled...
NetworkManager: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) started...
NetworkManager: <info> (ttyUSB0): device state change: 4 -> 6 (reason 0)
NetworkManager: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) complete.
NetworkManager: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) scheduled...
NetworkManager: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) started...
NetworkManager: <info> (ttyUSB0): device state change: 6 -> 4 (reason 0)
NetworkManager: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) complete.
NetworkManager: <WARN> stage1_prepare_done(): GSM modem connection failed: Network timeout
NetworkManager: <info> (ttyUSB0): device state change: 4 -> 9 (reason 1)
NetworkManager: <info> Marking connection 'Vodafone (D2) connection 1' invalid.
NetworkManager: Tried to set deprecated property gsm/puk
NetworkManager: <info> Activation (ttyUSB0) failed.
NetworkManager: <info> (ttyUSB0): device state change: 9 -> 3 (reason 0)
NetworkManager: <info> (ttyUSB0): deactivating device (reason: 0).
NetworkManager: flush_routes: assertion `iface_idx >= 0' failed
NetworkManager: flush_addresses: assertion `iface_idx >= 0' failed
NetworkManager: <info> (wlan0): writing resolv.conf to /sbin/resolvconf
NetworkManager: <info> Policy set 'eduroam' (wlan0) as default for routing and DNS.

modemmanager --debug output:
** Message: (ttyUSB0) opening serial device...
** (modem-manager:4008): DEBUG: (ttyUSB0): --> 'ATE0 V1<CR>'
** (modem-manager:4008): DEBUG: (ttyUSB0): <-- '<CR><LF>OK<CR><LF>'
** (modem-manager:4008): DEBUG: (ttyUSB0): --> 'AT+CPIN?<CR>'
** (modem-manager:4008): DEBUG: (ttyUSB0): <-- '<CR><LF>+CPIN: READY<CR><LF><CR><LF>OK<CR><LF>'
** (modem-manager:4008): DEBUG: (ttyUSB0): --> 'ATZ E0 V1 X4 &C1 +CMEE=1;+CFUN=1<CR>'
** (modem-manager:4008): DEBUG: (ttyUSB0): <-- '<CR><LF>OK<CR><LF>'
** (modem-manager:4008): DEBUG: (ttyUSB0): --> 'AT+CPIN?<CR>'
** (modem-manager:4008): DEBUG: (ttyUSB0): <-- '<CR><LF>+CPIN: READY<CR><LF><CR><LF>OK<CR><LF>'
** (modem-manager:4008): DEBUG: (ttyUSB0): --> 'AT+COPS=0,,<CR>'
** (modem-manager:4008): DEBUG: (ttyUSB0): <-- '<CR><LF>OK<CR><LF>'
** (modem-manager:4008): DEBUG: (ttyUSB0): --> 'AT+CREG?<CR>'
** (modem-manager:4008): DEBUG: (ttyUSB0): <-- '<CR><LF>+CREG: 0,2<CR><LF><CR><LF>OK<CR><LF>'
** (modem-manager:4008): DEBUG: Registration state changed: 2
** (modem-manager:4008): DEBUG: (ttyUSB0): --> 'AT+CREG?<CR>'
** (modem-manager:4008): DEBUG: (ttyUSB0): <-- '<CR><LF>+CREG: 0,2<CR><LF><CR><LF>OK<CR><LF>'
** (modem-manager:4008): DEBUG: (ttyUSB0): --> 'AT+CREG?<CR>'
** (modem-manager:4008): DEBUG: (ttyUSB0): <-- '<CR><LF>+CREG: 0,2<CR><LF><CR><LF>OK<CR><LF>'
** (modem-manager:4008): DEBUG: (ttyUSB0): --> 'AT+CREG?<CR>'
** (modem-manager:4008): DEBUG: (ttyUSB0): <-- '<CR><LF>+CREG: 0,0<CR><LF><CR><LF>OK<CR><LF>'
** (modem-manager:4008): DEBUG: Registration state changed: 0
** (modem-manager:4008): DEBUG: (ttyUSB0): --> 'AT+CREG?<CR>'
** (modem-manager:4008): DEBUG: (ttyUSB0): <-- '<CR><LF>+CREG: 0,0<CR><LF><CR><LF>OK<CR><LF>'
** (modem-manager:4008): DEBUG: (ttyUSB0): --> 'AT+CREG?<CR>'
** (modem-manager:4008): DEBUG: (ttyUSB0): <-- '<CR><LF>+CREG: 0,0<CR><LF><CR><LF>OK<CR><LF>'
** (modem-manager:4008): DEBUG: (ttyUSB0): --> 'AT+CREG?<CR>'
** (modem-manager:4008): DEBUG: (ttyUSB0): <-- '<CR><LF>+CREG: 0,0<CR><LF><CR><LF>OK<CR><LF>'
** (modem-manager:4008): DEBUG: (ttyUSB0): --> 'AT+CREG?<CR>'
** (modem-manager:4008): DEBUG: (ttyUSB0): <-- '<CR><LF>+CREG: 0,0<CR><LF><CR><LF>OK<CR><LF>'
[this is repeated for about a minute]
** (modem-manager:4008): DEBUG: (ttyUSB0): --> 'AT+CREG?<CR>'
** (modem-manager:4008): DEBUG: (ttyUSB0): <-- '<CR><LF>+CREG: 0,0<CR><LF><CR><LF>OK<CR><LF>'
** (modem-manager:4008): DEBUG: (ttyUSB0): --> 'AT+CFUN=0<CR>'
** (modem-manager:4008): DEBUG: (ttyUSB0): <-- '<CR><LF>OK<CR><LF>'
** Message: (ttyUSB0) closing serial device...

This is not a regression, it never worked for me with this card before. wvdial or plain pppd works fine. Updating to modemmanager_0.2.git.20091008t171625.a088f12-0ubuntu2~nmt1_amd64.deb from the network-manager ppa does not help.

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

is this the mbm plugin used? consider to post the _full_ modemmanager debug output.

Alexander Sack (asac)
Changed in modemmanager (Ubuntu):
status: New → Incomplete
Alexander Sack (asac)
Changed in modemmanager (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Bernhard Schmidt (berni) wrote : Re: [Bug 447347] Re: Cannot connect with Dell 5520 3G card

On Mon, Oct 12, 2009 at 04:23:12PM -0000, Alexander Sack wrote:

> is this the mbm plugin used? consider to post the _full_ modemmanager
> debug output.

Sorry, please find the full output of

# killall modem-manager; modem-manager --debug 2>&1 | tee log

attached. Is there more?

Bernhard

Revision history for this message
Ilmari Vacklin (wolverian) wrote : Re: Cannot connect with Dell 5520 3G card

I see this too, and the asked output is provided.

Changed in modemmanager (Ubuntu):
status: Incomplete → Confirmed
Alexander Sack (asac)
Changed in modemmanager (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
andreas_ (afleig) wrote :

Mobile Broadband worked for me in 9.04. In Karmic, it works the _second_ time i try to connect after booting. The first time nothing happens after registering with the gsm network, so i "disconnect" and connect again. The second time it works. After disconnecting manually, I can't reconnect again unless I reboot.

Revision history for this message
andreas_ (afleig) wrote :

My card is a 5530 if it makes any difference.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package modemmanager - 0.2.git.20091014t233208.16f3e00-0ubuntu1

---------------
modemmanager (0.2.git.20091014t233208.16f3e00-0ubuntu1) karmic; urgency=low

  New upstream snapshot: 2009-10-14 21:33:52 (GMT)
  + 16f3e00f3438507aee06ffcaee560e337b8e8279
  - gsm: fix unsolicited registration by calling the statemachine callback
    info (LP: #416893)
  - mbm: use generic get_signal_quality implementation rather than our own
    CIND based one - helps to fix LP: #449037 as its less error prone
  - mbm: implement AT*ENAP polling; needed for some mbm devices, like m300 (LP: #442967)
  - gsm: don't issue CFUN=0 by default (LP: #438150)
  - mbm: fix disable after 3b19a85727458821f5df20153f8c04bc7717ba30 (LP: #447347, #438150)
  - nokia: fix class property overrides to stop modemmanager from sending AT+CFUN (LP: #450256)

 -- Alexander Sack <email address hidden> Thu, 15 Oct 2009 02:03:37 +0200

Changed in modemmanager (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Bernhard Schmidt (berni) wrote :

It's still not working, I've attached a new debug log (yes, I've rebooted after the update)

modemmanager:
  Installiert: 0.2.git.20091014t233208.16f3e00-0ubuntu1
  Kandidat: 0.2.git.20091014t233208.16f3e00-0ubuntu1
  Versions-Tabelle:
 *** 0.2.git.20091014t233208.16f3e00-0ubuntu1 0
        500 http://uk.archive.ubuntu.com karmic/main Packages
        100 /var/lib/dpkg/status

Changed in modemmanager (Ubuntu):
status: Fix Released → Confirmed
Revision history for this message
andreas_ (afleig) wrote :

I just tried connecting a few times and it worked... besides the segfault in the attached log.

Version: 0.2.git.20091014t233208.16f3e00-0ubuntu1

Revision history for this message
Bernhard Schmidt (berni) wrote : Re: [Bug 447347] Re: Cannot connect with Dell 5520 3G card

andreas: the 5530 is a completely different card (a Sony Ericsson OEM as
far as I know), please file a seperate bug for your issues.

Revision history for this message
andreas_ (afleig) wrote : Re: Cannot connect with Dell 5520 3G card

Herr Schmidt: and close it again because the issues with the 5530 are fixed? :-)

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

its fixed. all mbm cards should work well now.

Changed in modemmanager (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Alexander Sack (asac) wrote :

sry, thought it was a mbm/ericcson card too. its a novatel according to your log. and the issue is that you dont register. seems there is no CREG=0 or =1 send at all for you.

** (modem-manager:2980): DEBUG: (ttyUSB0): <-- '<CR><LF>OK<CR><LF>'
** (modem-manager:2980): DEBUG: (ttyUSB0): --> 'AT+CPIN?<CR>'
** (modem-manager:2980): DEBUG: (ttyUSB0): <-- '<CR><LF>+CPIN: READY<CR><LF><CR><LF>OK<CR><LF>'
** (modem-manager:2980): DEBUG: (ttyUSB0): --> 'ATZ E0 V1 X4 &C1 +CMEE=1;+CFUN=1<CR>'
** (modem-manager:2980): DEBUG: (ttyUSB0): <-- '<CR><LF>OK<CR><LF>'
** (modem-manager:2980): DEBUG: (ttyUSB0): --> 'AT+CPIN?<CR>'
** (modem-manager:2980): DEBUG: (ttyUSB0): <-- '<CR><LF>+CPIN: READY<CR><LF><CR><LF>OK<CR><LF>'
** (modem-manager:2980): DEBUG: (ttyUSB0): --> 'AT+COPS=0,,<CR>'
** (modem-manager:2980): DEBUG: (ttyUSB0): <-- '<CR><LF>OK<CR><LF>'
** (modem-manager:2980): DEBUG: (ttyUSB0): --> 'AT+CREG?<CR>'
** (modem-manager:2980): DEBUG: (ttyUSB0): <-- '<CR><LF>+CREG: 0,0<CR><LF><CR><LF>OK<CR><LF>'
** (modem-manager:2980): DEBUG: (ttyUSB0): --> 'AT+CREG?<CR>'

Changed in modemmanager (Ubuntu):
status: Fix Released → Triaged
summary: - Cannot connect with Dell 5520 3G card
+ (novatel) Cannot connect with Dell 5520 3G card
summary: - (novatel) Cannot connect with Dell 5520 3G card
+ [novatel] Cannot connect with Dell 5520 3G card
Revision history for this message
Alexander Sack (asac) wrote :

please try the two variant patches i will attach ... for each do:

sudo apt-get build-dep modemmanager
sudo apt-get install devscripts
apt-get source modemmanager
cd modemman*/
patch -p1 < /path/to/patch
debuild -b # ignore if this fails with gpg keys not working
sudo dpkg -i ../modem*.deb # this installs the modemmanager

please do that for both patches and see if either one works.

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

oh ... you usually dont need to reboot in between. run sudo killall modem-manager after installing the new package.

in case your log looks completely different, please reboot anyway to be sure that we don't deny this patch because your modem goes into a bad state.

Revision history for this message
Bernhard Schmidt (berni) wrote : Re: [Bug 447347] Re: [novatel] Cannot connect with Dell 5520 3G card

On Fri, Oct 16, 2009 at 10:52:48AM -0000, Alexander Sack wrote:

> please do that for both patches and see if either one works.

None of them work, I have attached both debug logs. The card works fine
with wvdial and a very simple "ATZ\nAT+cgdcont=1,"IP","cda.vodafone.de""
init. Could it be a firmware bug that the card is not correctly
reporting the registration status?

Bernhard

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

yes. firmware could be a problem. did it work for 0.7.x for you? any chance you could test that without modemmanager? maybe try if the bits in https://edge.launchpad.net/~network-manager/+archive/ppa can still be used (downgrade and remove modemmanager).

if it works i need a log... start NetworkManager --no-daemon from console with NM_SERIAL_DEBUG=1 in env for that.

also you could just try and see if using CREG=1 does change anything.

Revision history for this message
Bernhard Schmidt (berni) wrote :

Alexander Sack wrote:
> yes. firmware could be a problem. did it work for 0.7.x for you? any
> chance you could test that without modemmanager? maybe try if the bits
> in https://edge.launchpad.net/~network-manager/+archive/ppa can still be
> used (downgrade and remove modemmanager).

No, it never worked with earlier NetworkManager versions either. As far
as I remember it was the same issue (nm kept polling for AT+CREG?). But
I never investigated further.

This is the most current Dell-branded firmware available, I apparently
cannot flash vanilla Novatel firmwares into the module.

> also you could just try and see if using CREG=1 does change anything.

Essentially your second patch with CREG=1 instead of CREG=0? Will do ASAP

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

> Essentially your second patch with CREG=1 instead of CREG=0? Will do ASAP

yes. any chance to test that?

Revision history for this message
Stefan Ernst (ernst) wrote :

I have exactly the same problem. Same output in the logs. Same Card (5520) in a Dell XPS M1330.
What i've not tried is to connect via wvdial. But i think it would be the same.

Is here something new? Last post is from October, 31 ?

Is a Firmware upgrade usefull? How can i find out what firmware is installed?
Can i do something else ?

Revision history for this message
Bernhard Schmidt (berni) wrote : [Bug 417757]

Hi Alexander,

sorry for the delay, AT+CREG=1 does not work either. Please find
attached the logfile.

Best Regards,
Bernhard

Revision history for this message
Niklas Larsson (unixinfo) wrote :

I have 413c:8137 5520 (3G HSDPA) Minicard Status Port
, could connect in earlier config. Now logs are
NetworkManager: <info> (ttyUSB0): device state change: 3 -> 4 (reason 0)
NetworkManager: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) scheduled...
NetworkManager: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) started...
NetworkManager: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) complete.
modem-manager: (ttyUSB0) opening serial device...
modem-manager: Got failure code 100: Unknown error
 <WARN> stage1_prepare_done(): GSM modem connection failed: Unknown error
 (ttyUSB0): device state change: 4 -> 9 (reason 1)
NetworkManager: <info> Activation (ttyUSB0) failed.
NetworkManager: <info> (ttyUSB0): device state change: 9 -> 3 (reason 0)
NetworkManager: <info> (ttyUSB0): deactivating device (reason: 0).
NetworkManager: flush_routes: assertion `iface_idx >= 0' failed
NetworkManager: flush_addresses: assertion `iface_idx >= 0' failed
modem-manager: (ttyUSB0) closing serial device...

Revision history for this message
Bernhard Schmidt (berni) wrote :

FWIW, doesn't work in lucid (modemmanager 0.3-0ubuntu2) either. Same issue, keeps polling +CREG?

Revision history for this message
Niklas Larsson (unixinfo) wrote :

It works same hardware just removed harddrive and updated graphics board, then liveboot diskless and 3G connects perfectly. It (live diskless after removing seagate harddrive keeping the 3G) works with diskless jaunty very well today without installing for very good demo and our very important trend mobility (and tourism).

Revision history for this message
Stefan Ernst (ernst) wrote :

I tried it without removing any Hardware. I just bootet from a Hardy Heron Desktop Live-CD. The GSM-Modem worked once(!). I could connect to the internet and browse. But when i disconnected the connection and tried it again, it stocked as before.

Very strange 8-|

Anyone tried it with Lucid yet ?

Revision history for this message
Bernhard Schmidt (berni) wrote :

This did not work with lucid, but it does with Maverick. So there is some change in between that makes it work.

I will create a modemmanager debug log of a successful connect later.

Revision history for this message
Bernhard Schmidt (berni) wrote :

Here is the modem-manager --debug log

Revision history for this message
Marius B. Kotsbak (mariusko) wrote :

Have you tried if this still fails in Ubuntu Natty?

Revision history for this message
Fran SL (fransanlag) wrote : Re: [Bug 447347] Re: [novatel] Cannot connect with Dell 5520 3G card

It works for me!

------
*Fran Sánchez*.

2011/8/3 Marius Kotsbak <email address hidden>

> Have you tried if this still fails in Ubuntu Natty?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/447347
>
> Title:
> [novatel] Cannot connect with Dell 5520 3G card
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/modemmanager/+bug/447347/+subscriptions
>

Revision history for this message
Marius B. Kotsbak (mariusko) wrote :

Then I close this bug report.

Changed in modemmanager (Ubuntu):
status: Triaged → Fix Released
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.