Benutzer-Werkzeuge

Webseiten-Werkzeuge


linux:using_bluetooth_and_netcfg_for_umts_connection

using bluetooth and netcfg for umts connection

I'm using 'netcfg' on my Arch systems for managing network connections.
Recently I discovered a way to connect to UMTS using netcfg and bluetooth.

I'm using Fonic as provider so these examples will be specific for Fonic.

  1. create a netcfg config for ppp connections in /etc/network.d/:
    fonic
    CONNECTION='ppp'
    INTERFACE='ignore'
    PEER='fonic'
    PPP_TIMEOUT=10
  2. create peer config for ppp in /etc/ppp/peers/:
    fonic
    hide-password
    noauth
    # chat script for connection (has to be provider specific)
    connect "/usr/sbin/chat -v -f /etc/ppp/fonic_chat"
    debug
    /dev/rfcomm0
    921600
    defaultroute
    noipdefault
    usepeerdns
    user ""
  3. create chat script in /etc/ppp/:
    fonic_chat
    ABORT BUSY ABORT 'NO CARRIER' ABORT VOICE ABORT 'NO DIALTONE' ABORT 'NO DIAL TONE' ABORT 'NO ANSWER' ABORT DELAYED
    '' ATZ
    OK at+cgdcont=1,"IP","internet","",0,0
    OK AT+CREG=2
    OK-AT-OK "ATDT*99#"
    CONNECT \d\c
  4. pair your bluetooth device (e.g. smartphone) with your computer
  5. enable rfcomm device:
    /etc/conf.d/bluetooth
    ...
    # Activate rfcomm ports (default: false)
    RFCOMM_ENABLE="true"
    ...
  6. configure rfcomm device:
    /etc/bluetooth/rfcomm.conf
    rfcomm0 {
    	# Automatically bind the device at startup
    	bind yes;
     
    	# Bluetooth address of the device
    	device XX:XX:XX:XX:XX:XX;
     
    	# RFCOMM channel for the connection
    	channel	1;
     
    	# Description of the connection
    	comment "Connect Cheza";
    }
  7. restart bluetooth
  8. run 'netcfg fonic' and you'll connect using UMTS over bluetooth with your device as modem :D

Comments



T C E V Y
linux/using_bluetooth_and_netcfg_for_umts_connection.txt · Zuletzt geändert: 2012/04/16 20:23 von Andrwe Lord Weber