Page 3 of 3 FirstFirst 123
Results 21 to 25 of 25

Thread: Help PLZ!!! Ubuntu 10.04 broadband connection!!!

  1. #21
    Join Date
    Dec 2008
    Location
    43° 7' 41" 131° 54' 3"
    Beans
    Hidden!

    Re: Help PLZ!!! Ubuntu 10.04 broadband connection!!!

    Easy Peasy.....still with the problems?
    EasyBCD.
    PrintersDatabase
    Boot Info Script: How to
    The post above and the post below suffer from the Rashomon effect!

  2. #22
    Join Date
    Jun 2011
    Beans
    2

    Arrow Re: Help PLZ!!! Ubuntu 10.04 broadband connection!!!

    Okay, as promised before, here is the step-by-step guide for your Inwi's Huawei EC122 USB modem.

    1. Install ppp, setserial, wvdial, and usb-modeswitch packages

    a. Go to any cafe with free wifi connection and write down these commands on your Ubuntu terminal:

    Code:
    ~$ sudo apt-get install ppp setserial wvdial usb-modeswitch
    b. Alternative way is to download the .deb packages using your Windows and save them to a USB storage stick. Download them here (choose the nearest mirror to download):

    Once you've download them, open them from inside of your Ubuntu and install them (simply by double clicking on each deb package), or you can use the dpkg -install command.

    2. Plug in Inwi's Huawei EC122 USB Modem

    3. Type in the terminal

    Code:
    ~$ lsusb
    Bus 002 Device 004: ID 12d1:1446 Huawei Technologies Co., Ltd.
    Bus 002 Device 003: ID 1bcf:0007 Sunplus Innovation Technology Inc.
    Bus 002 Device 002: ID 8087:0020
    Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 001 Device 004: ID 0461:4db6 Primax Electronics, Ltd
    Bus 001 Device 003: ID 03f0:231d Hewlett-Packard
    Bus 001 Device 002: ID 8087:0020
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

    That's an example of my lsusb. Here we get vendor id (12d1) and product id (1446) of Huawei EC122 modem. However product id as 1446 means that the modem acts as a storage device rather than as a modem.

    4. Another command

    Code:
    ~$ sudo nano /etc/usb_modeswitch.conf
    By the end of the config file, add the following lines:

    # Huawei EC122
    …..
    DefaultVendor= 0x12d1
    DefaultProduct= 0x1446
    ……
    TargetVendor= 0x12d1
    TargetProduct= 0x1001
    ……
    MessageContent="5553424312345678000000000000001106 0000000000000000000000000000"
    Save the change (Ctrl-O > Enter > Ctrl-X)

    5. These commands will do the trick for your Huawei modem (option -H stands for Huawei)

    Code:
    ~$ sudo usb_modeswitch -H -c /etc/usb_modeswitch.conf
    If succesfull, you will get some messages like these:

    Looking for target devices ...
    No devices in target mode or class found
    Looking for default devices ...
    Found devices in default mode or class (1)
    Accessing device 004 on bus 002 ...
    Using endpoints 0x08 (out) and 0x87 (in)
    Using endpoints 0x08 (out) and 0x87 (in)
    Inquiring device details; driver will be detached ...
    Looking for active driver ...
    OK, driver found ("usb-storage")
    OK, driver "usb-storage" detached

    SCSI inquiry data (for identification)
    -------------------------
    Vendor String: HUAWEI
    Model String: Mass Storage
    Revision String: 2.31
    -------------------------

    USB description data (for identification)
    -------------------------
    Manufacturer: HUA�WEI TECHNOLOGIES
    Product: HUAWEI Mobile
    Serial No.: �������������������
    -------------------------
    Setting up communication with interface 0 ...
    Using endpoint 0x08 for message sending ...
    Trying to send message 1 to endpoint 0x08 ...
    OK, message successfully sent
    Resetting response endpoint 0x87
    Resetting message endpoint 0x08
    Error resetting endpoint: -32
    -> Run lsusb to note any changes. Bye.
    6. Confirm whether product id changed from 1446 to 1001:

    Code:
    ~$ lsusb
    Bus 002 Device 005: ID 12d1:1001 Huawei Technologies Co., Ltd. E620 USB Modem
    Bus 002 Device 003: ID 1bcf:0007 Sunplus Innovation Technology Inc.
    Bus 002 Device 002: ID 8087:0020
    Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 001 Device 004: ID 0461:4db6 Primax Electronics, Ltd
    Bus 001 Device 003: ID 03f0:231d Hewlett-Packard
    Bus 001 Device 002: ID 8087:0020
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Note: if the product id is not changed, then unplug the Huawei EC122 device and re-plug it and execute the command again.

    7.
    Code:
    ~$ sudo modprobe usbserial vendor=0x12d1 product=0x1001
    8.
    Code:
    ~$ sudo wvdialconf
    9. Now you have to edit the content of wvdial config file:

    Code:
    ~$ sudo nano /etc/wvdial.conf
    Insert these lines on the config file:

    [Dialer HDM]
    Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
    Modem Type = Analog Modem
    Phone = #777
    ISDN = 0
    Username = wana
    Init1 = ATZ
    Password = wana
    Modem = /dev/ttyUSB0
    Baud = 9600
    Save the changes (Ctrl-O > Enter > Ctrl-X)

    10. Ready to connect?

    Code:
    ~$ sudo wvdial HDM
    Done. You'll be connected now.
    To disconnect the Modem, just press inside the terminal Ctrl+C


  3. #23
    Join Date
    May 2011
    Location
    #/bin/sh
    Beans
    193

    Angry Re: Help PLZ!!! Ubuntu 10.04 broadband connection!!!

    Dial-up, mobile broadband, and 'Speed Touch' type modems never work with Ubuntu, use Windows, or get a Wi-Fi network.
    Too many cooks don't spoil the broth with Linux, and Ubuntu is the best broth!

    Mint-Ireland, Ubuntu-UK, SUSE-Germany, Fedora-USA, ROSA-From Russia, with Love!

  4. #24
    Join Date
    Dec 2008
    Location
    43° 7' 41" 131° 54' 3"
    Beans
    Hidden!

    Re: Help PLZ!!! Ubuntu 10.04 broadband connection!!!

    Quote Originally Posted by Robert Moyse View Post
    Dial-up, mobile broadband, and 'Speed Touch' type modems never work with Ubuntu, use Windows, or get a Wi-Fi network.
    You don't have the slightest clue about Linux....do you?
    EasyBCD.
    PrintersDatabase
    Boot Info Script: How to
    The post above and the post below suffer from the Rashomon effect!

  5. #25
    Join Date
    May 2011
    Beans
    10

    Re: Help PLZ!!! Ubuntu 10.04 broadband connection!!!

    Quote Originally Posted by moersalin View Post
    Okay, as promised before, here is the step-by-step guide for your Inwi's Huawei EC122 USB modem.

    1. Install ppp, setserial, wvdial, and usb-modeswitch packages

    a. Go to any cafe with free wifi connection and write down these commands on your Ubuntu terminal:

    Code:
    ~$ sudo apt-get install ppp setserial wvdial usb-modeswitch
    b. Alternative way is to download the .deb packages using your Windows and save them to a USB storage stick. Download them here (choose the nearest mirror to download):



    Once you've download them, open them from inside of your Ubuntu and install them (simply by double clicking on each deb package), or you can use the dpkg -install command.

    2. Plug in Inwi's Huawei EC122 USB Modem

    3. Type in the terminal

    Code:
    ~$ lsusb
    Bus 002 Device 004: ID 12d1:1446 Huawei Technologies Co., Ltd.
    Bus 002 Device 003: ID 1bcf:0007 Sunplus Innovation Technology Inc.
    Bus 002 Device 002: ID 8087:0020
    Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 001 Device 004: ID 0461:4db6 Primax Electronics, Ltd
    Bus 001 Device 003: ID 03f0:231d Hewlett-Packard
    Bus 001 Device 002: ID 8087:0020
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

    That's an example of my lsusb. Here we get vendor id (12d1) and product id (1446) of Huawei EC122 modem. However product id as 1446 means that the modem acts as a storage device rather than as a modem.

    4. Another command

    Code:
    ~$ sudo nano /etc/usb_modeswitch.conf
    By the end of the config file, add the following lines:



    Save the change (Ctrl-O > Enter > Ctrl-X)

    5. These commands will do the trick for your Huawei modem (option -H stands for Huawei)

    Code:
    ~$ sudo usb_modeswitch -H -c /etc/usb_modeswitch.conf
    If succesfull, you will get some messages like these:



    6. Confirm whether product id changed from 1446 to 1001:

    Code:
    ~$ lsusb
    Note: if the product id is not changed, then unplug the Huawei EC122 device and re-plug it and execute the command again.

    7.
    Code:
    ~$ sudo modprobe usbserial vendor=0x12d1 product=0x1001
    8.
    Code:
    ~$ sudo wvdialconf
    9. Now you have to edit the content of wvdial config file:

    Code:
    ~$ sudo nano /etc/wvdial.conf
    Insert these lines on the config file:



    Save the changes (Ctrl-O > Enter > Ctrl-X)

    10. Ready to connect?

    Code:
    ~$ sudo wvdial HDM
    Done. You'll be connected now.
    To disconnect the Modem, just press inside the terminal Ctrl+C

    But it still says

    --> Carrier detected. Waiting for prompt.
    --> Connected, but carrier signal lost! Retrying...
    everytime with huawei ec122 modem

Page 3 of 3 FirstFirst 123

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
  •