Activation Codes and Methods, Hardware Details, Sniffing
Post Reply
anttu
Posts: 1
Joined: 06 Nov 2009, 09:12

Nokia CS-15 Internet Stick

Post by anttu » 06 Nov 2009, 09:19

Here is a setup for Nokia CS-15. Tested with Ubuntu 9.04 and Debian (2.6.26):

#
# Nokia CS-15
#
# Contributors: Razvan Dragomirescu, Antti Turunen
#
DefaultVendor= 0x0421
DefaultProduct= 0x0610

MessageEndpoint=0x01

MessageContent="5553424312345678000000000000061b000000020000000000000000000000"

Josh
Site Admin
Posts: 6570
Joined: 03 Nov 2007, 00:30

Post by Josh » 01 Dec 2009, 00:08

Sorry, must have missed that post. Just found it while combing the topics for information to include in the next release.

And now I'd love to know more about this device:

- Does it change IDs when switching?

- What are the strings that USB_ModeSwitch spits out (SCSI and USB)?


Thanks a lot in any case!

jurek
Posts: 1
Joined: 08 Jan 2010, 01:05
Location: Warsaw, Poland

TargetID

Post by jurek » 08 Jan 2010, 01:24

After modeswitch device changes id to 0x612.
If there is any information I could support, please let me know (I have no idea how to read the USB_modeswitch strings you asked).
Thanks for the great software!

jtbo
Posts: 3
Joined: 01 Apr 2010, 19:51

Post by jtbo » 01 Apr 2010, 20:07

I have not been able to make my CS-15 to change to mode 612 with this information.

After starting to Windows, then rebooting and starting to Xubuntu 9.10, running lsusb I get this:

Code: Select all

Bus 002 Device 002: ID 0421:0611 Nokia Mobile Phones
If I take out CS-15 and re-insert it is all same, but 0421:0610.

In any case when I run usb_modeswitch with given parameters (-p 0x0610 or -p 0x0611 depending which lsusb reports, resulting lines are still the same) I get:

Code: Select all

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

 * usb_modeswitch: tool for controlling "flip flop" mode USB devices
 * Version 1.0.2 (C) Josua Dietze 2009
 * Works with libusb 0.1.12 and probably other versions

Looking for default devices ...
 Found default devices (1)
Accessing device 000 on bus 002 ...
Using endpoints 0x01 (out) and 0x82 (in)
Not a storage device, skipping SCSI inquiry

Device description data (identification)
-------------------------
Error: could not get description string "manufacturer"
Manufacturer: 
Error: could not get description string "product"
     Product: 
Error: could not get description string "serial number"
  Serial No.: 
-------------------------
Looking for active driver ...
 No driver found. Either detached before or never attached
Setting up communication with interface 0 ...
 Could not claim interface (error -1). Skipping message sending
-> Run lsusb to note any changes. Bye.
I'm quite newbie with Linux, so I have no idea what to do next, but I hope this information gives some ideas to smarter persons :)

Oh yes, this CS-15 is only one week old, it is branded with operator logo (DNA) and country is Finland, machine is HP Compaq laptop model 6830s, don't know if any of this has any relevance.

You can ask more information from me, but I'm not sure which I can answer, with Linux my knowledge is bit limited, even I am IT pro with Windows.

Josh
Site Admin
Posts: 6570
Joined: 03 Nov 2007, 00:30

Post by Josh » 02 Apr 2010, 00:07

1. Are you running as root (or with sudo)?

2. I'd like to see a "lsusb -v -d 0421:0611" right after plugging before you do anything else. You can post the output on pastebin.com. Again, run as root.

3. I suggest using the latest version 1.1.1, there were bugs fixed. See Debian repository (doc page, "Download"), you can use the *.deb files on Ubuntu.


jtbo
Posts: 3
Joined: 01 Apr 2010, 19:51

Post by jtbo » 02 Apr 2010, 02:39

Josh wrote:1. Are you running as root (or with sudo)?

2. I'd like to see a "lsusb -v -d 0421:0611" right after plugging before you do anything else. You can post the output on pastebin.com. Again, run as root.

3. I suggest using the latest version 1.1.1, there were bugs fixed. See Debian repository (doc page, "Download"), you can use the *.deb files on Ubuntu.
1.1.1 version with new datafile seem to make a difference, from Ubuntu repository I got old versions which seem not to be compatible with this device, however with latest version it started to work fine.
It is bit of annoyance that in repository there often seem to be bit old versions of software, same with Wine or any other.

I had bit of trouble installing .deb version, it did complain about usb-modeswitch-data package being missing dependency, I had installed that with sudo make install after extracting data package and chaning to data package dir.

Then I was foolish enough trying to run usb_modeswitch -v 0x0421 -p 0x0611 -m 0x01 -M "5553424312345678000000000000061b000000020000000000000000000000", it did say that it did found Nokia datacard, however it was still shown as 611 with lsusb.

Next I did get source package of usb_modeswitch, I did run sudo make clean and then sudo make install, but it did say usb.h is not not file or directory and lot of other things (my system is using amd64 kernel), so I did extract it again to clean directory and run instead sudo make install, which seemed to work.
Next I did run again sudo ./usb_modeswitch from directory where I did extract source and also I had those long number series and I got error that there is no such device id or something like that, it did appeared that now device was 612 for some odd reason, maybe it took some time to earlier command to have effect.

Sometimes I feel bit stupid with Linux, but I guess it is learning...

I did try to see from logs if there would be output of those commands logged, but could not find such log from /var/log, I think it should be in messages.log but couldn't see such lines there.

Anyway it should work if there is just latest version of usb_modeswitch_data and of course usb_modeswitch, with 1.0.2 and old data it does not work.

Now when I plug device in it goes to mode 612 automatically, so I can't try and see what information usb_dataswitch would give from it.

Before it used to be 610 mode, but only when I did use it in Windows and then booted to Linux it was 611, but indeed now it is 612 when I just plug it in.

Do you still need lsusb -v -d 0421:0612 results? Or any other results? I can try and run if need anything.

Josh
Site Admin
Posts: 6570
Joined: 03 Nov 2007, 00:30

Post by Josh » 02 Apr 2010, 08:54

jtbo wrote:Sometimes I feel bit stupid with Linux, but I guess it is learning...
Learning can never be wrong. It might have helped though if you had read the main documentation page thoroughly (see "USB_ModeSwitch" link at the top).

There you can learn that the recent versions of the package aim at working automatically, without requiring user action.

I don't need the lsusb output if switching works. I assume the change from "0610" to "0611" happens without external initiation, probably after a certain delay.


jtbo
Posts: 3
Joined: 01 Apr 2010, 19:51

Post by jtbo » 02 Apr 2010, 11:05

Josh wrote:Learning can never be wrong. It might have helped though if you had read the main documentation page thoroughly (see "USB_ModeSwitch" link at the top).

There you can learn that the recent versions of the package aim at working automatically, without requiring user action.

I don't need the lsusb output if switching works. I assume the change from "0610" to "0611" happens without external initiation, probably after a certain delay.
Switch to 0611 seemed to happen only in Windows after I made a call, that is at least what I think as CS-15 led was blinking after using it at Windows, then I put Windows to hibernate and led was still blinking at hibernate mode (which I think it should not do), then I started to Linux while led still blinking and I could dial to Internet with CS-15.

However if I just put stick in at Linux led never started to blink and stick did stay at 0610 mode.

I would imagine that at Windows it does switch from 0610 to 0611, but I have no idea what is difference between 0610 or 0611.
Anyway I'm very happy with thing working really well in 0612 mode now at Linux.

Thanks from your help, much appreciated :)

Post Reply