Facebook   Twitter    e-mail newsletter    YouTube    RSS Feed    Android App    iPhone and iPad App     BlackBerry App    


Results 1 to 13 of 13

Thread: anyone can help me setup wvdial

  1. #1

    Default anyone can help me setup wvdial

    hi fellow linux

    I new to linux <still learning>
    I am currently using slackware 13.1 32bit
    and i have been all over the forum
    looking for solution to how to connect the cellc 3g card

    i currently have wvdial as it was the only software
    available after searching internet for connection manager

    I even installed wine hoping that i could run the windows
    network manager to only find out that the is some
    DLL netsomthing.dll missing

    any help will be welcomed

    I on slackware cuz i want to learn how to develop software

  2. #2

    Default

    First off you need to leave the mxit speak out...
    It just makes it a lot more difficult trying to understand where you at and
    what exactly you trying to do!

    Trying to connect using wvdial and a 3g modem on linux will typically involve 2 or 3 files:

    1) Script file that powers up/down the modem
    2) /etc/network/interfaces where network interfaces are defined
    3) /etc/wvdial.conf where you setup dial rules

    Here is a snippet of wvdial.conf:


    [Dialer 3G]
    Modem = /dev/ttyACM1
    Init1 = AT+CGDCONT=1,"IP","internet"
    Stupid mode = 1
    phone = *99#
    username =;
    password =;

    You need to define the device where your modem can be reached in linux
    as well as APN settings and user/pass on that apn.

    In the /etc/network/interfaces file you may define a 3g interface:


    # 3G interface - ppp
    iface 3g inet wvdial
    pre-up . /usr/local/etc/F3507g; ifup F3507g; python /opt/ServiceAssure/F3507g.py ppp
    provider 3G

    Note the pre-up script calls to turn on the modem in this case an F3507g ericcson modem.
    provider 3g is the dialer config within the wvdial.conf file.

    And now you can connect with the command "ifup 3g" and similarly calling "ifdown 3g"
    will stop the connection.

  3. #3

    Default

    @udiS3 thz for the reply

    1) Script file that powers up/down the modem
    2) /etc/network/interfaces where network interfaces are defined
    3) /etc/wvdial.conf where you setup dial rules


    do i need to code 1) or are the scripts on the net i can grab?

    2) is this done with through pppd?

    3) APN settings and user/pass on that apn? do i need to call cellc to get hold of this settings?

  4. #4

    Default

    Nolo,

    1) Here you want to talk to the modem on it's control channel and power it up and optionally
    unlock the sim for use. This is done by using commands from the modem's AT command set.
    Most commands will work with most modems! But there are variations between modems so it
    would be wise to find the AT command set for the modem you are using.

    Try to find a script that someone has written already for your modem would make life much easier
    for you!

    However you could just as well modify an existing script to make it compatible with your modem. An
    easy way to check commands is to run them using the linux chat command...

    As an example here is a snippet of my script file (F3507g):

    CONTROL_DEVICE="/dev/ttyACM1"
    PIN="0000"
    APN="internet"


    bringupsim() {
    if [ -c "/dev/sim" ]
    then
    echo "sim device exists"
    else
    echo "creating sim"
    mknod /dev/sim c 251 1
    echo O > /dev/sim
    fi
    }

    powerup_F3507g () {
    echo -n "Powering up F3507g card.."
    while [ ! -c $CONTROL_DEVICE ]; do sleep 0.5; echo -n "."; done
    echo "done"
    echo -n "Turning on F3507g card..."
    sleep 3
    echo "bringing up sim"
    bringupsim
    sleep 3
    echo "bringing up modem with SIM active"
    /usr/sbin/chat -v "" "AT+CFUN=1,1" "+PACSP1" > $CONTROL_DEVICE < $CONTROL_DEVICE
    sleep 12
    /usr/sbin/chat -v "" "AT+CPIN?" "SIM PIN" "AT" "OK" "AT+CPIN=\"$PIN\"" "OK" > $CONTROL_DEVICE < $CONTROL_DEVICE
    sleep 6
    /usr/sbin/chat -v "+PACSP1" > $CONTROL_DEVICE < $CONTROL_DEVICE
    echo "done"
    }

    powerdown_F3507g () {
    echo -n "Turning off F3507g card..."
    /usr/sbin/chat -v "" "AT+CFUN=4" "OK" > $CONTROL_DEVICE < $CONTROL_DEVICE
    echo "done"
    }

    You can test the chat commands to see if they work individually!


    2) This is a text file on your machine that defines the system network interfaces.


    3) For Vodacom/mtn the settings are:
    apn: internet
    username and password blank or guest.
    I assume Cell C would be the same?
    http://www.flexispy.com/Mobile%20APN...use%20GPRS.htm
    Last edited by @udiS3; 10-08-2011 at 01:24 PM.

  5. #5

    Default

    @udiS3

    I got hold of usb_switch from this site http://www.draisberghof.de/usb_modeswitch/#intro
    the are few people who are using the same modem in other countries so will be using their settings....
    i will google number two and see how far i can get to have internet on slackware

  6. #6

    Default

    @udiS3

    usb_switch works and the settings for wvdial work what i need now is to setup network interface

  7. #7

    Default

    Quote Originally Posted by nolo View Post
    @udiS3

    usb_switch works and the settings for wvdial work what i need now is to setup network interface
    Awesome! Go ahead and edit the /etc/network/interfaces file with any text editor...
    As an example:

    # 3G interface - ppp
    iface 3g inet wvdial
    pre-up . /usr/local/etc/F3507g; ifup F3507g;
    provider 3G

    The first line states that the interface is managed by wvdial and the last line specifies that
    the 3G dialer from wvdial.conf should be used.

  8. #8

    Default

    /etc/network/ does not exist in my slackware 13.1
    /etc/rc.d/ seems to be the file that exist when i google the internet
    for /etc/network

  9. #9

    Default

    This is what happens when i run wvdial
    since i did not do step 2

    root@darkstar:~# wvdial option 3g

    --> WvDial: Internet dialer version 1.61
    --> 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
    --> Modem initialized.
    --> Idle Seconds = 300, disabling automatic reconnect.
    --> Sending: ATDT*99#
    --> Waiting for carrier. ATDT*99# CONNECT 7200000
    --> Carrier detected. Starting PPP immediately.
    --> Starting pppd at Thu Aug 11 14:38:57 2011
    --> Pid of pppd: 2208
    --> Using interface ppp0
    --> pppd: PPw· [06][08]*[06][08]
    --> pppd: PPw· [06][08]*[06][08]
    --> pppd: PPw· [06][08]*[06][08]
    --> pppd: PPw· [06][08]*[06][08]
    --> pppd: PPw· [06][08]*[06][08]
    --> Disconnecting at Thu Aug 11 14:39:28 2011
    --> 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.

    root@darkstar:~# tail /var/log/messages

    Aug 11 14:38:03 darkstar kernel: scsi 5:0:0:0: Direct-Access ZTE MMC Storage 2.31 PQ: 0 ANSI: 2
    Aug 11 14:38:03 darkstar kernel: sd 5:0:0:0: Attached scsi generic sg2 type 0
    Aug 11 14:38:03 darkstar kernel: sd 5:0:0:0: [sdb] Attached SCSI removable disk
    Aug 11 14:38:57 darkstar kernel: PPP generic driver version 2.4.2
    Aug 11 14:38:57 darkstar pppd[2208]: pppd 2.4.5 started by root, uid 0
    Aug 11 14:38:57 darkstar pppd[2208]: Using interface ppp0
    Aug 11 14:38:57 darkstar pppd[2208]: Connect: ppp0 <--> /dev/ttyUSB1
    Aug 11 14:39:27 darkstar pppd[2208]: Connection terminated.
    Aug 11 14:39:28 darkstar pppd[2208]: Modem hangup
    Aug 11 14:39:28 darkstar pppd[2208]: Exit.

  10. #10
    Resident Lead Bender Ockie's Avatar
    Join Date
    Feb 2008
    Location
    Henceforth AKA OckieMoto :-)
    Posts
    21,849

    Default

    Sure its easy. Load Ubuntu or even better...Linux Mint :-)

    Seriously though...cant help you with that wvdialer thing. I have never understood that thing. Read up on it a bit but after thirst few lines I got a headache and left it. :-)
    Now why you loer en kyk gelyk?
    Is ek miskien van goud gemake?

  11. #11

    Default

    slack is my first linux i know that ubuntu is easy, but would not be happy
    after getting so close to make something work. To only give up on it, then what was
    the point of trying...

    besides i don't think linux is difficult if it was well documented ... with easy step by step
    most people would be able to setup 3g modems on their linux distro

  12. #12

    Default

    latest result when i use wvdial i forgot to change the usb port from my first result

    when i dial
    --> WvDial: Internet dialer version 1.61
    --> Cannot get information for serial port.
    --> Initializing modem.
    --> Sending: AT+CGDCONT=1,"IP","internet"
    AT+CGDCONT=1,"IP","internet"
    OK
    --> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
    ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
    OK
    --> Modem initialized.
    --> Idle Seconds = 300, disabling automatic reconnect.
    --> Sending: ATDT*99#
    --> Waiting for carrier.
    ATDT*99#
    ERROR
    --> Invalid dial command.
    --> Disconnecting at Thu Aug 11 17:37:29 2011

    my wvdial settings

    [Dialer option]

    Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
    ISDN = 0
    Modem = /dev/ttyUSB2
    Modem Type = Analog Modem
    Baud = 9600
    Init1 = ATZ

    [Dialer Defaults]

    Init1 = ATZ
    Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
    Stupid Mode = 1
    Phone = *99#
    Idle Seconds = 300
    Modem = /dev/ttyUSB2
    Dial Command = ATDT

    [Dialer 3G]

    Stupid mode = 1
    Modem = /dev/ttyUSB2
    password = guest;
    username = guest;
    phone = *99#
    Init1 = AT+CGDCONT=1,"IP","internet"

  13. #13

    Default

    thanks for all your help my linux finally has internet

Bookmarks

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
  •