nokia (N85, etc.) phones still have CFUN=1 problems after landing of fix in bug #430576

Bug #450256 reported by Alexander Sack
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
ModemManager
Fix Released
High
Alexander Sack

Bug Description

(https://bugs.edge.launchpad.net/modemmanager/+bug/430576/comments/6)
still seeing this behavior with Nokia N97 and modemmanager:
  Installed: 0.2.git.20091003t063318.aa78b5f-0ubuntu1

** (modem-manager:4060): DEBUG: (ttyACM0): probe requested by plugin 'Nokia'
** (modem-manager:4060): DEBUG: (ttyACM0): --> 'AT+GCAP<CR>'
** (modem-manager:4060): DEBUG: (ttyACM0): <-- 'AT+GCAP'
** (modem-manager:4060): DEBUG: (ttyACM0): <-- '<CR><CR><LF>+GCAP: +CGSM,+DS,+W<CR><LF><CR><LF>OK<CR><LF>'
** Message: (ttyACM0) closing serial device...

(modem-manager:4060): GLib-GObject-CRITICAL **: g_object_class_install_property: assertion `class->set_property != NULL' failed

(modem-manager:4060): GLib-GObject-CRITICAL **: g_object_class_install_property: assertion `class->set_property != NULL' failed
** Message: (Nokia): GSM modem /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1 claimed port ttyACM0
** (modem-manager:4060): DEBUG: Added modem /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1
** (modem-manager:4060): DEBUG: Exported modem /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1 as /org/freedesktop/ModemManager/Modems/0
** Message: (ttyACM0) opening serial device...
** (modem-manager:4060): DEBUG: (ttyACM0): --> 'ATZ E0 V1 X4 &C1 +CMEE=1<CR>'
** (modem-manager:4060): DEBUG: (ttyACM0): <-- 'ATZ E0 V1 X4 &C1 +CMEE=1<CR><CR><LF>OK<CR><LF>'
** (modem-manager:4060): DEBUG: (ttyACM0): --> 'ATE0 +CMEE=1<CR>'
** (modem-manager:4060): DEBUG: (ttyACM0): <-- 'ATE0 +CMEE=1<CR><CR><LF>OK<CR><LF>'
** (modem-manager:4060): DEBUG: (ttyACM0): --> 'AT+CREG=0<CR>'
** (modem-manager:4060): DEBUG: (ttyACM0): <-- '<CR><LF>OK<CR><LF>'
** (modem-manager:4060): DEBUG: (ttyACM0): --> 'AT+CFUN=1<CR>'
** (modem-manager:4060): DEBUG: (ttyACM0): <-- '<CR><LF>+CME ERROR: 4<CR><LF>'
** (modem-manager:4060): DEBUG: Got failure code 4: Operation not supported
** (modem-manager:4060): DEBUG: (ttyACM0): --> 'ATZ E0 V1 X4 &C1 +CMEE=1<CR>'
** (modem-manager:4060): DEBUG: (ttyACM0): <-- '<CR><LF>OK<CR><LF>'
** (modem-manager:4060): DEBUG: (ttyACM0): --> 'ATE0 +CMEE=1<CR>'
** (modem-manager:4060): DEBUG: (ttyACM0): <-- 'ATE0 +CMEE=1<CR><CR><LF>OK<CR><LF>'
** (modem-manager:4060): DEBUG: (ttyACM0): --> 'AT+CREG=0<CR>'
** (modem-manager:4060): DEBUG: (ttyACM0): <-- '<CR><LF>OK<CR><LF>'
** (modem-manager:4060): DEBUG: (ttyACM0): --> 'AT+CFUN=1<CR>'
** (modem-manager:4060): DEBUG: (ttyACM0): <-- '<CR><LF>+CME ERROR: 4<CR><LF>'
** (modem-manager:4060): DEBUG: Got failure code 4: Operation not supported
** (modem-manager:4060): DEBUG: (ttyACM0): --> 'ATZ E0 V1 X4 &C1 +CMEE=1<CR>'
** (modem-manager:4060): DEBUG: (ttyACM0): <-- '<CR><LF>OK<CR><LF>'
** (modem-manager:4060): DEBUG: (ttyACM0): --> 'ATE0 +CMEE=1<CR>'
** (modem-manager:4060): DEBUG: (ttyACM0): <-- 'ATE0 +CMEE='
** (modem-manager:4060): DEBUG: (ttyACM0): <-- '1<CR><CR><LF>OK<CR><LF>'
** (modem-manager:4060): DEBUG: (ttyACM0): --> 'AT+CREG=0<CR>'
** (modem-manager:4060): DEBUG: (ttyACM0): <-- '<CR><LF>OK<CR><LF>'
** (modem-manager:4060): DEBUG: (ttyACM0): --> 'AT+CFUN=1<CR>'
** (modem-manager:4060): DEBUG: (ttyACM0): <-- '<CR><LF>+CME ERROR: 4<CR><LF>'

Revision history for this message
Alexander Sack (asac) wrote :
Changed in modemmanager:
status: New → In Progress
importance: Undecided → High
assignee: nobody → Alexander Sack (asac)
Revision history for this message
jfritz (j-fritz) wrote :

Confirming this Patch fixes CFUn=1 issue on N97 with

network-manager:
  Installed: 0.8~a~git.20091005t192303.1d28ad1-0ubuntu2
  Candidate: 0.8~a~git.20091005t192303.1d28ad1-0ubuntu2

modemmanager:
  Installed: 0.2.git.20091003t063318.aa78b5f-0ubuntu1
  Candidate: 0.2.git.20091003t063318.aa78b5f-0ubuntu1

+ this patch.

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

fix committed upstream: 0bcdf6a7c105471b195203a4a9f065c3f7fbbc7e

confirmed to work in https://bugs.edge.launchpad.net/modemmanager/+bug/430576/comments/17

Changed in modemmanager:
status: In Progress → Fix Committed
Revision history for this message
Alexander Sack (asac) wrote :

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)

Changed in modemmanager:
status: Fix Committed → Fix Released
Revision history for this message
jfritz (j-fritz) wrote :

 Connecting through bluetooth using blueman gives the same error in the logs, though the phone is not switched off. is this related?

Steps to reproduce:
- unplug usb cable of nokia (N97 in this case)
- pair using bluetooth applet
- start blueman and connect using rfcomm
- in nm-applet select network

** (modem-manager:30486): DEBUG: (rfcomm0): --> 'ATZ E0 V1 X4 &C1 +CMEE=1<CR>'
** (modem-manager:30486): DEBUG: (rfcomm0): <-- '<CR><LF>OK<CR><LF>'
** (modem-manager:30486): DEBUG: (rfcomm0): --> 'ATE0 +CMEE=1<CR>'
** (modem-manager:30486): DEBUG: (rfcomm0): <-- 'ATE0 +CM'
** (modem-manager:30486): DEBUG: (rfcomm0): <-- 'EE'
** (modem-manager:30486): DEBUG: (rfcomm0): <-- '=1<CR><CR><LF>OK<CR><LF>'
** (modem-manager:30486): DEBUG: (rfcomm0): --> 'AT+CREG=0<CR>'
** (modem-manager:30486): DEBUG: (rfcomm0): <-- '<CR><LF>OK<CR><LF>'
** (modem-manager:30486): DEBUG: (rfcomm0): --> 'AT+CFUN=1<CR>'
** (modem-manager:30486): DEBUG: (rfcomm0): <-- '<CR><LF>+CME ERROR: 4<CR><LF>'
** (modem-manager:30486): DEBUG: Got failure code 4: Operation not supported

Revision history for this message
Alexander Sack (asac) wrote : Re: [Bug 450256] Re: nokia (N85, etc.) phones still have CFUN=1 problems after landing of fix in bug #430576

On Mon, Oct 26, 2009 at 12:22:43AM -0000, jfritz wrote:
> Connecting through bluetooth using blueman gives the same error in the
> logs, though the phone is not switched off. is this related?
>
> Steps to reproduce:
> - unplug usb cable of nokia (N97 in this case)
> - pair using bluetooth applet
> - start blueman and connect using rfcomm
> - in nm-applet select network
>
> ** (modem-manager:30486): DEBUG: (rfcomm0): --> 'ATZ E0 V1 X4 &C1 +CMEE=1<CR>'
> ** (modem-manager:30486): DEBUG: (rfcomm0): <-- '<CR><LF>OK<CR><LF>'
> ** (modem-manager:30486): DEBUG: (rfcomm0): --> 'ATE0 +CMEE=1<CR>'
> ** (modem-manager:30486): DEBUG: (rfcomm0): <-- 'ATE0 +CM'
> ** (modem-manager:30486): DEBUG: (rfcomm0): <-- 'EE'
> ** (modem-manager:30486): DEBUG: (rfcomm0): <-- '=1<CR><CR><LF>OK<CR><LF>'
> ** (modem-manager:30486): DEBUG: (rfcomm0): --> 'AT+CREG=0<CR>'
> ** (modem-manager:30486): DEBUG: (rfcomm0): <-- '<CR><LF>OK<CR><LF>'
> ** (modem-manager:30486): DEBUG: (rfcomm0): --> 'AT+CFUN=1<CR>'
> ** (modem-manager:30486): DEBUG: (rfcomm0): <-- '<CR><LF>+CME ERROR: 4<CR><LF>'
> ** (modem-manager:30486): DEBUG: Got failure code 4: Operation not supported

yes, the CFUN=1 is the problem here i assume ...

 - Alexander

Revision history for this message
gw0 (gw-launchpad) wrote :

I am experiencing the same problem as jfritz described since I upgraded to Karmic... But the problem seems to persist also in modemmanager 0.2.git.20091014t233208.16f3e00-0ubuntu1. Or is the problematic code somewhere else when blueman is used?

Revision history for this message
gw0 (gw-launchpad) wrote :

For me it looks like the real solution should look like:
http://<email address hidden>/msg14024.html

Because at least on my Motorola E1070 paired over bluetooth and using rfcomm the commands AT+CFUN? and AT+CFUN=? both return "CME ERROR 100".

gw0 (gw-launchpad)
Changed in modemmanager:
status: Fix Released → New
Revision history for this message
jfritz (j-fritz) wrote :

the solution proposed in that patch works with my N97/blueman. The patch however does not apply to the latest modemmanager.

modemmanager:
  Installed: 0.2.git.20091014t233208.16f3e00-0ubuntu1

In this revision M_GENERIC_GSM_PROP_POWER_DOWN_CMD is already set to ""

So all that needs changing is the first bit

- g_value_set_string (value, "+CFUN=1");
+ if(strcmp(priv->driver, "bluetooth") == 0)
+ g_value_set_string (value, "");
+ else
+ g_value_set_string (value, "+CFUN=1");

However that will remove CFUN=1 for every bluetooth modem, not sure if that's desirable?

Revision history for this message
jfritz (j-fritz) wrote :

and as patch:
(build instructions are found here https://bugs.launchpad.net/modemmanager/+bug/430576 )

--- a/src/mm-generic-gsm.c 2009-10-15 01:35:39.000000000 +0200
+++ b/src/mm-generic-gsm.c 2009-10-27 00:06:28.000000000 +0100
@@ -1932,7 +1932,11 @@
         g_value_set_boolean (value, priv->valid);
         break;
     case MM_GENERIC_GSM_PROP_POWER_UP_CMD:
- g_value_set_string (value, "+CFUN=1");
+ if(strcmp(priv->driver, "bluetooth") == 0)
+ g_value_set_string (value, "");
+ else
+ g_value_set_string (value, "+CFUN=1");
+
         break;
     case MM_GENERIC_GSM_PROP_POWER_DOWN_CMD:
         /* CFUN=0 is dangerous and often will shoot devices in the head (that's

Revision history for this message
gw0 (gw-launchpad) wrote :

Is it possible to set CFUN value in a non-fatal way? Such that in case it fails with any error, modemmanager simply ignores it and continues? (It could also be that only for some well known error message that describes that CFUN failed to do what it should, it fails, otherwise ignores.)

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

do not reopne fix released bugs even if it feels simliar. open new bug for blueman/bluetooth.

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

On Mon, Oct 26, 2009 at 08:53:51PM -0000, gw0 wrote:
> I am experiencing the same problem as jfritz described since I upgraded
> to Karmic... But the problem seems to persist also in modemmanager
> 0.2.git.20091014t233208.16f3e00-0ubuntu1. Or is the problematic code
> somewhere else when blueman is used?

with blueman its a bit different, because modemmanager won't see what phone
is behind the bluetooth connection.

 - Alexander

Revision history for this message
gw0 (gw-launchpad) wrote :

Ok, sorry about the mess with bugs. Should I open a new bug and immediately close it with fix released? Because with 0.2.git.20091027t005933.4e74953-0ubuntu2~nmt1 GPRS connections over bluetooth with blueman works again.

Actually it ignores the error as you can see:
** (modem-manager:11721): DEBUG: (rfcomm0): <-- '<CR><LF>OK<CR><LF>'
** (modem-manager:11721): DEBUG: (rfcomm0): --> 'AT+CFUN=1<CR>'
** (modem-manager:11721): DEBUG: (rfcomm0): <-- '<CR><LF>+CME ERROR: 100<CR><LF>'
** (modem-manager:11721): DEBUG: Got failure code 100: Unknown error
** (modem-manager:11721): DEBUG: (rfcomm0): --> 'AT+CPIN?<CR>'
** (modem-manager:11721): DEBUG: (rfcomm0): <-- '<CR><LF>+CPIN: READY<CR><LF><CR><LF>OK<CR><LF>'

Thanks.

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

On Thu, Oct 29, 2009 at 09:39:05AM -0000, gw0 wrote:
> Ok, sorry about the mess with bugs. Should I open a new bug and
> immediately close it with fix released? Because with
> 0.2.git.20091027t005933.4e74953-0ubuntu2~nmt1 GPRS connections over
> bluetooth with blueman works again.
>
> Actually it ignores the error as you can see:
> ** (modem-manager:11721): DEBUG: (rfcomm0): <-- '<CR><LF>OK<CR><LF>'
> ** (modem-manager:11721): DEBUG: (rfcomm0): --> 'AT+CFUN=1<CR>'
> ** (modem-manager:11721): DEBUG: (rfcomm0): <-- '<CR><LF>+CME ERROR: 100<CR><LF>'
> ** (modem-manager:11721): DEBUG: Got failure code 100: Unknown error
> ** (modem-manager:11721): DEBUG: (rfcomm0): --> 'AT+CPIN?<CR>'
> ** (modem-manager:11721): DEBUG: (rfcomm0): <-- '<CR><LF>+CPIN: READY<CR><LF><CR><LF>OK<CR><LF>'
>
> Thanks.

yes, having a bug to document that rfcomm works for some modems now that we ignore CFUN=1
errors would be good ... as some other modems might be less happy about CFUN=1 ...

please state your phone/modem model in that bug and set it to fix committed.

 - Alexander

Revision history for this message
Marian K. (mak-b-net) wrote :
Download full text (4.9 KiB)

I'm using SAMSUNG C5212 over bluetooth to connect to Internet. but no success

** (modem-manager:3222): DEBUG: <1273175842.389906> (rfcomm0): --> 'AT+CFUN=1<CR>'
** (modem-manager:3222): DEBUG: <1273175842.419884> (rfcomm0): <-- '<CR><LF>+CME ERROR: 4<CR><LF>'
May 6 22:57:22 mak NetworkManager: <warn> GSM modem enable failed: (32) Failed to find a usable modem character set

version of modemmanager
Version : 0.3
Release : 12.git20100504.fc13

version of NetworkManager
Version : 0.8.0
Release : 12.git20100504.fc13

Version : 1.21
Release : 2.fc12

** (modem-manager:3222): DEBUG: <1273175842.322753> (rfcomm0): <-- 'E'
** (modem-manager:3222): DEBUG: <1273175842.324770> (rfcomm0): <-- '0'
** (modem-manager:3222): DEBUG: <1273175842.330774> (rfcomm0): <-- '<CR>'
** (modem-manager:3222): DEBUG: <1273175842.333775> (rfcomm0): <-- '<CR><LF>OK<CR><LF>'
** (modem-manager:3222): DEBUG: <1273175842.333845> (rfcomm0): --> 'AT+CMEE=1<CR>'
** (modem-manager:3222): DEBUG: <1273175842.363802> (rfcomm0): <-- '<CR><LF>OK<CR><LF>'
** (modem-manager:3222): DEBUG: <1273175842.363898> (rfcomm0): --> 'ATX4 &C1<CR>'
** (modem-manager:3222): DEBUG: <1273175842.389814> (rfcomm0): <-- '<CR><LF>OK<CR><LF>'
** (modem-manager:3222): DEBUG: <1273175842.389906> (rfcomm0): --> 'AT+CFUN=1<CR>'
** (modem-manager:3222): DEBUG: <1273175842.419884> (rfcomm0): <-- '<CR><LF>+CME ERROR: 4<CR><LF>'
** (modem-manager:3222): DEBUG: Got failure code 4: Operation not supported
** (modem-manager:3222): DEBUG: <1273175842.420052> (rfcomm0): --> 'AT+IFC=1,1<CR>'
** (modem-manager:3222): DEBUG: <1273175842.452802> (rfcomm0): <-- '<CR><LF>+CME ERROR: 3<CR><LF>'
** (modem-manager:3222): DEBUG: Got failure code 3: Operation not allowed
** (modem-manager:3222): DEBUG: <1273175842.452919> (rfcomm0): --> 'AT+GMI<CR>'
** (modem-manager:3222): DEBUG: <1273175842.505547> (rfcomm0): <-- '<CR><LF>SAMSUNG<CR><LF><CR><LF>OK<CR><LF>'
** (modem-manager:3222): DEBUG: <1273175842.505668> (rfcomm0): --> 'AT+GMM<CR>'
** (modem-manager:3222): DEBUG: <1273175842.527815> (rfcomm0): <-- '<CR><LF>SAMSUNG C5212<CR><LF>'
** (modem-manager:3222): DEBUG: <1273175842.530780> (rfcomm0): <-- '<CR><LF>OK<CR><LF>'
** (modem-manager:3222): DEBUG: <1273175842.530849> (rfcomm0): --> 'AT+GMR<CR>'
** (modem-manager:3222): DEBUG: <1273175842.554816> (rfcomm0): <-- '<CR><LF>31/03/06<CR><LF>'
** (modem-manager:3222): DEBUG: <1273175842.556778> (rfcomm0): <-- '<CR><LF>OK<CR><LF>'
** (modem-manager:3222): DEBUG: <1273175842.556844> (rfcomm0): --> 'AT+CGMI<CR>'
** (modem-manager:3222): DEBUG: <1273175842.602896> (rfcomm0): <-- '<CR><LF>SAMSUNG<CR><LF>'
** (modem-manager:3222): DEBUG: <1273175842.604798> (rfcomm0): <-- '<CR><LF>OK<CR><LF>'
** (modem-manager:3222): DEBUG: <1273175842.604888> (rfcomm0): --> 'AT+CGMM<CR>'
** (modem-manager:3222): DEBUG: <1273175842.629791> (rfcomm0): <-- '<CR><LF>SAMSUNG C5212<CR><LF>'
** (modem-manager:3222): DEBUG: <1273175842.631765> (rfcomm0): <-- '<CR><LF>OK<CR><LF>'
** (modem-manager:3222): DEBUG: <1273175842.631839> (rfcomm0): --> 'AT+CGMR<CR>'
** (modem-manager:3222): DEBUG: <1273175842.657794> (rfcomm0): <-- '<CR><LF>31/03/06<CR><LF>'
** (modem-manager:3222): DEBUG: <12731758...

Read more...

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.