got the hsdpa dongel to work….

on

1. a working internet connection:

$ sudo wvdial vodafone
--> WvDial: Internet dialer version 1.61
--> Initializing modem.
--> Sending: ATZ ATZ OK
--> Sending: ATZ ATZ OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 OK
--> Sending: AT+CGDCONT=1,"IP","live.vodafone.com" AT+CGDCONT=1,"IP","live.vodafone.com" OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier. ATDT*99# CONNECT 21000000
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Tue Apr 9 23:44:36 2013
--> Pid of pppd: 8003
--> Using interface ppp0
--> local IP address 10.173.51.172
--> remote IP address 10.64.64.64
--> primary DNS address 62.140.140.251
--> secondary DNS address 62.140.138.233
^CCaught signal 2: Attempting to exit gracefully...
--> Terminating on signal 15
--> Connect time 6.0 minutes.
--> Disconnecting at Tue Apr 9 23:50:35 2013

2. sending simultaneously and sms
$gammu sendsms TEXT +31650xxxxxx -text "Knilluz sent you this sms!!"

————————–

How did i do that

$cat sudo apt-get install wvdial

$cat /etc/udev/rules.d/alcatelmobile.rules
ATTRS{idVendor}=="1bbb", ATTRS{idProduct}=="0017" ,RUN+="/sbin/modprobe usbserial vendor=0x1bbb product=0x0017"
ATTRS{idVendor}=="1bbb", ATTRS{idProduct}=="0017", RUN+="/usr/local/bin/usbAlcatel"
ATTRS{idVendor}=="1bbb", ATTRS{idProduct}=="0017", RUN+="/sbin/modprobe option"

KERNEL!="ttyUSB[0-9]*|ttyACM[0-9]*", GOTO="alcatel_end"

ENV{ID_MODEL_ID}=="0017", ENV{ID_VENDOR_ID}=="1bbb" , SYMLINK+="alcatelmodem$env{ID_USB_INTERFACE_NUM}"

LABEL="alcatel_end"

$ cat /usr/local/bin/usbAlcatel
#!/bin/sh
echo 1bbb 0017 > /sys/bus/usb-serial/drivers/option1/new_id

$ cat /etc/wvdial.conf
[Dialer Defaults]
Dial Command = ATDT
ISDN = 0
Modem Type = Analog Modem
Modem = /dev/alcatelmodem03
Baud = 460800

[Dialer init]
Init1 = AT+CPIN=0000

[Dialer vodafone]
Init2 = ATZ
Init3 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init4 = AT+CGDCONT=1,"IP","live.vodafone.com"
Phone = *99#
New PPPD = yes
Username = vodafone
Password = vodafone
Stupid Mode = 1

$ cat ~/.gammurc
[gammu]
port = /dev/alcatelmodem05
model =
connection = at
synchronizetime = yes
logfile =
logformat = nothing
use_locking =
gammuloc =