Can't connect with Sony Ericsson MD400

Bug #492772 reported by Jonas Skubic
30
This bug affects 5 people
Affects Status Importance Assigned to Milestone
usb-modeswitch-data (Ubuntu)
Fix Released
Medium
Didier Raboud

Bug Description

Binary package hint: modemmanager

My Sony Ericsson MD400 HSPA USB modem stopped working after I upgraded to karmic. It worked fine in jaunty.

I've installed the latest version from the PPA:

ii modemmanager 0.2.git.20091201t192528.f715e0d-0ubu D-Bus service for managing modems
ii network-manager 0.8~a~git.20091203t185502.9c37194-0u network management framework daemon

mm-test.py throws an exception:

GSM modem
Driver: 'cdc_acm'
Modem device: '/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-3'
Data device: 'ttyACM0'
Traceback (most recent call last):
  File "./mm-test.py", line 296, in <module>
    modem.Enable(True)
  File "/usr/lib/pymodules/python2.6/dbus/proxies.py", line 140, in __call__
    **keywords)
  File "/usr/lib/pymodules/python2.6/dbus/connection.py", line 620, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.ModemManager.Modem.Gsm.Unknown: Unknown error

Revision history for this message
Jonas Skubic (jonas-skubic) wrote :
Revision history for this message
Jonas Skubic (jonas-skubic) wrote :

...and the NetworkManager log.

Revision history for this message
ejrav (ejrav) wrote :

I do not know if it's the same bug, I think so.

after upgrading from Ubuntu 9.04 to Ubuntu 9.10 (karmic) I can not connect to internet with Sony MD400.

 I installed usb_modeswitch 1.0.5, and it works:

Looking for target devices ...
 No devices in target mode or class found
Looking for default devices ...
 Found default devices (1)
 Found a default device NOT in target class mode
Accessing device 002 on bus 001 ...
Using endpoints 0x01 (out) and 0x81 (in)
Inquiring device details; driver will be detached ...
Looking for active driver ...
 OK, driver found ("usb-storage")
 OK, driver "usb-storage" detached

Received inquiry data (detailed identification)
-------------------------
  Vendor String: SEMC
   Model String: MMC Flash Card
Revision String: 0
-------------------------

Device description data (identification)
-------------------------
Manufacturer: Sony Ericsson
     Product: MMC Flash Card
  Serial No.: 3578650205033760
-------------------------
Looking for active driver ...
 No driver found. Either detached before or never attached
Trying to send Sony control message
 OK, control message sent, waiting for device to return ...
####################
 After 20 seconds: device came back, proceeding
Sending Sony control message again ...
 OK, control message sent
-> device should be stable now. Bye.

However I can not connect to the Internet with networkmanager or gnome-ppp. As i used.

the syslog generated by both programs are in attachment.

Thanks!

Revision history for this message
thiesp (thpierdola-pub) wrote :

I'm runnig Ubuntu Karmic too, so I have the same problem, but found an ugly workaround:

First i use usb_modeswitch as stated in many places:

> sudo usb_modeswitch -v0x0fce -p0xd0e1 -O 1

Then I try to connect using wvdial, it doesn't work, but somehow it seems to initialize the MD400 (a blue lamp starts blinking)

> wvdial

I use the following /etc/wvdial.conf :
---START---
[Dialer Defaults]
Init1 = ATX3
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CFUN=6
Init4 = AT+CGDCONT=1,"ip","internet.sonofon"
Phone = *99#
Modem Type = USB Modem
Baud = 460800
New PPPD = yes
Modem = /dev/ttyACM0
ISDN = 0
Password = ''
Username = ''
---END---

Note: Modem = /dev/ttyACM0 have to be changed to whatever your device is ttyACM1, ttyACM2,... or even ttyUSB0,... I don't what other part of the file might be important, it just worked for me.

After that the network manager can connect using the default settings.

Note: you have to run the two lines above every time you plug in the stick or restart the system.

As mentioned, I think the problem occurs somewhere in the initialization of the modem, but cant say where precisely, as this fix was more luck then something else...

System: EEE Pc 1000, Xubuntu Karmic, Sony Ericsson MD400

Revision history for this message
ejrav (ejrav) wrote :

I tried it and it works, right now I am using wvdial. thanks.

Revision history for this message
Sergio Zanchetta (primes2h) wrote :

Seems to be a udev issue, probably the same as bug #451787 (MD300)

I confirm the bug because 3 other people subscribed to it as affected.

affects: modemmanager (Ubuntu) → udev (Ubuntu)
Changed in udev (Ubuntu):
importance: Undecided → Medium
status: New → Confirmed
tags: added: regression-release
Revision history for this message
Sergio Zanchetta (primes2h) wrote :

== Regression details ==
Discovered in version: Karmic 9.10
Last known good version: Jaunty 9.04

Revision history for this message
Sergio Zanchetta (primes2h) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. The issue that you reported is one that should be reproducible with the live environment of the Desktop CD of the development release - Lucid Lynx. It would help us greatly if you could test with it so we can work on getting it fixed in the next release of Ubuntu. You can find out more about the development release at http://www.ubuntu.com/testing/ . Thanks again and we appreciate your help.

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

Sergio: what makes you think that this is a udev issue? From the logs above, it looks like a device node exists in /dev ?

Revision history for this message
Sergio Zanchetta (primes2h) wrote :

@Scott
Bug #451787 is about a different model (MD300) of the Sony Ericsson HDSPA usb modem.
That bug is about a value in udev rule that change the way the modem is detected (as a modem or a storage device).
I guessed it could be a similar issue that in some way can interfere with the modem itself.

caberg (caberg-408)
description: updated
Revision history for this message
senjindarashiva (fredrik-loch) wrote :

The bug seems to be present in both 10.04 and 10.10 alpa 3

Martin Pitt (pitti)
affects: udev (Ubuntu) → usb-modeswitch (Ubuntu)
Revision history for this message
Didier Raboud (odyx) wrote :

Hi,

you just need usb-modeswitch and usb-modeswitch-data from maverick and it should just work (aka switch the device from storage to modem). The rest is out of scope from usb-modeswitch.

Revision history for this message
Didier Raboud (odyx) wrote :

Fixed in 20100110-1.

Changed in usb-modeswitch (Ubuntu):
assignee: nobody → Didier Raboud (odyx)
status: Confirmed → Fix Committed
Didier Raboud (odyx)
affects: usb-modeswitch (Ubuntu) → usb-modeswitch-data (Ubuntu)
Didier Raboud (odyx)
Changed in usb-modeswitch-data (Ubuntu):
status: Fix Committed → 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.