www.flickr.com
Petri Lopia's items Go to Petri Lopia's photostream

Nokia CS-15 and Linux

First of all if you have “PIN code request” enabled then you have to disable it (I used my Nokia E90 for that).

Then install usb-modeswitch and wvdial if you haven’t already installed them.

Attach your Nokia CS-15 to your computer USB port and run lsusb (so we can be sure that your computer notice your dongle).

When you run lsusb you should see something like this:

Bus 001 Device 004: ID 0421:0610 Nokia Mobile Phones

Now you have to run usb_modeswitch command with these parameters:

usb_modeswitch -v 0x0421 -p 0x0610 -m 0x01 -M "5553424312345678000000000000061b000000020000000000000000000000"

This will change that 0610 to 0612 and after that command we can run lsusb again and see if that worked and you should see
something like this:

Bus 001 Device 005: ID 0421:0612 Nokia Mobile Phones

If everything looks ok now we can continue with wvdial.

Edit /etc/wvdial.conf file and make it look like this (Works OK in Finland with DNA):

[Dialer defaults]
Modem = /dev/ttyACM0
Init = AT+CGDCONT=1,"IP","internet"
Phone = *99#
Stupid Mode = 1
Username = " "
Password = " "

If everything went right you should get connected to internet simply with command wvdial and see something like this:

root@ubuntu:/# wvdial
--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: AT+CGDCONT=1,"IP","internet"
AT+CGDCONT=1,"IP","internet"
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
CONNECT
--> Carrier detected.  Starting PPP immediately.
--> Starting pppd at Wed Jan 20 09:43:23 2010
--> Pid of pppd: 4059
--> Using interface ppp0
--> local  IP address 87.95.4.168
--> remote IP address 10.0.0.1
--> primary   DNS address 62.241.198.246
--> secondary DNS address 62.241.198.245

And when you disconnect (I did it with ctrl-c:)

^CCaught signal 2:  Attempting to exit gracefully...
--> Terminating on signal 15
--> Connect time 8.4 minutes.
--> Disconnecting at Wed Jan 20 09:51:56 2010
root@ubuntu:/#

Thanks to anttu-t about that usb_modeswitch command and parameters.


If you are using Ubuntu 10.04 / Lucid Lynx you should first try just:

eject /dev/sr1

and then create a new connecting profile (or what ever it’s called).

Amazon.Com:
Beginning Ubuntu Linux, Fourth Edition Nokia CS 15 and Linux usb modeswitch ubuntu pin nokia modeswitch modem linux eject dongle cs 15 3g
Official Ubuntu Book, The (5th Edition) Nokia CS 15 and Linux usb modeswitch ubuntu pin nokia modeswitch modem linux eject dongle cs 15 3g

7 comments to Nokia CS-15 and Linux

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>