[Bug 868034] Re: Huawei E220 and E1550 can't connect on Ubuntu 11.10

2012-06-20 Thread Joakim Lagergren
Hi Sleepy John and others,

Since people still seem to have problems I thought I should chime in and
share some of my experiences.

I had problems with connecting my E220 on 11.10 oneiric using MM
0.5-1ubuntu1 after upgrading the modem firmware to 11.117.10.02.00.
(Don't remember what firmware version I had before the upgrade.)

I found a simple workaround that allowed me to connect reliably with 
ModemManager (detailed in duplicate bug #932824): 
Prevent MM to probe /dev/ttyUSB1 by starting the command 'cat /dev/ttyUSB1' 
before MM starts its probing.

The updated version of MM currently in oneiric (which is supposed to fix
this bug?), 0.5-1ubuntu1.1, does not work for me, but my workaround
still works.

To test if you have the same problem as I have, you can try the following:
- Make sure the modem is physically disconnected.
- Open a terminal and run the command 'while true; do cat /dev/ttyUSB1; sleep 
1; done'
(Before the modem is connected you will see messages like 'cat: /dev/ttyUSB1: 
No such file or directory' once every second. After the modem is connected and 
initialized you will see messages from the modem, such as 
^BOOT:59866241,0,0,0,6 ^MODE:5,5 ^RSSI:27 and others.)
- Connect the modem to your computer.
- Connect using modem manager as usual.
Note: After ModemManager is done with its probing you can abort the cat 
/dev/ttyUSB1 command.

If this workaround works for you, you might want to try the ports
branch of ModemManager which Aleksander Morgado mentioned in comment
#145 (with more info available in the comments before and after). I've
been using the ports branch since February and it has been working
perfectly all the time.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/868034

Title:
  Huawei E220 and E1550 can't connect on Ubuntu 11.10

To manage notifications about this bug go to:
https://bugs.launchpad.net/modemmanager/+bug/868034/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 868034] Re: Huawei E220 and E1550 can't connect on Ubuntu 11.10

2012-02-16 Thread Joakim Lagergren
Hi Aleksander.

I've had the same problem since I updated my Huawei E220 to firmware
revision 11.117.10.02.00 and 11.313.02.00.01 as detailed in duplicate
bug #932824
https://bugs.launchpad.net/ubuntu/+source/modemmanager/+bug/932824/.
Before firmware update (possibly with firmware 11.110.xx?) everything
was working fine.

I can confirm that the ports branch works for me. Debug log of
successful connection is attached.


** Attachment added: Debug log of successful connection with ModemManager 
ports branch
   
https://bugs.launchpad.net/ubuntu/+source/modemmanager/+bug/868034/+attachment/2745222/+files/ModemManager%20Ports%20branch%20Success%202.txt

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/868034

Title:
  Huawei E220 and E1550 can't connect on Ubuntu 11.10

To manage notifications about this bug go to:
https://bugs.launchpad.net/modemmanager/+bug/868034/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 932824] Re: ModemManager hangs Huawei E220 Modem when probing ttyUSB1

2012-02-15 Thread Joakim Lagergren
** Attachment added: Debug log of successful connection.
   
https://bugs.launchpad.net/ubuntu/+source/modemmanager/+bug/932824/+attachment/2742444/+files/ModemManager%20Success%20On%20E220%20Connect%20Full%20%28From%20modem%20attatched%29.txt

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/932824

Title:
  ModemManager hangs Huawei E220 Modem when probing ttyUSB1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/modemmanager/+bug/932824/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 932824] Re: ModemManager hangs Huawei E220 Modem when probing ttyUSB1

2012-02-15 Thread Joakim Lagergren
** Attachment added: Debug log of failed connection.
   
https://bugs.launchpad.net/bugs/932824/+attachment/2742441/+files/ModemManager%20Failure%20On%20E220%20Connect%20Full%20%28From%20modem%20attached%29.txt

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/932824

Title:
  ModemManager hangs Huawei E220 Modem when probing ttyUSB1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/modemmanager/+bug/932824/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 932824] [NEW] ModemManager hangs Huawei E220 Modem when probing ttyUSB1

2012-02-15 Thread Joakim Lagergren
Public bug reported:

After upgrading the firmware on my Huawei E220 modem to 11.117.10.02.00
I can't connect using NetworkManager. Before the firmware upgrade it was
connecting without problems.

My manual pppd scripts still connect without problems.

The problem seems to be that the modem hangs when /dev/ttyUSB1 is being
probed by ModemManager. The device used to connect the modem is
/dev/ttyUSB0.

If I start the command 'cat /dev/ttyUSB1' in a terminal before
ModemManager starts its probing everything works fine. It seems like the
connection to /dev/ttyUSB1 is blocked by the cat command and the probing
of ttyUSB1 fails.

I've attached a log file of a failed connection with ModemManager
started in debug mode: ModemManager Failure On E220 Connect Full (From
modem attached).txt.

I will also attach a log file of a successful connection (with 'cat
/dev/ttyUSB1' running in a terminal).

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: modemmanager 0.5-1ubuntu1
ProcVersionSignature: Ubuntu 3.0.0-15.26-generic-pae 3.0.13
Uname: Linux 3.0.0-15-generic-pae i686
NonfreeKernelModules: nvidia
ApportVersion: 1.23-0ubuntu4
Architecture: i386
Date: Wed Feb 15 15:05:49 2012
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 10.04 LTS Lucid Lynx - Release i386 (20100429)
ProcEnviron:
 LANGUAGE=en_GB:en
 PATH=(custom, user)
 LANG=sv_SE.utf8
 SHELL=/bin/bash
SourcePackage: modemmanager
UpgradeStatus: Upgraded to oneiric on 2011-10-18 (120 days ago)

** Affects: modemmanager (Ubuntu)
 Importance: Undecided
 Status: New


** Tags: apport-bug i386 oneiric

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/932824

Title:
  ModemManager hangs Huawei E220 Modem when probing ttyUSB1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/modemmanager/+bug/932824/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 932824] Re: ModemManager hangs Huawei E220 Modem when probing ttyUSB1

2012-02-15 Thread Joakim Lagergren
*** This bug is a duplicate of bug 868034 ***
https://bugs.launchpad.net/bugs/868034

I just found a newer firmware version (11.313.02.00.01). After fimware
upgrade the problems (and workaround) still persist.

Some more details:

When ModemManager is allowed to probe /dev/ttyUSB1:

Feb 15 14:51:12 jbls-xps modem-manager[595]: debug [mm-plugin-base.c:850] 
try_open(): (ttyUSB1): probe requested by plugin 'Huawei'
...
Feb 15 14:51:12 jbls-xps modem-manager[595]: debug [mm-modem-base.c:155] 
mm_modem_base_add_port(): (ttyUSB1) type secondary claimed by 
/sys/devices/pci:00/:00:1d.0/usb5/5-1
Feb 15 14:51:12 jbls-xps modem-manager[595]: info  [mm-manager.c:564] 
do_grab_port(): (Huawei): GSM modem 
/sys/devices/pci:00/:00:1d.0/usb5/5-1 claimed port ttyUSB1


Then, when trying to connect ttyUSB0, both ttyUSB0 and ttyUSB1 get the commands 
AT+CREG=2 and AT+CGREG=2. ttyUSB1 does not seem to like this and responds first 
with +CME ERROR: 3 and then ^BOOT:59866241,0,0,0,6:

Feb 15 14:51:15 jbls-xps modem-manager[595]: debug [mm-at-serial-port.c:298] 
debug_log(): (ttyUSB1): -- 'AT+CREG=2CR'
Feb 15 14:51:15 jbls-xps modem-manager[595]: debug [mm-at-serial-port.c:298] 
debug_log(): (ttyUSB1): -- 'CRLF+CME ERROR: 3CRLF'
Feb 15 14:51:15 jbls-xps modem-manager[595]: debug [mm-serial-parsers.c:412] 
mm_serial_parser_v1_parse(): Got failure code 3: Operation not allowed
Feb 15 14:51:15 jbls-xps modem-manager[595]: debug [mm-at-serial-port.c:298] 
debug_log(): (ttyUSB1): -- 'AT+CGREG=2CR'
Feb 15 14:51:15 jbls-xps modem-manager[595]: debug [mm-at-serial-port.c:298] 
debug_log(): (ttyUSB1): -- 'CRLF^BOOT:59866241,0,0,0,6CRLF'

After that the modem does not respond at all. Even my otherwise working
pppd scripts fail to communicate with the modem.


When command 'cat /dev/ttyUSB1' is running ModemManager probing fails on
ttyUSB1:

Feb 15 14:54:29 jbls-xps modem-manager[595]: debug [mm-plugin-base.c:850] 
try_open(): (ttyUSB1): probe requested by plugin 'Huawei'
...
Feb 15 14:54:46 jbls-xps modem-manager[595]: debug [mm-manager.c:624] 
supports_callback(): (tty/ttyUSB1): ignoring port unsupported by physical 
modem's plugin

After that ModemManager does not touch /dev/ttyUSB1 and NetworkManager
is able to connect using /dev/ttyUSB0.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/932824

Title:
  ModemManager hangs Huawei E220 Modem when probing ttyUSB1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/modemmanager/+bug/932824/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs