Using UMTS modems

From Salix OS
Revision as of 16:42, 8 February 2011 by Baran (Talk | contribs)

Jump to: navigation, search

This document gives instructions on using UMTS modems with a Huawei K3765 as example.


Contents

Install three applications (under root rights)

wvdial

A utility that helps in making modem-based connections to the internet (http://en.wikipedia.org/wiki/Wvdial).

slapt-get -i wvdial

usb_modeswitch

A mode switching tool for controlling "flip flop" (multiple device) USB gear (http://www.draisberghof.de/usb_modeswitch/#intro).

slapt-get -i usb_modeswitch

comgt

Comgt is a command line tool for controlling, configuring and interacting with Option Wireless 3G and 2G ( HSDPA, UMTS, EDGE, GPRS, GSM) data devices within the Linux environment (http://sourceforge.net/projects/comgt/).

wget http://sourceforge.net/projects/comgt/files/comgt/0.32/comgt.0.32.tgz
tar xvf comgt.0.32.tgz
cd comgt.0.32
make all
make install

Set up the wvdial

Save this content to the /etc/wvdial.conf.

[Dialer Defaults]
Modem = /dev/ttyUSB0
ISDN = off
Modem Type = USB Modem
Baud = 460800
Init = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init4 =
Init5 =
Init6 =
Init7 =
Init8 =
Init9 =
Phone1 =
Phone2 =
Phone3 =
Phone4 =
Dial Prefix =
Dial Attempts = 1
Dial Command = ATM1L3DT
Ask Password = off
Auto Reconnect = off
Abort on Busy = off
Carrier Check = on
Check Def Route = on
Abort on No Dialtone = on
Stupid Mode = off
Idle Seconds = 0
Init3 = AT+CGDCONT=1,"IP","internet"
Password = vodafone
Username = vodafone
Phone = *99#

second headline

#!/bin/sh
 
# some bash script here