Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Tutorials & Tips
The place to find Ubuntu related Tips & Tricks.

 
Thread Tools Display Modes
Old July 2nd, 2009   #41
dc2447
A Carafe of Ubuntu
 
Join Date: Jul 2005
Beans: 151
Re: Howto: Connect ZTE MF627 3G modem with NM0.7

Quote:
Originally Posted by dc2447 View Post
So - bring the modem to my other jaunty install, install udev-extras and I am up and running in < 30 seconds.

I can see no difference between my laptop (not working jaunty) and desktop (working jaunty)

I am going to push laptop to karmic...
Upgraded to Karmic and it works straight away
dc2447 is offline   Reply With Quote
Old July 2nd, 2009   #42
GeorgeVita
Has an Ubuntu Drip
 
GeorgeVita's Avatar
 
Join Date: Aug 2008
Location: Athens, Greece
Beans: 721
Ubuntu 9.10 Karmic Koala
Re: Howto: Connect ZTE MF627 3G modem with NM0.7

Hi dc2447,
do you have MF627 or other type of ZTE modem?
Is it working booting with it AND attaching after boot?
Also check from terminal: uname -a
and post here the kernel number!

Thanks,
George
GeorgeVita is offline   Reply With Quote
Old July 2nd, 2009   #43
dc2447
A Carafe of Ubuntu
 
Join Date: Jul 2005
Beans: 151
Re: Howto: Connect ZTE MF627 3G modem with NM0.7

Quote:
do you have MF627 or other type of ZTE modem?
MF627

Quote:
Is it working booting with it AND attaching after boot?
I haven't rebooted yet, I just tried unplugging the modem and reinserting the modem but although it mounts the volume network manager doesn't spring back into life when I unmount it :(

trying a reboot

Quote:
Linux d420 2.6.31-1-generic #13-Ubuntu SMP Fri Jun 26 16:53:22 UTC 2009 i686 GNU/Linux
althouh my jaunty desktop also works on 2.6.28-11

Update:

Reboot - modem won't work in karmic.

Put modem straight into Jaunty desktop, works first time and connects:

Quote:
ppp0 Link encap:Point-to-Point Protocol
inet addr:10.212.28.2 P-t-P:10.64.64.64 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:146 (146.0 B) TX bytes:185 (185.0 B)
So here is my kernel output from the latop, see the device get disconnected when I try and connect:

Quote:
Jul 2 13:09:42 d420 kernel: [ 2067.732097] usb 1-6: new high speed USB device using ehci_hcd and address 19
Jul 2 13:09:43 d420 kernel: [ 2067.876604] usb 1-6: configuration #1 chosen from 1 choice
Jul 2 13:09:43 d420 kernel: [ 2067.877998] scsi17 : SCSI emulation for USB Mass Storage devices
Jul 2 13:09:43 d420 kernel: [ 2067.878256] usb-storage: device found at 19
Jul 2 13:09:43 d420 kernel: [ 2067.878262] usb-storage: waiting for device to settle before scanning
Jul 2 13:09:48 d420 kernel: [ 2072.877643] usb-storage: device scan complete
Jul 2 13:09:48 d420 kernel: [ 2072.879586] scsi 17:0:0:0: CD-ROM ZTE USB SCSI CD-ROM 2.31 PQ: 0 ANSI: 0
Jul 2 13:09:48 d420 kernel: [ 2072.903729] sr0: scsi3-mmc drive: 0x/52x cd/rw xa/form2 cdda tray
Jul 2 13:09:48 d420 kernel: [ 2072.905946] sr 17:0:0:0: Attached scsi CD-ROM sr0
Jul 2 13:09:48 d420 kernel: [ 2072.907296] sr 17:0:0:0: Attached scsi generic sg1 type 5
Jul 2 13:10:01 d420 kernel: [ 2086.410301] UDF-fs: No VRS found
Jul 2 13:10:01 d420 kernel: [ 2086.410311] UDF-fs: No partition found (1)
Jul 2 13:10:38 d420 kernel: [ 2123.465845] usb 1-6: USB disconnect, address 19
Jul 2 13:10:43 d420 kernel: [ 2128.736193] usb 1-6: new high speed USB device using ehci_hcd and address 20
Jul 2 13:10:44 d420 kernel: [ 2128.878168] usb 1-6: configuration #1 chosen from 1 choice
Jul 2 13:10:44 d420 kernel: [ 2128.880690] option 1-6:1.0: GSM modem (1-port) converter detected
Jul 2 13:10:44 d420 kernel: [ 2128.880843] usb 1-6: GSM modem (1-port) converter now attached to ttyUSB0
Jul 2 13:10:44 d420 kernel: [ 2128.881021] option 1-6:1.1: GSM modem (1-port) converter detected
Jul 2 13:10:44 d420 kernel: [ 2128.881138] usb 1-6: GSM modem (1-port) converter now attached to ttyUSB1
Jul 2 13:10:44 d420 kernel: [ 2128.881422] scsi18 : SCSI emulation for USB Mass Storage devices
Jul 2 13:10:44 d420 kernel: [ 2128.881753] option 1-6:1.3: GSM modem (1-port) converter detected
Jul 2 13:10:44 d420 kernel: [ 2128.881923] usb 1-6: GSM modem (1-port) converter now attached to ttyUSB2
Jul 2 13:10:44 d420 kernel: [ 2128.882047] usb-storage: device found at 20
Jul 2 13:10:44 d420 kernel: [ 2128.882052] usb-storage: waiting for device to settle before scanning
Jul 2 13:10:47 d420 kernel: [ 2131.904141] CE: hpet increasing min_delta_ns to 22500 nsec
Jul 2 13:10:49 d420 kernel: [ 2133.881092] usb-storage: device scan complete
Jul 2 13:10:49 d420 kernel: [ 2133.882424] scsi 18:0:0:0: Direct-Access ZTE MMC Storage 2.31 PQ: 0 ANSI: 2
Jul 2 13:10:49 d420 kernel: [ 2133.884780] sd 18:0:0:0: Attached scsi generic sg1 type 0
Jul 2 13:10:49 d420 kernel: [ 2133.900816] sd 18:0:0:0: [sdb] Attached SCSI removable disk
Jul 2 13:11:33 d420 kernel: [ 2178.000592] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
Jul 2 13:11:33 d420 kernel: [ 2178.000642] option 1-6:1.0: device disconnected
Jul 2 13:11:33 d420 kernel: [ 2178.002721] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
Jul 2 13:11:33 d420 kernel: [ 2178.002756] option 1-6:1.1: device disconnected
Jul 2 13:11:33 d420 kernel: [ 2178.002863] option: option_instat_callback: error -108
Jul 2 13:11:33 d420 kernel: [ 2178.003010] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
Jul 2 13:11:33 d420 kernel: [ 2178.003052] option 1-6:1.3: device disconnected
Jul 2 13:11:33 d420 kernel: [ 2178.112197] usb 1-6: reset high speed USB device using ehci_hcd and address 20
Jul 2 13:11:48 d420 kernel: [ 2193.224151] usb 1-6: device descriptor read/64, error -110
Edit2:

More annoying still, if I delete the APN from network manager - reinsert the mode, readd the APN... it connects first time

Last edited by dc2447; July 2nd, 2009 at 08:19 AM..
dc2447 is offline   Reply With Quote
Old July 2nd, 2009   #44
GeorgeVita
Has an Ubuntu Drip
 
GeorgeVita's Avatar
 
Join Date: Aug 2008
Location: Athens, Greece
Beans: 721
Ubuntu 9.10 Karmic Koala
Re: Howto: Connect ZTE MF627 3G modem with NM0.7

Quote:
I wonder if there is some type of issue with my laptop usb
No, it is the same as with my netbook. I have not yet test a desktop but I think it is just "floating" as 9.10 is on development.

We (you other ZTE modem users and I) could test it after an Ubuntu 9.10 "milestone" as Alpha 3 and possibly report a bug to launchpad. Till then we must have a "typical" testing procedure. We must NOT involve in usb-modeswitch programming as this will be encapsulated to the kernel. My opinion is that we can just test various types of ZTE modems and conclude with the 'bug report'.

A 'typical' test procedure could be the one described at:
http://ubuntuforums.org/showthread.php?p=7550364

I think we must try before final release coming on October!

Regards,
George

Last edited by GeorgeVita; July 2nd, 2009 at 08:52 AM.. Reason: New thread created to summarise test results
GeorgeVita is offline   Reply With Quote
Old July 2nd, 2009   #45
RickPJ
5 Cups of Ubuntu
 
Join Date: Dec 2008
Beans: 22
Re: Howto: Connect ZTE MF627 3G modem with NM0.7

More information ...

Via the NetworkManager developers mailing list, I've been in contact with one of the lead NM developers, and there are definite problems in the way these ZTE devices interact.

NM 0.7.1 (as in Jaunty, not sure about Karmic) probes any serial ports on the device using AT commands to find which is a modem. It tries to avoid choosing two ports on the same parent device, but it's slightly out of sync with the latest version of HAL so it's not working properly. This is why you often get two devices listed.

You can fix this by adding a .fdi file that restores the previous HAL behaviour, but the problem is that it's then random whether it chooses ttyUSB1 or ttyUSB2. They both appear to behave as modems, but only ttyUSB2 will actually make a connection, ttyUSB1 will just hang. (Strictly speaking these are USB interfaces 1 and 3, which normally get assigned to ttyUSB 1 & 2.)

I've found that it's best to let it possibly detect two devices, then work our which is the correct one to use (see my scripts below).

The NM people now understand the problem and are trying to produce a solution that isn't a horrible hack.

However, there are still other issues that result in erratic behaviour. Sometimes you can plug the device in and it will connect immediately, other times you'll be fighting it for ages.

The issues are the serial port modes (which I think is a bug in the "option" driver, I'm trying to work that one out), and the continuous +ZUSIMR:2 messages that the modem spits out - these can be stopped by sending an initialisation command to the modem.

See my earlier post #35, with scripts attached that work round these problems. They're not pretty, they run in a terminal window, but for now they do the job!

Cheers, Rick
RickPJ is offline   Reply With Quote
Old July 2nd, 2009   #46
dc2447
A Carafe of Ubuntu
 
Join Date: Jul 2005
Beans: 151
Re: Howto: Connect ZTE MF627 3G modem with NM0.7

I thought I had a reliable method of connecting.

* delete all apn
* plug in modem
* eject volume
* follow wizard

That worked at least five times in a row but now it doesn't.

Time to revisit unlocking my huawei
dc2447 is offline   Reply With Quote
Old July 2nd, 2009   #47
GeorgeVita
Has an Ubuntu Drip
 
GeorgeVita's Avatar
 
Join Date: Aug 2008
Location: Athens, Greece
Beans: 721
Ubuntu 9.10 Karmic Koala
Re: Howto: Connect ZTE MF627 3G modem with NM0.7

Hi again,
as Sergiu Bivol has already report to:
https://bugs.launchpad.net/ubuntu/+s...ux/+bug/386764

I think that I faced an "Oops" with kernel [b]2.6.30-10-generic #12-Ubuntu[
Code:
[  242.768726] option1 ttyUSB3: GSM modem (1-port) converter now disconnected from ttyUSB3
[  242.768844] option 1-2:1.0: device disconnected
[  242.769752] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
[  242.769857] option 1-2:1.1: device disconnected
[  242.770004] option: option_instat_callback: error -108
[  242.770985] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
[  242.771094] option 1-2:1.3: device disconnected
[  242.880144] usb 1-2: reset high speed USB device using ehci_hcd and address 5
[  243.015049] option 1-2:1.3: GSM modem (1-port) converter detected
[  243.015398] usb 1-2: GSM modem (1-port) converter now attached to ttyUSB2
[  243.015520] option 1-2:1.1: GSM modem (1-port) converter detected
[  243.015733] usb 1-2: GSM modem (1-port) converter now attached to ttyUSB4
[  243.015844] option 1-2:1.0: GSM modem (1-port) converter detected
[  243.016157] usb 1-2: GSM modem (1-port) converter now attached to ttyUSB5
[  248.985672] BUG: unable to handle kernel NULL pointer dereference at 0000002b
[  248.985699] IP: [<c03da6d3>] usb_kill_urb+0x13/0xa0
[  248.985728] *pde = 7e5c7067 
[  248.985740] Oops: 0000 [#2] SMP 
[  248.985753] last sysfs file: /sys/devices/LNXSYSTM:00/device:00/ASUS010:00/rfkill/rfkill0/state
Above problem was reported by me at:
https://bugs.launchpad.net/ubuntu/+s...ux/+bug/373821

I am not sure if we can help by generating more 'bug reports' or just test and report somewhere how we manage it to work!
Also I do not know if developers have (physically) these modems to test them. If not we are ready to follow their instructions instead of trying blindly after every update!

Regards,
George
GeorgeVita is offline   Reply With Quote
Old July 2nd, 2009   #48
GeorgeVita
Has an Ubuntu Drip
 
GeorgeVita's Avatar
 
Join Date: Aug 2008
Location: Athens, Greece
Beans: 721
Ubuntu 9.10 Karmic Koala
Re: Howto: Connect ZTE MF627 3G modem with NM0.7

Hi RickPJ,
your post#35 (http://ubuntuforums.org/showpost.php...5&postcount=35) is very informative and of course is the result from your efforts to get the device working.

Can you confirm: Your scripts need a 'running' PC and can be used after creation of the ttyUSBx ports (after ejecting the 19d2:2000 drive).

As 9.10 is on development, do you feel it will help anyone doing tests with any pre-released version or we must just wait for the final release? If we can help doing tests, can you suggest a "typical" test procedure? My test procedure is on the link into my signature.

EDIT:
Quote:
...then NetworkManager probes the ports to see if they behave as modems (presumably by sending AT commands).
This is why you sometimes get two connections listed in NetworkManager, when it thinks there are two modems, but if you try to use the one that's on ttyUSB1, chances are it won't connect...
For ZTE modems, if you make this test starting form the last port (ttyUSB3 or ttyUSB2) the result is always a connection!
"for modemport=0 to lastport" works some times,
"for modemport=lastport to 0" works always!

Regards,
George

Last edited by GeorgeVita; July 2nd, 2009 at 05:28 PM..
GeorgeVita is offline   Reply With Quote
Old July 4th, 2009   #49
RickPJ
5 Cups of Ubuntu
 
Join Date: Dec 2008
Beans: 22
Re: Howto: Connect ZTE MF627 3G modem with NM0.7

Hi George

Yes, you run the scripts after plugging in the modem. You can start running mblog at any time, but mbmgr will only work once the ttyUSB devices have been created.

I've avoided having to do the "eject" or usb-modeswitch by turning off ZeroCD mode using the AT+ZCDRUN=9 command. You can do this manually in minicom, or even with the command "echo -en 'AT+ZCDRUN=9\r' >/dev/ttyUSB2", and you only need to do it once. This makes things much simpler, and makes the device a lot quicker to start up.

The NetworkManager developers have made a fix to deal with the problem of using the correct port, and choosing only one. The update is on Launchpad BUT it has introduced a regression which means it fails to connect for a different reason. So don't use this update yet until the regression is fixed.

The second major problem is the issue of random ttyUSB port modes. This makes systematic tests very difficult, as behaviour is not always exactly repeatable. Just because you plug it in once and it works doesn't mean it will always work! Running my mbmgr script after the modem is plugged in works round this. I think the bug is in the "option" driver module but I'm trying to confirm this. I have also definitely linked this problem to kernel panics - i.e. if the port modes are correct you don't get crashes.

The final problem is stopping the modem outputting +ZUSIMR:2 all the time. This can be fixed with an extra initialisation command (again, mbmgr does this), but it's unlikely this can be integrated until we have NetworkManager 0.8 which introduces ModemManager as a separate entity. This allows for custom per-modem configurations etc.

Which version of NetworkManager is in Karmic at the moment?

Cheers, Rick
RickPJ is offline   Reply With Quote
Old July 4th, 2009   #50
GeorgeVita
Has an Ubuntu Drip
 
GeorgeVita's Avatar
 
Join Date: Aug 2008
Location: Athens, Greece
Beans: 721
Ubuntu 9.10 Karmic Koala
Re: Howto: Connect ZTE MF627 3G modem with NM0.7

Quote:
Originally Posted by RickPJ View Post
...Which version of NetworkManager is in Karmic at the moment?
0.7.1-0ubuntu1 (karmic) on kernel 2.6.31-1-generic #14-Ubuntu

Thanks for above info,
George
GeorgeVita is offline   Reply With Quote

Bookmarks

Tags
mf627, mf637, nm0.7, zte

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:15 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry