Got "probe_modem(): Couldn't get caps" connecting via USB to Nokia E70, E51, N95

Bug #272302 reported by Andreas Schildbach
16
This bug affects 1 person
Affects Status Importance Assigned to Milestone
network-manager (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Binary package hint: network-manager

When I connected a Nokia E70 to a Dell X1 (Intrepid) via USB, I got the following syslog one time, and no "Auto GSM network connection" in the applet.

Sep 19 23:31:00 darkly kernel: [ 288.072128] usb 1-2: new full speed USB device using uhci_hcd and address 6
Sep 19 23:31:00 darkly kernel: [ 288.259169] usb 1-2: configuration #1 chosen from 1 choice
Sep 19 23:31:02 darkly kernel: [ 289.681571] cdc_acm 1-2:1.12: ttyACM0: USB ACM device
Sep 19 23:31:02 darkly kernel: [ 289.684415] usbcore: registered new interface driver cdc_acm
Sep 19 23:31:02 darkly kernel: [ 289.684757] cdc_acm: v0.26:USB Abstract Control Model driver for USB modems and ISDN adapters
Sep 19 23:31:02 darkly kernel: [ 289.872643] usbcore: registered new interface driver cdc_ether
Sep 19 23:31:02 darkly kernel: [ 289.886131] usb 1-2: bad CDC descriptors
Sep 19 23:31:02 darkly kernel: [ 289.887152] usbcore: registered new interface driver rndis_host
Sep 19 23:31:02 darkly kernel: [ 289.916536] usb 1-2: bad CDC descriptors
Sep 19 23:31:02 darkly kernel: [ 289.917737] usbcore: registered new interface driver rndis_wlan
Sep 19 23:31:03 darkly NetworkManager: <debug> [1221859863.034081] probe_modem(): Couldn't get caps

(full syslog appended to this bug)

Upon disconnecting and reconnecting, everything worked as normal.

Revision history for this message
Andreas Schildbach (schildbach) wrote :
description: updated
Revision history for this message
Chris Jones (cmsj) wrote :

I see this when connecting an N95 in "PC Suite" mode. Disconnecting and reconnecting does not make it work though.

Changed in network-manager:
status: New → Confirmed
Revision history for this message
Chris Jones (cmsj) wrote :

It looks like the function which produces the caps getting error sends AT+GCAP. Using screen on /dev/ttyACM0 I see:

AT+GCAP
+GCAP: +CGSM,+DS,+W

OK

Revision history for this message
Chris Jones (cmsj) wrote :

After tracing the execution a little, it seems that the failure is happening quite early - in modem_probe_caps() the first exit point.

  err = write(fd, AT_CAPS_PROBE, sizeof(AT_CAPS_PROBE) - 1);

  if (err != sizeof(AT_CAPS_PROBE) - 1)
    return -1;

I will see if I can extract some more information with some debugging statements.

Revision history for this message
Alexander Sack (asac) wrote : Re: [Bug 272302] Re: NM 0.7: probe_modem(): Couldn't get caps

On Sun, Sep 28, 2008 at 12:46:16AM -0000, Chris Jones wrote:
> I see this when connecting an N95 in "PC Suite" mode. Disconnecting and
> reconnecting does not make it work though.

have you tried other modes? I think the PC Suite is just the wrong
mode (which is a bit confusing, yeah).

 - Alexander

Revision history for this message
Chris Jones (cmsj) wrote :

Hi

Alexander Sack wrote:
> have you tried other modes? I think the PC Suite is just the wrong
> mode (which is a bit confusing, yeah).

I have tried the Mass Storage mode, which didn't seem to present a
serial interface at all. I've not tried the media one (MTP/PTP), but I'm
not convinced those are correct either.
There is definitely a serial interface presented in PC Suite mode - I
was able to probe the caps of /dev/ttyACM0 by hand afterall. I've not
yet patched the function to say why it's failing though.

Cheers,
--
Chris Jones
  <email address hidden>
   www.canonical.com

Revision history for this message
Andreas Schildbach (schildbach) wrote : Re: NM 0.7: probe_modem(): Couldn't get caps

On the E70, PC Suite mode is the only mode that works with NetworkManager.

Revision history for this message
Alexander Sack (asac) wrote : Re: [Bug 272302] Re: NM 0.7: probe_modem(): Couldn't get caps

On Sun, Sep 28, 2008 at 01:50:23AM -0000, Chris Jones wrote:
> After tracing the execution a little, it seems that the failure is
> happening quite early - in modem_probe_caps() the first exit point.
>
> err = write(fd, AT_CAPS_PROBE, sizeof(AT_CAPS_PROBE) - 1);
>
> if (err != sizeof(AT_CAPS_PROBE) - 1)
> return -1;
>
> I will see if I can extract some more information with some debugging
> statements.
>

you should build your NM with SERIAL_DEBUG 1 ... you can flip that
define in nm-device-serial.c iirc.

 - Alexander

Revision history for this message
Bugsy (carlo-suomi24-deactivatedaccount) wrote : Re: NM 0.7: probe_modem(): Couldn't get caps

I have similar issues with Ubuntu 8.10 and Nokia E51. Nokia 3109 works fine thou.

Revision history for this message
Thomas Hood (jdthood) wrote :

Hi all. Is this fixed in Ubuntu 12.04?

summary: - NM 0.7: probe_modem(): Couldn't get caps
+ Got "probe_modem(): Couldn't get caps" connecting via USB to Nokia E70,
+ E51, N95
Changed in network-manager (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for network-manager (Ubuntu) because there has been no activity for 60 days.]

Changed in network-manager (Ubuntu):
status: Incomplete → Expired
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.