huawei e160g umts/hsdpa under debian gnu/linux 4.0 (etch), kernel >= 2.6.23

usb_modeswitch

upon connection the modem is storage mode, emulating an usb-cdrom with windows drivers.
to switch to modem mode an extra piece of software is required, usb_modeswitch. download and build usb_modeswitch.
place in /sbin or /usr/sbin. configure it via /etc/usb_modeswitch.conf. you can download my version here.

pppd

install pppd (apt-get install ppp) and create 2 files:

/etc/ppp/peers/e160
/dev/ttyUSB0
user ""
password ""
460800
crtscts
modem
noauth
usepeerdns
defaultroute
noipdefault
debug
noccp
nobsdcomp
novj
connect '/usr/sbin/chat -V -f /etc/ppp/chat-e160'

and /etc/ppp/chat-e160
ABORT BUSY
ABORT ERROR
ABORT 'NO CARRIER'
REPORT CONNECT
TIMEOUT 10
"" "ATZ"
OK "AT+CGDCONT=1,\042IP\042,\042drei.at\042"
TIMEOUT 600
"" "ATD*99#"
CONNECT \c

comments

i deactived the pin via the provider-supplied windows tool. in case you didn't (or simply don't want to) you can use use OK"AT+CPIN=XXXX" in the chat script right after ATZ (XXXX is your pin, obviously).
connections can be started by "pon e160" and terminated by "poff e160". for debugging you can use "pppd call e160 nodetach".
if you're using a different provider adopt username and password and exchange "drei.at" to the apn your provider is using.

back to zankapfel.net