so i decided to give a try for using Nokia N95 as a modem for my ubuntu laptop
i had write about it before and i failed Read here
Today i succeeded and this is what i did
1- connect the Nokia to the laptop using usb cable
2- select pcsuite when asked in nokia
3- open terminal and do the following
lsusb
you got something similar to this
Bus 005 Device 002: ID 0c45:62c0 Microdia
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 002: ID 0421:04f0 Nokia Mobile Phones
Bus 001 Device 001: ID 0000:0000
5- sudo modprobe cdc_acm
6- sudo /sbin/modprobe usbserial vendor=0x0421 product=0x04f0
7- sudo vi /etc/wvdial.conf
delete everything in it and add the following (this is what worked for me)
[Dialer Defaults]
Modem = /dev/ttyACM0
Baud = 460800
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ISDN = 0
Modem Type = Analog Modem
Phone = *99#
Username = username
Password = password
Stupid Mode = 1
8- wvdialconf create
you get something similar to this
Editing `create'.
Scanning your serial ports for a modem.
Modem Port Scan<*1>: S0 S1 S2 S3
WvModem<*1>: Cannot get information for serial port.
ttyACM0<*1>: ATQ0 V1 E1 -- OK
ttyACM0<*1>: ATQ0 V1 E1 Z -- OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyACM0<*1>: Modem Identifier: ATI -- Nokia
ttyACM0<*1>: Speed 4800: AT -- OK
ttyACM0<*1>: Speed 9600: AT -- OK
ttyACM0<*1>: Speed 19200: AT -- OK
ttyACM0<*1>: Speed 38400: AT -- OK
ttyACM0<*1>: Speed 57600: AT -- OK
ttyACM0<*1>: Speed 115200: AT -- OK
ttyACM0<*1>: Speed 230400: AT -- OK
ttyACM0<*1>: Speed 460800: AT -- OK
ttyACM0<*1>: Max speed is 460800; that should be safe.
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
Found an USB modem on /dev/ttyACM0.
Modem configuration written to create.
ttyACM0
9- wvdial
you got
--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
CONNECT
~[7f]}#@!}!} } }2}#}$@#}!}$}%\}"}&} }*} } g}%~
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Sat Jun 21 13:31:29 2008
--> Warning: Could not modify /etc/ppp/pap-secrets: Permission denied
--> --> PAP (Password Authentication Protocol) may be flaky.
--> Warning: Could not modify /etc/ppp/chap-secrets: Permission denied
--> --> CHAP (Challenge Handshake) may be flaky.
--> Pid of pppd: 4551
--> Using interface ppp0
--> pppd: h�[06][08] �[06][08]
--> pppd: h�[06][08] �[06][08]
--> pppd: h�[06][08] �[06][08]
--> pppd: h�[06][08] �[06][08]
--> pppd: h�[06][08] �[06][08]
--> local IP address 10.70.15.96
--> pppd: h�[06][08] �[06][08]
--> remote IP address 10.6.6.6
--> pppd: h�[06][08] �[06][08]
--> primary DNS address 212.103.160.26
--> pppd: h�[06][08] �[06][08]
--> secondary DNS address 4.2.2.2
--> pppd: h�[06][08] �[06][08]
Caught signal 2: Attempting to exit gracefully...
--> Terminating on signal 15
--> pppd: h�[06][08] �[06][08]
--> Connect time 0.4 minutes.
--> pppd: h�[06][08] �[06][08]
--> pppd: h�[06][08] �[06][08]
--> pppd: h�[06][08] �[06][08]
to stop click CTRL+C
no enjoy the internet with the speed of your mobile data connection
this is how it's for my mobile (using etisalat egypt 3.75G)