Find the answer to your Linux question:
Results 1 to 3 of 3
I have a Nokia 6630-mobilephone, and I would like to use it as a modem (connect to internet via GPRS or 3G). Google didn't help me, and I did not ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Feb 2006
    Location
    KP22
    Posts
    106

    Using Nokia as modem under linux [SOLVED]


    I have a Nokia 6630-mobilephone, and I would like to use it as a modem (connect to internet via GPRS or 3G). Google didn't help me, and I did not find any issues about it. Gnokii works great, and I can move files, send SMS etc. I use cable connection. Do you people know how to make this work?
    Last edited by kavalakala; 02-14-2006 at 05:23 PM. Reason: Solved problem

  2. #2
    Linux Newbie
    Join Date
    Feb 2006
    Location
    KP22
    Posts
    106

    Solved

    I solved this problem myself. If someone is intrested in or has same problems, I can clear things a bit. Again, I used my Nokia 6630 with link cable (you may try to use Bluetooth connection; switch /dev/ttyACM0 to /dev/rfcomm, start bluetooth and bind your mobile phone using rfcomm), my distribution is Gentoo Linux. Here, my operator is Saunalahti Finland.

    First, when you have made linux to recgonize your phone, you need PPP-support to kernel. I am now using these modules (not sure if all of them needed):

    ppp_deflate
    ppp_synctty
    ppp_async
    ppp_generic

    When you have them loaded or compiled in, you can configure PPP. First is my main configuration for connection:
    /etc/ppp/3g
    Code:
    # Most GPRS phones don't reply to LCP echo's
    lcp-echo-failure 0
    lcp-echo-interval 0
    
    # Keep pppd attached to the terminal:
    # Comment this to get daemon mode pppd
    nodetach
    
    # Debug info from pppd:
    # Comment this off, if you don't need more info
    debug
    
    # Show password in debug messages
    show-password
    
    # Connect script:
    # scripts to initialize the GPRS modem and start the connection,
    connect /etc/ppp/3g-connect-chat
    
    # Disconnect script:
    # AT commands used to 'hangup' the GPRS connection.
    disconnect /etc/ppp/3g-disconnect-chat
    
    # Serial device to which the GPRS phone is connected:
    /dev/ttyACM0    # Data cable device file
    
    # Serial port line speed
    115200  # fast enough
    #57600
    
    # Hardware flow control:
    # Use hardware flow control with cable, Bluetooth and USB but not with IrDA.
    crtscts  # serial cable, Bluetooth and USB, on some occations with IrDA too
    #nocrtscts # IrDA
    
    # Ignore carrier detect signal from the modem:
    local
    
    # IP addresses:
    # - accept peers idea of our local address and set address peer as 10.0.0.1
    # (any address would do, since IPCP gives 0.0.0.0 to it)
    # - if you use the 10. network at home or something and pppd rejects it,
    # change the address to something else
    0.0.0.0:0.0.0.0
    
    # pppd must not propose any IP address to the peer!
    noipdefault
    
    # Accept peers idea of our local address
    ipcp-accept-local
    
    # Add the ppp interface as default route to the IP routing table
    defaultroute
    
    # DNS servers from the phone:
    # some phones support this, some don't.
    usepeerdns
    # ppp compression:
    # ppp compression may be used between the phone and the pppd, but the
    # serial connection is usually not the bottleneck in GPRS, so the
    # compression is useless (and with some phones need to disabled before
    # the LCP negotiations succeed).
    novj
    nobsdcomp
    novjccomp
    nopcomp
    noaccomp
    noccp
    
    # The phone is not required to authenticate:
    noauth
    
    # Username and password:
    # If username and password are required by the APN, put here the username
    # and put the username-password combination to the secrets file:
    # /etc/ppp/pap-secrets for PAP and /etc/ppp/chap-secrets for CHAP
    # authentication. See pppd man pages for details.
    user "none"
    password 123456
    
    #
    mtu 1500
    mru 1500
    
    asyncmap 0xa0000
    And this is my connect-chat-script
    /etc/ppp/3g-connect-chat
    Code:
    #!/bin/sh
    exec chat                                               \
            TIMEOUT         5                               \
            ECHO            ON                              \
            ABORT           '\nBUSY\r'                      \
            ABORT           '\nERROR\r'                     \
            ABORT           '\nNO ANSWER\r'                 \
            ABORT           '\nNO CARRIER\r'                \
            ABORT           '\nNO DIALTONE\r'               \
            ABORT           '\nRINGING\r\n\r\nRINGING\r'    \
            ''              AT                              \
            OK              ATH                             \
            OK              ATE1                            \
            OK              'AT+CGDCONT=1,"IP","internet.saunalahti","0.0.0.0",0,0' \
            OK              ATD*99#                         \
            TIMEOUT         22                              \
            CONNECT         ""
    And disconnect-script-script
    /etc/ppp/3g-disconnect-chat
    Code:
    #!/bin/sh
    exec /usr/sbin/chat -V -s -S \
    ABORT "BUSY" \
    ABORT "ERROR" \
    ABORT "NO DIALTONE" \
    SAY "\nSending break to the modem\n" \
    "" "K" "" "K" "" "K" "" \
    "+++ATH" "" "+++ATH" "" "+++ATH"
    With these, you should be able to use your 6630 as GPRS/3G modem. Remember, this is my special config for Saunalahti operator in Finland, and especially made chatscript for Nokia 6630 (I think other chatscripts for example ones made for N6600 are not going to work). Chatscript might be useful.

  3. #3
    Just Joined!
    Join Date
    Jun 2007
    Posts
    1
    Thanks for providing the solution. Tried the solution with my Nokia 6630. It works flawlessly.

  4. $spacer_open
    $spacer_close

Posting Permissions

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