Page 1 of 12 12311 ... LastLast
Results 1 to 10 of 119

Thread: Howto: Connect ZTE MF627 3G modem with NM0.7

  1. #1
    Join Date
    Aug 2006
    Location
    Just call me JF
    Beans
    1,052
    Distro
    Ubuntu Development Release

    Howto: Connect ZTE MF627 3G modem with NM0.7

    Updated
    With Jaunty this is now not necessary and there is an easier way around. First, install udev-extras:

    $ sudo aptitude install udev-extras

    Depending on if/when my patch* gets accepted you will likely need to add information about the modem to the HAL infomation:

    $ sudo cp /usr/share/hal/fdi/information/10freedesktop/10-modem.fdi /etc/hal/fdi/information/
    $ gksudo gedit /etc/hal/fdi/information/10-modem.fdi

    Add the following:
    Code:
            <!-- ZTE MF627 HSDPA USB dongle -->
            <match key="@info.parent:usb.product_id" int="0x0031">
              <match key="@info.parent:usb.interface.number" int="3">
                <append key="modem.command_sets" type="strlist">GSM-07.07</append>
                <append key="modem.command_sets" type="strlist">GSM-07.05</append>
              </match>
            </match>
    and save the file.

    Now plug in your modem. It should mount as the ZeroCD device (1). Now right-click the icon on the desktop and eject. Wait a moment, and the light on the modem will go dark, then relight red then green. It should now mount as a modem and be detected by Network Manager (2).

    A note should be made about udev-extras, though:
    This package contains additional rules and add-ons for udev that are not yet mature enough for the base udev package. Many of these are intended for use with DeviceKit, replacing parts of HAL.
    YMMV.

    1)lsusb:
    Code:
    ID 19d2:2000 ONDA Communication S.p.A.
    2)lsusb:
    Code:
    ID 19d2:0031 ONDA Communication S.p.A.
    *
    https://bugs.launchpad.net/ubuntu/+s...fo/+bug/407679
    ########

    I recently bought a 3G mobile broadband modem and then realised I'd bought the wrong model - instead of getting a Huawei E160 or E169 that reportedly work OOTB with Intrepid I got a ZTE MF627 for which no information exists. On the plus side, it has a built-in MicroSD reader...

    I initially submitted a bug report here. Since then, however, I have got it working and so here is a how-to. I hope someone else finds this useful.

    1) Download and install usb_modeswitch

    Go here and download the deb file. A direct link is here. Then install it.

    This provides a way of switching the USB modem from its initial useless mode to its correct, functional modes. It will need configuring to apply to the modem.

    2) Edit /etc/usb_modeswitch.conf to apply to the MF628+

    Either comment the first modem configuration out, then find and uncomment the section for the MF628+, or (more easily) replace the content of the file with:

    Code:
    ########################################################
    # ZTE MF628+ (tested version from Telia / Sweden)
    #
    # Contributor: Joakim Wennergren
    #
    # Also applies to MF627 (Tested 3 UK) JF
    
    DefaultVendor=  0x19d2
    DefaultProduct= 0x2000
    
    TargetVendor=   0x19d2
    TargetProduct=  0x0031
    
    MessageEndpoint=0x01
    MessageContent="55534243123456782000000080000c85010101180101010101000000000000"
    Save it.

    3) Create a udev rule to automatically run usb_modeswitch when the modem is plugged in

    Create a new file called 999-zte-rules:
    gksudo gedit /etc/udev/rules.d/999-zte.rules

    Its content should be as follows:
    Code:
    SUBSYSTEM=="usb", SYSFS{idProduct}=="2000", SYSFS{idVendor}=="19d2", RUN+="/usr/sbin/usb_modeswitch"
    This will trigger usb_modeswitch every time you plug in the modem. Which is useful if you want it to work automatically. You can of course run it manually if you want.

    4) Add device information to HAL so network-manager recognises the device as a modem

    Finally, in order for Network Manager to recognise the modem information has to be added to HAL.

    Create a new file:
    gksudo gedit /usr/share/hal/fdi/information/20thirdparty/20-zte-mf627.fdi

    Its content should be as follows:
    Code:
    <!-- -*- SGML -*- -->
    <deviceinfo version="0.2">
      <device>
          <!-- ZTE MF627 HSDPA USB dongle -->
          <match key="@info.parent:usb.vendor_id" int="0x19d2">
            <match key="@info.parent:usb.product_id" int="0x0031">
              <match key="@info.parent:usb.interface.number" int="3">
                <append key="modem.command_sets" type="strlist">GSM-07.07</append>
                <append key="modem.command_sets" type="strlist">GSM-07.05</append>
                <append key="info.capabilities" type="strlist">modem</append>
              </match>
            </match>
          </match>
      </device>
    </deviceinfo>
    Save it.

    5) Plug in the modem
    Make sure the SIM card is in the modem (and if you're using 3 UK make sure you're in a 3G area. otherwise it won't work) and plug it into your PC.

    After a little while (several seconds) the LED should light red as it powers up, then switch to blue when it finds a network. You can check it's working by checking dmesg. Once modeswitch has been triggered and the modem reboots you will be presented with the ZeroCD device (e.g. containing the 3connect software), a USB MicroSD card reader, and if everything has gone correctly, Network Manager will detect a new mobile broadband modem.

    Feel free to ignore the ZeroCD device and unmount it from the desktop.

    If everything has gone correctly dmesg should read something like:
    Code:
    [52189.029694] usb 5-1: new high speed USB device using ehci_hcd and address 32
    [52189.177064] usb 5-1: configuration #1 chosen from 1 choice
    [52189.192061] usb-storage: device ignored
    [52194.546308] usb 5-1: USB disconnect, address 32
    [52200.032140] usb 5-1: new high speed USB device using ehci_hcd and address 33
    [52200.183440] usb 5-1: configuration #1 chosen from 1 choice
    [52200.184979] option 5-1:1.0: GSM modem (1-port) converter detected
    [52200.185184] usb 5-1: GSM modem (1-port) converter now attached to ttyUSB0
    [52200.185453] option 5-1:1.1: GSM modem (1-port) converter detected
    [52200.185592] usb 5-1: GSM modem (1-port) converter now attached to ttyUSB1
    [52200.200858] scsi28 : SCSI emulation for USB Mass Storage devices
    [52200.204904] usb-storage: device found at 33
    [52200.204909] usb-storage: waiting for device to settle before scanning
    [52200.205113] option 5-1:1.3: GSM modem (1-port) converter detected
    [52200.205304] usb 5-1: GSM modem (1-port) converter now attached to ttyUSB2
    [52205.205580] usb-storage: device scan complete
    [52205.207696] scsi 28:0:0:0: Direct-Access     ZTE      MMC Storage      2.31 PQ: 0 ANSI: 2
    [52205.210603] scsi 28:0:0:1: CD-ROM            ZTE      USB SCSI CD-ROM  2.31 PQ: 0 ANSI: 2
    [52205.226669] sd 28:0:0:0: [sdb] Attached SCSI removable disk
    [52205.228914] sd 28:0:0:0: Attached scsi generic sg2 type 0
    [52205.345654] sr1: scsi-1 drive
    [52205.345837] sr 28:0:0:1: Attached scsi CD-ROM sr1
    [52205.346023] sr 28:0:0:1: Attached scsi generic sg3 type 5
    [52218.692468] ISO 9660 Extensions: Microsoft Joliet Level 1
    [52218.699732] ISOFS: changing to secondary root
    References:
    http://www.draisberghof.de/usb_modeswitch/
    http://blog.ufsoft.org/2007/11/30/zt...em-under-linux
    https://bugs.launchpad.net/ubuntu/+s...al/+bug/267727
    https://bugs.launchpad.net/ubuntu/+s...er/+bug/259028
    https://answers.launchpad.net/ubuntu...question/48520
    Probably some others I've forgotten.
    Last edited by jfernyhough; August 1st, 2009 at 02:57 PM. Reason: Added 10-modem.fdi changes
    1) Dell Studio 1749: i5 540 (2.5GHz), 8GB, ATi 5650, Intel 5300AGN XFCE@Manjaro-x64
    2) Lenovo X61: C2D T7200, 2GB, Intel HDA, iwlwifi, XFCE@Manjaro-x64
    3) Compaq Mini 311c: Atom N270 (OC@2.0GHz), 3GB, Nvidia ION, Broadcom G+BT XFCE@13.10x32

  2. #2

    Re: Howto: Connect ZTE MF627 3G modem with NM0.7

    Thank you for an excellent description. However, to get the Network Manager to recognise the modem, as a last step I have to call insmod, everytime i plug in the modem. I use the command:
    Code:
    insmod /lib/modules/2.6.27-9-generic/kernel/drivers/usb/serial/
    usbserial.ko vendor=0x19d2 product=0x0031
    Any idea why?

  3. #3
    Join Date
    Dec 2008
    Beans
    1

    Question Re: Howto: Connect ZTE MF627 3G modem with NM0.7

    New to ubuntu followed the instructions but the modem is not recognized. I cannot understand the last reply the part of the path "2.6.27-9-generic" does not exist!

  4. #4
    Join Date
    Mar 2009
    Beans
    1

    Re: Howto: Connect ZTE MF627 3G modem with NM0.7

    Thanks, I finally got it to work!

    I changed one thing though:

    In step 4 when we created the file I renamed it,

    from
    gksudo gedit /usr/share/hal/fdi/information/20thirdparty/20-zte-mf627.fdi

    to
    gksudo gedit /usr/share/hal/fdi/information/20thirdparty/20-zte-mf628+.fdi

    I thought it would maker more sense and then everything justed worked!

    Thanks!

  5. #5
    Join Date
    Mar 2009
    Beans
    4

    Re: Howto: Connect ZTE MF627 3G modem with NM0.7

    Thanks. Those instructions worked a treat and it was up and running in a couple of minutes.

    The ppp process binds to ttyUSB2. Is there any way you know of to get the signal strength, possibly from one of the other ttys?

  6. #6
    Join Date
    Jun 2007
    Beans
    4

    Re: Howto: Connect ZTE MF627 3G modem with NM0.7

    Thanks. The australian three supplies a mf627 modem with product id 0064 instead of 0031. I changed all references to product id 0031 to 0064 in the suggestions and it worked. Except that there was one problem - NM0.7 does not recognise it until I changed the line
    Code:
              <match key="@info.parent:usb.interface.number" int="3">
    to
    Code:
              <match key="@info.parent:usb.interface.number" int="2">
    in the fdi file.

  7. #7
    Join Date
    Jan 2009
    Beans
    18

    Re: Howto: Connect ZTE MF627 3G modem with NM0.7

    Hello Everyone!

    I have exactly the same modem (ZTE627) working through 3 (australia) and even though every thing is very well explained in this thread, because I'm very new Ubuntu user (have a 8.10 version) I simply can't follow up the instructions.

    Any one with patience to lead me through a very basic and (even more) detailed 'how to' to set my modem?

    Thank you!!

  8. #8
    Join Date
    Jun 2007
    Beans
    4

    Re: Howto: Connect ZTE MF627 3G modem with NM0.7

    See if I can explain how I got my Austrlian version MF627 USB key working on my 2 laptops (dell and hp) with ubuntu 8.10.

    Firstly you should have got the usb_modeswitch in http://www.draisberghof.de/usb_modeswitch/#download as mentioned in previous post.

    Then backup your /etc/usb_modeswitch.conf somewhere - your home directory as an example.

    Now replace your /etc/usb_modeswitch.conf with the following content:

    Code:
    ########################################################
    # ZTE MF628+ (tested version from Telia / Sweden) 
    # ZTE MF626 
    # 
    # Contributor: Joakim Wennergren
    
    DefaultVendor=  0x19d2
    DefaultProduct= 0x2000
    
    TargetVendor=   0x19d2
    TargetProduct=  0x0064
    
    MessageEndpoint=0x01
    MessageContent="55534243123456782000000080000c85010101180101010101000000000000"
    Now create a file /etc/udev/rules.d/999-zte.rules with the following content:
    Code:
    SUBSYSTEM=="usb", SYSFS{idProduct}=="2000", SYSFS{idVendor}=="19d2", RUN +="/usr/sbin/usb_modeswitch"
    SUBSYSTEM=="usb", SYSFS{idProduct}=="0064", SYSFS{idVendor}=="19d2", RUN +="/sbin/modprobe usbserial vendor=0x19d2 product=0x0064"
    For the above file there were a couple of typo - please check my follow up post.

    Then create a file /usr/share/hal/fdi/information/20thirdparty/20-zte-mf627.fdi with the following content:

    Code:
    <!-- -*- SGML -*- -->
    <deviceinfo version="0.2">
    <device>
    <!-- ZTE MF627 HSDPA USB dongle -->
    <match key="@info.parent:usb.vendor_id" int="0x19d2">
    <match key="@info.parent:usb.product_id" int="0x0064">
    <match key="@info.parent:usb.interface.number" int="2">
    <append key="modem.command_sets" type="strlist">GSM-07.07</append>
    <append key="modem.command_sets" type="strlist">GSM-07.05</append>
    <append key="info.capabilities" type="strlist">modem</append>
    </match>
    </match>
    </match>
    </device>
    </deviceinfo>
    Plug in your USB modem now. Around 5 to 10 seconds later "do lsusb" to check the output. There should be a line with some entry like "ID 19d2:0064" after around 5 to 10 seconds. This means that your udev rules together with usb_modeswitch is working.

    Do a ls -l /dev/ttyUSB0 and ls -l /dev/ttyUSB1. You should see those entries.

    By this time if you are alreday logged in to gnome you may see network manager prompt you on entering mobile broadbank setup for the detected modem.
    Last edited by CCK; April 9th, 2009 at 07:04 AM.

  9. #9
    Join Date
    Nov 2008
    Location
    South West WA
    Beans
    14
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Howto: Connect ZTE MF627 3G modem with NM0.7

    Hi,

    I have done everything here and still nothing is working. I manage to get it to switch from 2000 to 0064 [I am in Australia so am trying that one - the 0031 didn't work when I tried it], but it is not getting recognised as a modem in network manager or anywhere. Has anyone got any ideas as to where in the problems lies?

    Thanks

  10. #10
    Join Date
    Jun 2007
    Beans
    4

    Thumbs down Re: Howto: Connect ZTE MF627 3G modem with NM0.7

    Hi mediumhouse,

    Can you try the following udev rules file instead:

    Code:
    SUBSYSTEM=="usb", SYSFS{idVendor}=="19d2", SYSFS{idProduct}=="2000", RUN+="/usr/sbin/usb_modeswitch"
    SUBSYSTEM=="usb", SYSFS{idVendor}=="19d2", SYSFS{idProduct}=="0064", RUN+="/sbin/modprobe usbserial vendor=0x19d2 product=0x0064"
    Looks like I put a "space" after RUN in the post. I do not have the space between RUN and +.

    If it works you should see /dev/ttyUSB0 and /dev/ttyUSB1 created.

Page 1 of 12 12311 ... LastLast

Tags for this Thread

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
  •