Results 1 to 7 of 7

Thread: 10.04 network manager ZTE MF626i

  1. #1
    Join Date
    Dec 2007
    Beans
    7

    10.04 network manager ZTE MF626i

    I've encountered a new breed of ZTE MF626 - the MF626i which Telstra Australia just started selling today, which network manager is not detecting as a modem.

    If I insert the device, the kernel correctly sees the first SCSI CD and ejects it, it then see the modem (and the micro SD card in the modem):

    Jul 19 15:18:23 ubuntu kernel: [ 1067.292321] usb 3-4: new high speed USB device using xhci_hcd and address 0
    Jul 19 15:18:23 ubuntu kernel: [ 1067.315466] xhci_hcd 0000:0f:00.0: WARN: short transfer on control ep
    Jul 19 15:18:23 ubuntu kernel: [ 1067.316118] xhci_hcd 0000:0f:00.0: WARN: short transfer on control ep
    Jul 19 15:18:23 ubuntu kernel: [ 1067.316619] xhci_hcd 0000:0f:00.0: WARN: short transfer on control ep
    Jul 19 15:18:23 ubuntu kernel: [ 1067.317111] xhci_hcd 0000:0f:00.0: WARN: short transfer on control ep
    Jul 19 15:18:23 ubuntu kernel: [ 1067.317402] usb 3-4: configuration #1 chosen from 1 choice
    Jul 19 15:18:23 ubuntu kernel: [ 1067.317452] usb 3-4: ep 0x84 - rounding interval to 16 microframes
    Jul 19 15:18:23 ubuntu kernel: [ 1067.317474] usb 3-4: ep 0x86 - rounding interval to 16 microframes
    Jul 19 15:18:23 ubuntu kernel: [ 1067.322065] xhci_hcd 0000:0f:00.0: WARN: short transfer on control ep
    Jul 19 15:18:23 ubuntu kernel: [ 1067.322343] option 3-4:1.0: GSM modem (1-port) converter detected
    Jul 19 15:18:23 ubuntu kernel: [ 1067.322473] usb 3-4: GSM modem (1-port) converter now attached to ttyUSB0
    Jul 19 15:18:23 ubuntu kernel: [ 1067.322628] option 3-4:1.1: GSM modem (1-port) converter detected
    Jul 19 15:18:23 ubuntu kernel: [ 1067.322737] usb 3-4: GSM modem (1-port) converter now attached to ttyUSB1
    Jul 19 15:18:23 ubuntu kernel: [ 1067.323007] scsi13 : SCSI emulation for USB Mass Storage devices
    Jul 19 15:18:23 ubuntu kernel: [ 1067.323280] option 3-4:1.3: GSM modem (1-port) converter detected
    Jul 19 15:18:23 ubuntu kernel: [ 1067.323401] usb 3-4: GSM modem (1-port) converter now attached to ttyUSB2
    Jul 19 15:18:23 ubuntu kernel: [ 1067.323575] option 3-4:1.4: GSM modem (1-port) converter detected
    Jul 19 15:18:23 ubuntu kernel: [ 1067.323703] usb 3-4: GSM modem (1-port) converter now attached to ttyUSB3
    Jul 19 15:18:28 ubuntu kernel: [ 1072.324203] scsi 13:0:0:0: Direct-Access ZTE MMC Storage 2.31 PQ: 0 ANSI: 2
    Jul 19 15:18:28 ubuntu kernel: [ 1072.324901] sd 13:0:0:0: Attached scsi generic sg2 type 0
    Jul 19 15:18:28 ubuntu kernel: [ 1072.326077] sd 13:0:0:0: [sdb] 7959552 512-byte logical blocks: (4.07 GB/3.79 GiB)
    Jul 19 15:18:28 ubuntu kernel: [ 1072.326679] sd 13:0:0:0: [sdb] Write Protect is off
    Jul 19 15:18:28 ubuntu kernel: [ 1072.328887] sdb: sdb1
    Jul 19 15:18:28 ubuntu kernel: [ 1072.332964] sd 13:0:0:0: [sdb] Attached SCSI removable disk

    Note that there are 4 USB devices USB0 - USB3, where all other reports have mentioned only USB0 - USB3.

    eg http://ubuntuforums.org/showthread.php?t=1477780

    I have purged switch mode from my system (I tried it, and it just left the original CD image mounted).


    I tried following the last step on the page http://en.ubucentrum.net/2009/12/how...-modem-in.html and created the /usr/share/hal/fdi/information/20thirdparty/20-zte-mf626.fdi file.

    this resulted in network-manager trying to scan the device, but
    /var/log/daemon reported:

    Jul 19 15:16:19 ubuntu modem-manager: (ttyUSB0) opening serial device...
    Jul 19 15:16:19 ubuntu modem-manager: (ttyUSB0): probe requested by plugin 'ZTE'
    Jul 19 15:16:19 ubuntu modem-manager: (ttyUSB2) opening serial device...
    Jul 19 15:16:19 ubuntu modem-manager: (ttyUSB2): probe requested by plugin 'ZTE'
    Jul 19 15:16:19 ubuntu modem-manager: (ttyUSB3) opening serial device...
    Jul 19 15:16:19 ubuntu modem-manager: (ttyUSB3): probe requested by plugin 'ZTE'
    Jul 19 15:16:19 ubuntu modem-manager: (ttyUSB1) opening serial device...
    Jul 19 15:16:19 ubuntu modem-manager: (ttyUSB1): probe requested by plugin 'ZTE'
    Jul 19 15:16:25 ubuntu modem-manager: Got failure code 100: Unknown error
    Jul 19 15:16:36 ubuntu modem-manager: last message repeated 5 times
    Jul 19 15:16:36 ubuntu modem-manager: (ttyUSB2) closing serial device...
    Jul 19 15:16:37 ubuntu modem-manager: (ttyUSB1) closing serial device...
    Jul 19 15:16:42 ubuntu modem-manager: (ttyUSB0) closing serial device...
    Jul 19 15:16:44 ubuntu modem-manager: (ttyUSB3) closing serial device...

    and debug.log said

    Jul 19 15:12:30 ubuntu modem-manager: (ttyUSB1): probe requested by plugin 'ZTE'
    Jul 19 15:12:30 ubuntu modem-manager: (ttyUSB3): probe requested by plugin 'ZTE'
    Jul 19 15:12:30 ubuntu modem-manager: (ttyUSB0): probe requested by plugin 'ZTE'
    Jul 19 15:12:30 ubuntu modem-manager: (ttyUSB2): probe requested by plugin 'ZTE'
    Jul 19 15:12:32 ubuntu modem-manager: Got failure code 100: Unknown error
    Jul 19 15:12:35 ubuntu kernel: [ 719.497996] usb-storage: device scan complete
    Jul 19 15:12:35 ubuntu kernel: [ 719.501865] sd 9:0:0:0: [sdb] Mode Sense: 0f 0e 00 00
    Jul 19 15:12:37 ubuntu modem-manager: Got failure code 100: Unknown error
    Jul 19 15:12:45 ubuntu modem-manager: last message repeated 5 times
    Jul 19 15:12:45 ubuntu modem-manager: Added modem /sys/devices/pci0000:00/0000:00:1c.6/0000:0f:00.0/usb3/3-4


    I suspect that I could probably use wvdial to make it work, but I'd really prefer not to have to delve into that.... any idea how I can make network manager detect this as a modem?

  2. #2
    Join Date
    Dec 2007
    Beans
    7

    Re: 10.04 network manager ZTE MF626i

    I gave wvdial a go, and had some success with the following conf file:

    [Dialer Defaults]
    Init1 = ATZ
    Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
    Init3 = AT+CGDCONT=1,"IP","telstra.internet"
    Username = username@bigpond.com
    Password = password
    Phone = *99#
    New PPPD = yes
    Modem Type = Analog Modem
    Stupid Mode = 1
    CarrierCheck = No
    Check DNS = 0
    Auto DNS = 1
    Dial Command = ATD
    Modem = /dev/ttyUSB1
    Baud = 9600


    running wvdial got:

    [506] wvdial
    --> WvDial: Internet dialer version 1.60
    --> Cannot get information for serial port.
    --> Initializing modem.
    --> Sending: ATZ
    ATZ
    OK
    --> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
    ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
    OK
    --> Sending: AT+CGDCONT=1,"IP","telstra.internet"
    AT+CGDCONT=1,"IP","telstra.internet"
    OK
    --> Modem initialized.
    --> Sending: ATD*99#
    --> Waiting for carrier.
    ATD*99#
    CONNECT 7200000
    --> Carrier detected. Starting PPP immediately.
    --> Starting pppd at Mon Jul 19 15:46:16 2010
    --> Pid of pppd: 3529
    --> Using interface ppp0
    --> pppd: 7f]
    --> pppd: 7f]
    --> pppd: 7f]
    --> pppd: 7f]
    --> pppd: 7f]
    --> Disconnecting at Mon Jul 19 15:46:47 2010
    --> The PPP daemon has died: A modem hung up the phone (exit code = 16)
    --> man pppd explains pppd error codes in more detail.
    --> Try again and look into /var/log/messages and the wvdial and pppd man pages for more information.
    --> Auto Reconnect will be attempted in 5 seconds
    --> Cannot get information for serial port.
    --> Initializing modem.
    --> Sending: ATZ
    --> Sending: ATQ0
    --> Re-Sending: ATZ
    --> Modem not responding.
    --> Cannot get information for serial port.
    --> Initializing modem.
    --> Sending: ATZ
    --> Sending: ATQ0
    --> Re-Sending: ATZ
    --> Modem not responding.
    --> Disconnecting at Mon Jul 19 15:47:09 2010


    Before the disconnect I was able to do ifconfig and saw:

    tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
    inet addr:10.10.0.38 P-t-P:10.10.0.37 Mask:255.255.255.255
    UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:100
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)


    So the modem looks like it is kind of working... probably an issue with the wvdial config I wrote.... all the more reason I want network-manager to detect and handle this for me.

  3. #3
    Join Date
    Oct 2009
    Location
    A world without windows
    Beans
    Hidden!

    Re: 10.04 network manager ZTE MF626i

    Hi

    does this help

    http://ubuntuforums.org/showthread.php?t=1529961

    also from the first listing / prior to the removal of usb modeswitch ? indecates the device is ready
    Jul 19 15:18:23 ubuntu kernel: [ 1067.322473] usb 3-4: GSM modem (1-port) converter now attached to ttyUSB0
    Jul 19 15:18:23 ubuntu kernel: [ 1067.322628] option 3-4:1.1: GSM modem (1-port) converter detected
    Jul 19 15:18:23 ubuntu kernel: [ 1067.322737] usb 3-4: GSM modem (1-port) converter now attached to ttyUSB1
    Jul 19 15:18:23 ubuntu kernel: [ 1067.323007] scsi13 : SCSI emulation for USB Mass Storage devices
    Jul 19 15:18:23 ubuntu kernel: [ 1067.323280] option 3-4:1.3: GSM modem (1-port) converter detected
    Jul 19 15:18:23 ubuntu kernel: [ 1067.323401] usb 3-4: GSM modem (1-port) converter now attached to ttyUSB2
    Jul 19 15:18:23 ubuntu kernel: [ 1067.323575] option 3-4:1.4: GSM modem (1-port) converter detected
    Jul 19 15:18:23 ubuntu kernel: [ 1067.323703] usb 3-4: GSM modem (1-port) converter now attached to ttyUSB3

    if NM does not pick the correct tttyUSB then opt for a method such as the wvdial , ppp you will have force the use of tty port IE in wvdial.conf : Modem = /dev/ttyUSB0 or other
    a standard ZTE device uses ttyUSB2

    or you could try Sakis3g


    regards

    alexfish
    Last edited by alexfish; July 19th, 2010 at 09:35 AM.
    Two tin cans are better than an iphone

    http://www.ehow.co.uk/how_2067160_ma...hone.html?cr=1

  4. #4
    Join Date
    Apr 2005
    Beans
    2,336

    Re: 10.04 network manager ZTE MF626i

    Hi Greg;

    in your first post, you say

    If I insert the device, the kernel correctly sees the first SCSI CD and ejects it, it then see the modem (and the micro SD card in the modem):
    and the printout you gave suggested to me your device was being seen as a modem, (ttyUSB0 etc) and could thus be configured as here

    .. I would have gone ahead and configured network manager from there . I suspect it would work fine

    ____--

    the thread you quote

    http://en.ubucentrum.net/2009/12/how...-modem-in.html

    talks of using usb_modeswitch: I don't think you need it if the system gives you the ttyUSB0 printouts ...

    did you install it? which version?

    ..... so I would suggest your extra steps (which you don't detail ..) are not helpful, or even causing the problem !!!!!!!!!
    Last edited by pdc; July 20th, 2010 at 01:57 AM.

  5. #5
    Join Date
    Dec 2007
    Beans
    7

    Re: 10.04 network manager ZTE MF626i

    PDC,

    the problem is that network manager does not see the modem, so it does not create a connection using it.

    I've had a little success with wvdial, but I think I'm still lacking the write wvdial.conf script. But then my preference is still to get network manager to work.

    Note that I installed modeswitch 1.1.3 and it works better, but is not really any difference to not having modeswitch at all, as the eject works fine.

    So in summary, I think the kernel has correctly seen the modem, but network manager is not using it.

  6. #6
    Join Date
    Apr 2005
    Beans
    2,336

    Re: 10.04 network manager ZTE MF626i

    Ok

    I have used wvdial for a ZTE MF636 modem; (successfully): I used a GeorgeVita recommended script, so used ttyUSB2

    the script I used was

    [Dialer Defaults]
    Modem = /dev/ttyUSB2
    Modem Type = Analog Modem
    ISDN = 0
    Baud = 460800
    Dial Attempts = 1
    Username =
    Password =
    Init1 = ATZ
    Init2 = AT&F &D2 &C1
    Init3 = ATS7=60 S30=0 S0=0
    Init4 = AT+CGDCONT=1,"IP","telstra.internet"
    Phone = *99#
    Stupid Mode = 1
    I have put the telstra.internet into the script, having changed that from my own provider

    these are only suggestions; I have included a screenshot that network manager uses: telstra don't seem to specify user and password, so I worry what you have is wrong;

    anyway, just a suggestion you try this script;

    I call it the usual way

    sudo wvdial
    if that doesn't work, we can suggest sakis3g

    I have appended what network manager thinks the telstra settings are
    Attached Images Attached Images

  7. #7
    Join Date
    Apr 2005
    Beans
    2,336

    Re: 10.04 network manager ZTE MF626i

    and your issues have nothing to do with this ??

    http://ubuntuforums.org/showthread.p...34#post9589034

    post #7

    Problem solved

    I got it working with NetworkManager by editing the Network Connection
    - changed the Telstra (Next G) APN from telstra.internet to telstra.bigpond
    - made sure that the bigpond user name & password was correct (i.e. user@bigpond.com)

    I got it working with sakis3g by selecting the Custom APN function
    - set APN to telstra.bigpond
    - set the correct bigpond user name & password

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •