Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

need help with O2 usb modem

  • 08-05-2008 1:26pm
    #1
    Closed Accounts Posts: 356 ✭✭


    Hi Guys,

    I'm running Hardy Heron on a t61p laptop. So far I have all my devices working fine with it except my 02 usb broadband dongle which I have been given from work.
    I have performed a few searches and found instructions for the 3 network http://www.boards.ie/vbulletin/showthread.php?t=2055283121
    and
    http://www.linux.ie/articles/tutorials/threeirelandUSBmodem.php

    Does anybody have a comprehensive set of instructions for getting this working under Ubuntu with the 02 modem.
    Like I say, I have tried hacking around with the instructions i mentioned there... but no avail... I would really appreciate any help you could offer. Im fairly new to ubuntu.

    Thanking you,

    agent_smith


Comments

  • Registered Users, Registered Users 2 Posts: 7,713 ✭✭✭corkie


    Follow the instructions on the 3g thread or on linux.ie.

    the only thing different is the vpn for O2 so change this line to the below:

    Init5 = AT+CGDCONT=1,"IP","open.internet"

    See here for more info: http://forum.vodafone.co.uk/index.php?showtopic=1690

    I know the above refer's to the eeepc but the procedure is the same under hardy.

    P.S. Turning off the pin protection on the sim will make things allot easier.


  • Closed Accounts Posts: 356 ✭✭agent_smith


    Hi,

    Just an update on this one.
    I followed the instructions for the three mobile (kerry-linux) pdf.
    Corkie I also took your advice. My O2.options reads:
    460800
    noipdefault
    defaultroute
    persist
    noauth
    updetach
    novj
    novjccomp
    nopcomp
    nodeflate
    holdoff 5
    


    and my O2.chat file reads :
    ABORT 	BUSY
    ABORT 	VOICE
    ABORT   "NO CARRIER"
    ABORT   "NO DIALTONE"
    ABORT   "NO DIAL TONE"
    ""      ATZ
    OK ATE0V1&D2&C1S0=0+IFC=2,2
    OK AT+CGDCONT=1,"IP","open.internet"
    OK ATDT*99#
    CONNECT "" 
    
    

    The modified kerry-linux O2 shellscript to kick off the modem :
    #!/bin/bash
    
    DEVICE=/dev/ttyUSB0
    
    echo "Dialling out using O2 USB Modem"
    
    if [[ ! -c /dev/ttyUSB0 ]]; then
        modprobe usbserial vendor=0x19d2 product=0x0001
        sleep 1
        ls -l /dev/ttyUSB0
    fi
    
    grep 159.134.237.6 /etc/resolv.conf 2> /dev/null 
    if [[ $? != 0 ]]; then
        echo "nameserver 159.134.237.6" >> /etc/resolv.conf
    fi 
    
    /usr/sbin/pppd file three.options connect '/usr/sbin/chat -v -f O2.chat ' $DEVICE
    
    

    When i run the O2.sh the modem turns to a continuous blue light and stops flashing (a good sign). I did not include the /etc/udev/rules.d/15-O2.rules as the kernel was already picking the device up as a serial GSM modem on ttyUSB0.

    The output from the console is :
    Serial connection established.
    Using interface ppp0
    Connect:ppp0 <--> /dev/ttyUSB0
    PAP authentication succeeded
    Could not determine remote IP address: defaulting to 10.64.64.64
    Cannot determine  ethernet address for proxy ARP
    local IP address 89.XX.XX.4
    remote IP address 10.64.XX.XX
    

    However I still cannot connect get any network traffic to the internet.
    Do you have any further suggestions.
    I really appreciate your help so far.

    Agent_smith.


  • Closed Accounts Posts: 356 ✭✭agent_smith


    I'm thinking i probably need to set dnsnameservers in resolve.conf ... anybody any idea what these should be set to for o2 ?


  • Closed Accounts Posts: 356 ✭✭agent_smith


    ok... fairly good guess... I found another post here ...
    http://www.linux.ie/articles/tutorials/threeirelandUSBmodem.php
    where another OP was suggested to try
    nameserver 172.31.140.69 
    nameserver 172.30.140.69
    
    in resolve.conf

    I have tried this but still have the same problem. Blue light stays on... so it is connecting. but the nameservers must have changed since that post or something....
    anybody....


  • Registered Users, Registered Users 2 Posts: 7,713 ✭✭✭corkie


    ok... fairly good guess... I found another post here ...
    http://www.linux.ie/articles/tutorials/threeirelandUSBmodem.php
    where another OP was suggested to try
    nameserver 172.31.140.69 
    nameserver 172.30.140.69
    
    in resolve.conf

    The name servers for O2 are:
    nameserver 62.40.32.33
    nameserver 62.40.32.34

    in a file stored "/etc/resolv.conf" drop the second e.
    your scripts for
    "/etc/ppp/peers/provider" and "/etc/chatscripts/pap"

    seem fine if that is where you have placed the scripts.
    Depending on your modem and hardware the modemprobe line may not be correct

    yours: modprobe usbserial vendor=0x19d2 product=0x0001
    mine: modprobe usbserial vendor=0x12d1 product=0x1003

    in a terminal type "lsusb" and should see a line like this:
    Bus 002 Device 005: ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem

    Just match up the vendor and product no's. I don't use scripting files so can not verify these for you. But if you able to get connect using the terminal.

    download and install a suitable ppp program/network manager's for your choise of desktop.

    J.


  • Advertisement
  • Closed Accounts Posts: 1,377 ✭✭✭An Fear Aniar


    corkie wrote: »

    download and install a suitable ppp program/network manager's for your choise of desktop.

    J.


    I'd recommend using Gnome-PPP, that's what worked for me.

    There's a download link at the bottom of this page.

    Because I didn't have interweb capability in my Ubuntu I downloaded it in Windows and stuck it on a memory stick. Then just double-clicked it in Ubuntu. Worked grand.


    .


  • Registered Users Posts: 7 driver8


    Hi,

    I have an elderly Dell desktop running Hardy Heron (Xubuntu 8.0.4.1) with a Huawei E220 USB modem. I can only get a 4-bar EDGE connection but have been promised full HSDPA (3G) in my area shortly.

    I attempted to follow the advice of corkie, agent_smith and others, but still have a problem.

    I created O2.options, O2.chat and O2.sh, following agent_smith's example. I followed corkie's advice regarding O2 nameservers (62.40.32.33 and 62.40.32.34) and vendor/product ids (0x12d1 and 0x1003).

    I run O2.sh using sudo, but get the message:

    Failed to open /dev/ttyUSB0: No such file or directory.

    However, ls -l /dev/ttyUSB0 gives
    crw-rw---- 1 root dialout 188, 0 yyyy-mm-dd HH:MI /dev/ttyUSB0

    In other words, the 'file' exists and is owned by root, so running O2.sh with sudo should work....

    Also, none of the posts I've seen mention entering the SIM card PIN, as I need to do under Windows XP if I am to connect - not sure if that's relevant.

    Any advice or help would be welcome :)


  • Registered Users, Registered Users 2 Posts: 7,713 ✭✭✭corkie


    As with most guides covering Linux on the internet, with the distro's been update every six months. Most of the scripts to get connected using 3g modems are out of date and should no longer be necessary.

    I'm running Ubuntu intrepid Ibex on an acer aspire one and the detection and connection is just a two click process. So i have forgotten how to get it set up with the above scripts.

    As i mentioned earlier, the key is to turn of the pin protection. (use your sim in a phone or by the dialler software in non Linux system)

    http://www.google.ie/search?q=huawei+e220+modem+ubuntu

    http://www.google.ie/search?q=ubuntu+wvdial+huawei

    The two search links above should get you on the right track.
    If not send me a P.M. and I will see what I can do for you.

    If you cannot disable the pin, it is possible to pass the pin as Init string in wvdial.conf.
    try reading the above links in the above search's

    Regards,
    John


  • Closed Accounts Posts: 1,377 ✭✭✭An Fear Aniar


    You all seem to be making it too complicated. I got a 3 Ireland USB E220 rigged up on my brother's laptop in about 2 minutes (Ubuntu 8.04).

    Jusr get the deb package for Gnome-PPP, install it via USB if you don't have teh internets.

    Then
    sudo wvdialconf
    

    This will find the modem on dev/ttyUSB0

    Then open up Gnome-PPP, put in:

    username: (can be anything as long as it's not blank)
    password: (can be anything as long as it's not blank)

    Phone number: for 3 Ireland *99#. for O2 prolly different, easy to find on Google.

    Dynamic IP and Automatic DNS.

    APN = 3ireland (or open.internet for o2)

    Make sure stupid mode is on, no wait for dialtone.


    There's not much more to it than that on a modern machine using Ubuntu 8.04.

    Don't over-complicate it.

    .


  • Registered Users Posts: 7 driver8


    I'm very grateful to 'corkie' and 'An Fear Aniar' for their advice. Don't worry, I'm all for keeping things simple smile.gif

    I disabled PIN protection for the SIM - I'll look into adding it back in later by editing init strings - thanks for the tip, corkie.

    I installed Gnome-PPP and ran wvdialconf. It recognised the modem and all looked well.

    I launched Gnome-PPP and edited the settings in line with An Fear Aniar's advice.

    I hit the connect button but the connection hung there for several minutes.

    I let Gnome-PPP autoconfigure the modem and tried again, but the same thing happened. Interestingly, Gnome-PPP sees the modem as a serial, not USB device.

    Here is the connection log. It seems to be waiting for the password, but I had already entered a dummy string in a Gnome-PPP textbox.
    --> Ignoring malformed input line: ";Do NOT edit this file by hand!"
    --> WvDial: Internet dialer version 1.60
    --> Cannot get information for serial port.
    --> Initializing modem.
    --> Sending: ATX3
    ATX3
    OK
    --> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
    ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
    OK
    --> Modem initialized.
    --> Please enter password (or empty password to stop):

    Again, any advice would be welcome.


  • Advertisement
  • Closed Accounts Posts: 1,377 ✭✭✭An Fear Aniar


    Sorry, I didn't go into it in full detail there...

    See the settings I had here:

    http://www.boards.ie/vbulletin/showpost.php?p=57152260&postcount=6

    If it's O2, the phone number may be different... on the first screen, put "gprs" for username and passsword..

    The phone number to use is *99#

    The domain name (APN) will be either "internet" or "open.internet", try either one.

    according to this:

    http://www.barryodonovan.com/index.php/2007/05/10/o2-xda-modem

    Just keep tweaking Gnome-PPP and you'll get there.

    Another thing, make sure the dongle is attached before you boot up your computer - this will enable Ubuntu to load the module needed.

    Sorry for not being more specific.

    A lot of those hacks you were using were needed for earlier releases of Ubuntu, not needed now. In Intrepid Ibex, they will be just plug'n play.



    .


Advertisement