Extra spaces in the "AT+CGDCONT" command causes connection to fail

Bug #480303 reported by Willem Brown
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
modemmanager (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: modemmanager

Hello,

I am trying to use a Sierra Wireless AC775 modem, but the connection fails with an "DEBUG: Got failure code 100: Unknown error" error.

The problem seems to be that the modem manager is inserting spaces between the parameters for the "AT+CGDCONT" command.

** (modem-manager:4295): DEBUG: (ttyS1): --> 'AT+CGDCONT?<CR>'
** (modem-manager:4295): DEBUG: (ttyS1): <-- '<CR><LF>+CGDCONT: 1,"IP","vdata","",0,0<CR><LF><CR><LF>OK<CR><LF>'
** (modem-manager:4295): DEBUG: (ttyS1): --> 'AT+CGDCONT=1, "IP", "vdata"<CR>'
** (modem-manager:4295): DEBUG: (ttyS1): <-- '<CR><LF>ERROR<CR><LF>'

If I use "kermit" to manually execute the "AT+CGDCONT" command without the space then it is successful.

AT+CGDCONT=1, "IP", "vdata"
ERROR

AT+CGDCONT=1,"IP","vdata"
OK

Best regards
Willem Brown

ProblemType: Bug
Architecture: amd64
Date: Tue Nov 10 23:27:33 2009
DistroRelease: Ubuntu 9.10
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
Package: modemmanager 0.2.git.20091014t233208.16f3e00-0ubuntu1
ProcEnviron:
 PATH=(custom, user)
 LANG=en_ZA.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
SourcePackage: modemmanager
Uname: Linux 2.6.31-14-generic x86_64
XsessionErrors:
 (gnome-settings-daemon:3621): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
 (gnome-settings-daemon:3621): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
 (nautilus:3729): Eel-CRITICAL **: eel_preferences_get_boolean: assertion `preferences_is_initialized ()' failed
 (polkit-gnome-authentication-agent-1:3759): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed
 (gnome-panel:3726): Gdk-WARNING **: /build/buildd/gtk+2.0-2.18.3/gdk/x11/gdkdrawable-x11.c:952 drawable is not a pixmap or window

Revision history for this message
Willem Brown (willem-brwn) wrote :
Revision history for this message
Willem Brown (willem-brwn) wrote :
Revision history for this message
Willem Brown (willem-brwn) wrote :
Revision history for this message
Willem Brown (willem-brwn) wrote :
Revision history for this message
Willem Brown (willem-brwn) wrote :
Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Well, right now in mm-generic-gsm.c:3567:

        command = g_strdup_printf ("+CGDCONT=%d,\"IP\",\"%s\"", cid, apn);
        mm_at_serial_port_queue_command (port, command, 3, set_apn_done, info);

There are no spaces in the command. I'll assume this was since fixed upstream, and is currently fixed at least in Oneiric, but also probably in Natty and other releases. Marking this bug Fix Released.

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