NetworkManager does not work with modem "Sony Ericsson MD300"

Bug #277613 reported by Laudeci Oliveira
32
This bug affects 2 people
Affects Status Importance Assigned to Milestone
network-manager (Ubuntu)
Fix Released
Undecided
Unassigned
Nominated for Intrepid by Oscar

Bug Description

Binary package hint: network-manager

NM does not handle the noise before receive the 'CONNECT' string

pretto@karnak:~/Desktop$ lsb_release -rd
Description: Ubuntu intrepid (development branch)
Release: 8.10

Connection string received:
ATDT*99***1#
~[7f]}#@!}!}!} }9}#}%B#}%}(}”}’}”}”}&} } } } }%}&X*}3cD7~
CONNECT

NM outputs trying to connect:
Oct 3 10:11:57 karnak NetworkManager: <info> Activation (ttyACM0) starting connection 'Auto GSM network connection'
Oct 3 10:11:57 karnak NetworkManager: <info> (ttyACM0): device state change: 3 -> 4
Oct 3 10:11:57 karnak NetworkManager: <info> Activation (ttyACM0) Stage 1 of 5 (Device Prepare) scheduled...
Oct 3 10:11:57 karnak NetworkManager: <info> Activation (ttyACM0) Stage 1 of 5 (Device Prepare) started...
Oct 3 10:11:57 karnak NetworkManager: <debug> [1223039517.739686] nm_serial_device_open(): (ttyACM0) opening device...
Oct 3 10:11:57 karnak NetworkManager: <info> Activation (ttyACM0) Stage 1 of 5 (Device Prepare) complete.
Oct 3 10:11:57 karnak NetworkManager: <debug> [1223039517.846329] serial_debug(): Sending: 'ATZ E0 V1 X4 &C1 +FCLASS=0 '
Oct 3 10:11:57 karnak NetworkManager: <debug> [1223039517.897363] serial_debug(): Got: ' OK '
Oct 3 10:11:57 karnak NetworkManager: <debug> [1223039517.897589] serial_debug(): Sending: 'AT+CPIN? '
Oct 3 10:11:57 karnak NetworkManager: <debug> [1223039517.910330] serial_debug(): Got: ' +CPIN: READY '
Oct 3 10:11:57 karnak NetworkManager: <debug> [1223039517.912458] serial_debug(): Got: ' +CPIN: READY OK '
Oct 3 10:11:57 karnak NetworkManager: <info> (ttyACM0): powering up...
Oct 3 10:11:57 karnak NetworkManager: <debug> [1223039517.912682] serial_debug(): Sending: 'AT+CFUN=1 '
Oct 3 10:11:57 karnak NetworkManager: <debug> [1223039517.930344] serial_debug(): Got: ' OK '
Oct 3 10:11:57 karnak NetworkManager: <debug> [1223039517.930510] serial_debug(): Sending: 'AT+CREG? '
Oct 3 10:11:57 karnak NetworkManager: <debug> [1223039517.947345] serial_debug(): Got: ' +CREG: 0,1 '
Oct 3 10:11:57 karnak NetworkManager: <debug> [1223039517.949319] serial_debug(): Got: ' +CREG: 0,1 OK '
Oct 3 10:11:57 karnak NetworkManager: <info> Registered on Home network
Oct 3 10:11:57 karnak NetworkManager: <debug> [1223039517.949478] serial_debug(): Sending: 'AT+COPS? '
Oct 3 10:11:58 karnak NetworkManager: <debug> [1223039518.020373] serial_debug(): Got: ' +COPS: 0,0,"CLARO BR",2 '
Oct 3 10:11:58 karnak NetworkManager: <debug> [1223039518.024318] serial_debug(): Got: ' +COPS: 0,0,"CLARO BR",2 OK '
Oct 3 10:11:58 karnak NetworkManager: <info> Associated with network: +COPS: 0,0,"CLARO BR",2
Oct 3 10:11:58 karnak NetworkManager: <debug> [1223039518.024493] serial_debug(): Sending: 'AT+CGDCONT=1, "IP", "bandalarga.claro.com.br" '
Oct 3 10:11:58 karnak NetworkManager: <debug> [1223039518.109352] serial_debug(): Got: ' OK '
Oct 3 10:11:58 karnak NetworkManager: <debug> [1223039518.109569] serial_debug(): Sending: 'ATD*99***1# '
Oct 3 10:11:58 karnak NetworkManager: <debug> [1223039518.139331] serial_debug(): Got: '~'
Oct 3 10:11:59 karnak NetworkManager: Invalid byte sequence in conversion input
Oct 3 10:12:28 karnak last message repeated 10 times
Oct 3 10:12:59 karnak NetworkManager: <WARN> dial_done(): Dialing timed out
Oct 3 10:12:59 karnak NetworkManager: <info> (ttyACM0): device state change: 4 -> 9
Oct 3 10:12:59 karnak NetworkManager: <debug> [1223039579.002387] nm_serial_device_close(): Closing device 'ttyACM0'
Oct 3 10:12:59 karnak NetworkManager: <info> Marking connection 'Auto GSM network connection' invalid.
Oct 3 10:12:59 karnak NetworkManager: <info> Activation (ttyACM0) failed.
Oct 3 10:12:59 karnak NetworkManager: <info> (ttyACM0): device state change: 9 -> 3
Oct 3 10:12:59 karnak NetworkManager: <info> (ttyACM0): deactivating device.
Oct 3 10:12:59 karnak NetworkManager: nm_system_device_flush_ip4_routes_with_iface: assertion `iface_idx >= 0' failed
Oct 3 10:12:59 karnak NetworkManager: nm_system_device_flush_ip4_addresses_with_iface: assertion `iface_idx >= 0' failed
Oct 3 10:12:59 karnak NetworkManager: <info> Setting system hostname to 'karnak' (from address lookup)

Revision history for this message
dubbers (hornseye) wrote :

Same sequence of errors present for Sony Ericsson K850i

Revision history for this message
Oscar (oscar-dbshut) wrote :

Idem for Giant D301:

Dec 8 01:17:51 tainara-desktop NetworkManager: <info> Activation (ttyACM0) starting connection 'Claro'
Dec 8 01:17:51 tainara-desktop NetworkManager: <info> (ttyACM0): device state change: 3 -> 4
Dec 8 01:17:51 tainara-desktop NetworkManager: <info> Activation (ttyACM0) Stage 1 of 5 (Device Prepare) scheduled...
Dec 8 01:17:51 tainara-desktop NetworkManager: <info> Activation (ttyACM0) Stage 1 of 5 (Device Prepare) started...
Dec 8 01:17:51 tainara-desktop NetworkManager: <debug> [1228706271.655634] nm_serial_device_open(): (ttyACM0) opening device...
Dec 8 01:17:51 tainara-desktop NetworkManager: <info> Activation (ttyACM0) Stage 1 of 5 (Device Prepare) complete.
Dec 8 01:17:51 tainara-desktop NetworkManager: <info> (ttyACM0): powering up...
Dec 8 01:17:51 tainara-desktop NetworkManager: <info> Registered on Home network
Dec 8 01:17:51 tainara-desktop NetworkManager: <info> Associated with network: +COPS: 0,0,"",0
Dec 8 01:17:53 tainara-desktop NetworkManager: Invalid byte sequence in conversion input
Dec 8 01:18:22 tainara-desktop last message repeated 10 times
Dec 8 01:18:53 tainara-desktop NetworkManager: <WARN> dial_done(): Dialing timed out
Dec 8 01:18:53 tainara-desktop NetworkManager: <info> (ttyACM0): device state change: 4 -> 9
Dec 8 01:18:53 tainara-desktop NetworkManager: <debug> [1228706333.002370] nm_serial_device_close(): Closing device 'ttyACM0'
Dec 8 01:18:53 tainara-desktop NetworkManager: <info> Marking connection 'Claro' invalid.
Dec 8 01:18:53 tainara-desktop NetworkManager: <info> Activation (ttyACM0) failed.
Dec 8 01:18:53 tainara-desktop NetworkManager: <info> (ttyACM0): device state change: 9 -> 3
Dec 8 01:18:53 tainara-desktop NetworkManager: <info> (ttyACM0): deactivating device (reason: 0).
Dec 8 01:18:53 tainara-desktop NetworkManager: nm_system_device_flush_ip4_routes_with_iface: assertion `iface_idx >= 0' failed
Dec 8 01:18:53 tainara-desktop NetworkManager: nm_system_device_flush_ip4_addresses_with_iface: assertion `iface_idx >= 0' failed

Revision history for this message
Alexander Sack (asac) wrote : Re: [Bug 277613] Re: NetworkManager does not work with modem "Sony Ericsson MD300"

On Mon, Dec 08, 2008 at 03:20:19AM -0000, Oscar wrote:
> Idem for Giant D301:

NM tries to use ttyACM0 to connect to ... can you use that device
when trying to manually connect using wvdial?

Also try to update to the really latest packages from intrepid-updates
... maybe latest fixes also help you.

 status incomplete

 - Alexander

Changed in network-manager:
status: New → Incomplete
Revision history for this message
Oscar (oscar-dbshut) wrote :

Yeah, with wvdial I can use that device.

I am using NM version 0.7~~svn20081018t105859-0ubuntu1.8.10.1. I think that is the latest release.

Oscar.

Revision history for this message
Laudeci Oliveira (laudeci) wrote : Re: [Bug 277613] Re: NetworkManager does not work with modem "Sony Ericsson MD300"

Still not working using the last release.

2008/12/16 Oscar <email address hidden>

> Yeah, with wvdial I can use that device.
>
> I am using NM version 0.7~~svn20081018t105859-0ubuntu1.8.10.1. I think
> that is the latest release.
>
> Oscar.
>
> --
> NetworkManager does not work with modem "Sony Ericsson MD300"
> https://bugs.launchpad.net/bugs/277613
> You received this bug notification because you are a direct subscriber
> of the bug.
>

--
---------------------------------------------------------------------------------------------------------------------------
Laudeci Oliveira
Official Ubuntu Member
Red Hat Certified Technician
Microsoft Certified Professional
Microsoft Certified Trainer
Tecnólogo em Sistema de Informação

Revision history for this message
Oscar (oscar-dbshut) wrote :

We need some "stupid mode" from wvdial to NM.

In fact, we need almost all features from wvdial to NM Mobile Broadband.

Oscar.

Changed in network-manager:
status: Incomplete → Confirmed
Revision history for this message
tomm3h (tom-ninjabadger) wrote :
Download full text (3.7 KiB)

I can confirm this is a problem with the SE K850i, too. Obtained this from my logs:

Jan 16 14:33:18 mini9 NetworkManager: <info> Activation (ttyACM0) starting connection 'T-Mobile'
Jan 16 14:33:18 mini9 NetworkManager: <info> (ttyACM0): device state change: 3 -> 4
Jan 16 14:33:18 mini9 NetworkManager: <info> Activation (ttyACM0) Stage 1 of 5 (Device Prepare) scheduled...
Jan 16 14:33:18 mini9 NetworkManager: <info> Activation (ttyACM0) Stage 1 of 5 (Device Prepare) started...
Jan 16 14:33:18 mini9 NetworkManager: <debug> [1232116398.835867] nm_serial_device_open(): (ttyACM0) opening device...
Jan 16 14:33:18 mini9 NetworkManager: <info> Activation (ttyACM0) Stage 1 of 5 (Device Prepare) complete.
Jan 16 14:33:19 mini9 NetworkManager: <info> (ttyACM0): powering up...
Jan 16 14:33:19 mini9 NetworkManager: <info> Registered on Home network
Jan 16 14:33:19 mini9 NetworkManager: <info> Associated with network: +COPS: 0,0,"T-Mobile",2
Jan 16 14:33:20 mini9 NetworkManager: Invalid byte sequence in conversion input
Jan 16 14:33:49 mini9 last message repeated 11 times
Jan 16 14:34:20 mini9 NetworkManager: <WARN> dial_done(): Dialing timed out
Jan 16 14:34:20 mini9 NetworkManager: <info> (ttyACM0): device state change: 4 -> 9
Jan 16 14:34:20 mini9 NetworkManager: <debug> [1232116460.004256] nm_serial_device_close(): Closing device 'ttyACM0'
Jan 16 14:34:20 mini9 NetworkManager: <info> Marking connection 'T-Mobile' invalid.
Jan 16 14:34:20 mini9 NetworkManager: <info> Activation (ttyACM0) failed.
Jan 16 14:34:20 mini9 NetworkManager: <info> (ttyACM0): device state change: 9 -> 3
Jan 16 14:34:20 mini9 NetworkManager: <info> (ttyACM0): deactivating device (reason: 0).
Jan 16 14:34:20 mini9 NetworkManager: nm_system_device_flush_ip4_routes_with_iface: assertion `iface_idx >= 0' failed
Jan 16 14:34:20 mini9 NetworkManager: nm_system_device_flush_ip4_addresses_with_iface: assertion `iface_idx >= 0' failed

Running a fully patched (including intrepid-proposed) Ubuntu 8.10 i386 install. I am able to connect with wvdial/gnome-ppp just fine, including as I write this. The connection is to T-Mobile in the UK, but I'm not sure this has any bearing.

Oddly, I also have two modem devices detected:

[ 4930.062123] usb 5-3: new high speed USB device using ehci_hcd and address 6
[ 4930.207543] usb 5-3: configuration #3 chosen from 1 choice
[ 4930.216272] cdc_acm 5-3:3.1: ttyACM0: USB ACM device
[ 4930.227198] cdc_acm 5-3:3.3: ttyACM1: USB ACM device
[ 4930.254812] cdc_wdm 5-3:3.7: cdc-wdm0: USB WDM device
[ 4930.264535] usb0: register 'cdc_ether' at usb-0000:00:1d.7-3, CDC Ethernet Device, 02:80:37:0d:03:00

Both exhibit exactly the same behaviour (as pasted above) and I'm not quite sure what the difference is. usb0 is broken in the K850i, which is a great shame: with the k800i, you can simply request a DHCP lease via usb0 and you're good to go. :(

As an annoying side effect, network manager does not include any manual control of the 'offline' mode that it extends to Firefox and pidgin (and possibly other apps.) This means that pidgin requires coercing to connect instead of simply stating 'waiting for network' when you select 'online', ...

Read more...

Revision history for this message
Luis Diaz (diazluis) wrote :

Same here!

but it works like a charm with wvdial or pon/poff (with some coustomization)

we really need a wvdial plugin, is not that smart :(

BTW has anyone see this bug?

Revision history for this message
Luis Diaz (diazluis) wrote :

lshal output

Revision history for this message
Luis Diaz (diazluis) wrote :

fow what i can see on serial debug those "Invalid byte sequence in conversion input"
start to showup when the connection is done...
in wvdial at that moment all those "symbols" are passed to pppd (i think!)
will post both logs later

Revision history for this message
ErMejo (andrea-lombardoni) wrote :

I confirm this bug with a Sony Ericsson C702 on Ubuntu 8.10.

Package versions:
network-manager 0.7~~svn20081018t105859-0ubuntu1.8.10.2
network-manager-gnome 0.7~~svn20081020t000444-0ubuntu1.8.10.2

Partial NetworkManager log:

NetworkManager: <debug> [1236986844.064299] nm_serial_debug(): Sending: 'AT+CGDCONT=1,"IP","gprs.swisscom.ch"
'
NetworkManager: <debug> [1236986844.615340] nm_serial_debug(): Got: '

OK

'
NetworkManager: <debug> [1236986844.615516] nm_serial_debug(): Sending: 'ATD*99***1#
'
NetworkManager: <debug> [1236986844.722770] nm_serial_debug(): Got: '~'
NetworkManager: Invalid byte sequence in conversion input
NetworkManager: Invalid byte sequence in conversion input
NetworkManager: Invalid byte sequence in conversion input
NetworkManager: Invalid byte sequence in conversion input
NetworkManager: Invalid byte sequence in conversion input
NetworkManager: Invalid byte sequence in conversion input
NetworkManager: Invalid byte sequence in conversion input
NetworkManager: Invalid byte sequence in conversion input
NetworkManager: Invalid byte sequence in conversion input
NetworkManager: Invalid byte sequence in conversion input
NetworkManager: Invalid byte sequence in conversion input
NetworkManager: Invalid byte sequence in conversion input
NetworkManager: <WARN> dial_done(): Dialing timed out
NetworkManager: <info> (ttyACM0): device state change: 4 -> 9
NetworkManager: <debug> [1236986905.001122] nm_serial_device_close(): Closing device 'ttyACM0'
N

Revision history for this message
Luis Diaz (diazluis) wrote :

I think we will need to wait until network manager has ModemManager included with a SE driver....
there is a "hacky workaround" to make the modem enable its ethernet side... so it can appear as an ethernet card under NM...
is anyone interested?

Revision history for this message
tomm3h (tom-ninjabadger) wrote : Re: [Bug 277613] Re: NetworkManager does not work with modem "Sony Ericsson MD300"
Download full text (5.4 KiB)

Hi Luis,

I would be very interested in seeing if the 'hack' works with other SE
phones. My K800i works as an Ethernet device flawlessly, but the K850i
I *had* would not. The CDC USB Ethernet device appeared as usb0, but
you could not obtain a DHCP lease across it.

I wrote about this here: http://www.ninjabadger.net/2008/07/29/why-sony-why/

I would be interested in a solution, but unfortunately would not be
able to test it as the K850i has been sold on: it drive me nuts. :)

Tom

> I think we will need to wait until network manager has ModemManager
> included with a SE driver....
> there is a "hacky workaround" to make the modem enable its ethernet
> side... so it can appear as an ethernet card under NM...
> is anyone interested?
>
> --
> NetworkManager does not work with modem "Sony Ericsson MD300"
> https://bugs.launchpad.net/bugs/277613
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “network-manager” source package in Ubuntu: Confirmed
>
> Bug description:
> Binary package hint: network-manager
>
> NM does not handle the noise before receive the 'CONNECT' string
>
> pretto@karnak:~/Desktop$ lsb_release -rd
> Description: Ubuntu intrepid (development branch)
> Release: 8.10
>
> Connection string received:
> ATDT*99***1#
> ~[7f]}#@!}!}!} }9}#}%B#}%}(}”}’}”}”}&} } } } }%}&X*}3cD7~
> CONNECT
>
> NM outputs trying to connect:
> Oct 3 10:11:57 karnak NetworkManager: <info> Activation (ttyACM0)
> starting connection 'Auto GSM network connection'
> Oct 3 10:11:57 karnak NetworkManager: <info> (ttyACM0): device
> state change: 3 -> 4
> Oct 3 10:11:57 karnak NetworkManager: <info> Activation (ttyACM0)
> Stage 1 of 5 (Device Prepare) scheduled...
> Oct 3 10:11:57 karnak NetworkManager: <info> Activation (ttyACM0)
> Stage 1 of 5 (Device Prepare) started...
> Oct 3 10:11:57 karnak NetworkManager: <debug> [1223039517.739686]
> nm_serial_device_open(): (ttyACM0) opening device...
> Oct 3 10:11:57 karnak NetworkManager: <info> Activation (ttyACM0)
> Stage 1 of 5 (Device Prepare) complete.
> Oct 3 10:11:57 karnak NetworkManager: <debug> [1223039517.846329]
> serial_debug(): Sending: 'ATZ E0 V1 X4 &C1 +FCLASS=0 '
> Oct 3 10:11:57 karnak NetworkManager: <debug> [1223039517.897363]
> serial_debug(): Got: ' OK '
> Oct 3 10:11:57 karnak NetworkManager: <debug> [1223039517.897589]
> serial_debug(): Sending: 'AT+CPIN? '
> Oct 3 10:11:57 karnak NetworkManager: <debug> [1223039517.910330]
> serial_debug(): Got: ' +CPIN: READY '
> Oct 3 10:11:57 karnak NetworkManager: <debug> [1223039517.912458]
> serial_debug(): Got: ' +CPIN: READY OK '
> Oct 3 10:11:57 karnak NetworkManager: <info> (ttyACM0): powering up...
> Oct 3 10:11:57 karnak NetworkManager: <debug> [1223039517.912682]
> serial_debug(): Sending: 'AT+CFUN=1 '
> Oct 3 10:11:57 karnak NetworkManager: <debug> [1223039517.930344]
> serial_debug(): Got: ' OK '
> Oct 3 10:11:57 karnak NetworkManager: <debug> [1223039517.930510]
> serial_debug(): Sending: 'AT+CREG? '
> Oct 3 10:11:57 karnak NetworkManager: <debug> [1223039517.947345]
> serial_debug(): Got: ' +CREG: 0...

Read more...

Revision history for this message
Luis Diaz (diazluis) wrote : Re: [Bug 277613] Re: NetworkManager does not work with modem "Sony Ericsson MD300"

Hi Tom, this is what i used:
open the modem device with something like minicom and try this:

AT+CGDCONT
AT*ENAP=1,1

after a few secconds you should get an IP on usb0 (is using NM)

if that does not work please reply back and i will copy-paste the
script i use in the laptop (its a bit nasty :P )

On Sat, Mar 14, 2009 at 11:20, tomm3h <email address hidden> wrote:
> Hi Luis,
>
> I would be very interested in seeing if the 'hack' works with other SE
> phones. My K800i works as an Ethernet device flawlessly, but the K850i
> I *had* would not. The CDC USB Ethernet device appeared as usb0, but
> you could not obtain a DHCP lease across it.
>
> I wrote about this here: http://www.ninjabadger.net/2008/07/29/why-sony-
> why/
>
>
> I would be interested in a solution, but unfortunately would not be
> able to test it as the K850i has been sold on: it drive me nuts. :)
>
> Tom
>

Revision history for this message
Cloves Almeida (cjalmeida) wrote :

Luis, you configuration works very good with network manager.

In fact, I created a udev rule and a helper python script that will issue those configuration upon sticking the MD300 usb modem.

1) put the 50-md300modem.rules file in /etc/udev/rules.d/
2) put the md300-ethernet file in /usr/local/bin/.
3) chmod +x /usr/local/bin/md300-ethernet
4) sudo apt-get install python-serial.
5) sudo /etc/init.d/udev restart

Plug in you MD300 then wait about 20 seconds. NM should connect automagically.

Revision history for this message
Cloves Almeida (cjalmeida) wrote :

The md300-ethernet script

Revision history for this message
Luis Diaz (diazluis) wrote :

Nice Cloves! thats good, but i have to ask, where did you get sleep 10 ?
i was using a dirty bash script to do the same, and in rare cases sleep 10 is not enough
maybe its possible to use some AT command to check before issuing the last command?

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

does this work with NM 0.7.1 in jaunty now?

Revision history for this message
Laudeci Oliveira (laudeci) wrote :

This modem now works on jaunty with NM 0.7.0.100

2009/5/4 Alexander Sack <email address hidden>

> does this work with NM 0.7.1 in jaunty now?
>
> --
> NetworkManager does not work with modem "Sony Ericsson MD300"
> https://bugs.launchpad.net/bugs/277613
> You received this bug notification because you are a direct subscriber
> of the bug.
>

--
---------------------------------------------------------------------------------------------------------------------------
Laudeci Oliveira
Official Ubuntu Member
Red Hat Certified Technician
Microsoft Certified Professional
Microsoft Certified Trainer
Tecnólogo em Sistema de Informação

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

thanks for being responsive; this was fixed by the great new modem prober and probably other improvements on modem handling side in 0.7.1

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