Cómo conectar a Internet con Movistar usando Linux, Bluetooth y un Nokia 6630

Ángel Ortega

Este documento describe los pasos para una distribución Debian, pero en otras debería ser más o menos lo mismo. Para usar esto es necesario tener el soporte Bluetooth funcionando (mi documento docs/bluetooth puede servir de ayuda). Esta configuración debería servir igual para GPRS ó UMTS: mi teléfono móvil conmuta de uno a otro automáticamente según la cobertura.

Crear /etc/chatscripts/movistar:

"" AT&F
OK AT+CGDCONT=1,"IP","movistar.es","",0,0
OK ATDT*99#
CONNECT \d\c

Crear /etc/ppp/options.rfcomm:

-crtscts
local

Crear /etc/ppp/peers/movistar:

hide-password
noauth
connect "/usr/sbin/chat -v -f /etc/chatscripts/movistar"
debug
/dev/rfcomm0
115200
defaultroute
noipdefault
user MOVISTAR
ipparam movistar
usepeerdns

Añadir a /etc/ppp/pap-secrets:

MOVISTAR        *       MOVISTAR

Conectar y desconectar

Para conectar:

# pon movistar

Para desconectar:

# poff

El módem incorporado en el teléfono suele estar en /dev/rfcomm0, pero en tu configuración podría ser distinto. Se configura en /etc/bluetooth/rfcomm.conf:

rfcomm0 {
        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 "mycellular";
}

Supuestamente, otros modelos y marcas de teléfono móvil podrían funcionar igual.