Activation Codes and Methods, Hardware Details, Sniffing
Post Reply
wez
Posts: 3
Joined: 06 Jan 2009, 22:03

Option Icon 401

Post by wez » 06 Jan 2009, 22:42

Edit: Here is the working config for the Option 401

Code: Select all

###################################################### 
# iCON401 HSUPA 
# 
DefaultVendor= 0x0af0 
DefaultProduct= 0x7401 

TargetClass= 0xff 

MessageEndpoint=0x01 
MessageContent="55534243785634120100000080000601000000000000000000000000000000" 

ResponseEndpoint=0x81 
NeedResponse=1

Hi all :)

I've been trying to get this USB modem working on my Ubuntu 8.10 box, and I think modeswitch could fix my problem.

However my vendor model isn't listed in the conf file, so I'm not quite sure what the TargetVendor/Product should be.

lsusb lists the "Option" device, it's class is specified as a 'mass storage device'. Since I'm not sure what the Target ven/prod should be, I tried modeswitch with a TargetClass=0xff, with no success.

Here is my conf (with vendor+product as listed in lsusb):

Code: Select all

DefaultVendor=0x0af0 
DefaultProduct=0x7401 
TargetClass=0xff 
MessageEndpoint=0x05 
MessageContent="55534243123456780000000000000601000000000000000000000000000000"
with this result:

Code: Select all

sudo usb_modeswitch 

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

Looking for target devices
 No target device found
Looking for default devices
 Found default devices (1)
Prepare switching, accessing latest device
Looking for active default driver to detach it
 No driver found. Device probably not initialized. Trying to continue ...
Setting up communication with device
Trying to send the message
 Sending the message returned error -2, trying to continue ...
-> See /proc/bus/usb/devices (or call lsusb) for changes. Bye
And this is where I'm stuck. I tried using SniffUsb (a version 2.0 that works in Vista, found here) but I'm not quite sure what I should be looking for in the log.

Am I just missing something important, or doing something silly? This is all pretty new to me, any tips or suggestions will be great!

Thanks in advance, wes[/code]
Last edited by wez on 19 Feb 2009, 11:07, edited 1 time in total.

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

Post by Josh » 07 Jan 2009, 00:42

This device is listed in "unusual_devs.h" in kernel 2.6.28. It has an issue with a wrong device descriptor. This entry is supposed to make the storage part work.

I suspect that the failed binding of usb-storage prevents the device from accepting the switch command.

Solution? First blacklist usb-storage completely; the switching SHOULD work then. If it does, you might consider building your kernel and play around with the entry mentioned above.

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

Post by Josh » 12 Jan 2009, 22:43

There is annother source of error. If you're experimented with different settings before, be sure to always re-plug the device before trying anew. It might have gone to some undefined state.

The Solutor
Posts: 29
Joined: 29 Dec 2008, 12:04

Post by The Solutor » 12 Jan 2009, 22:54

Josh wrote:This device is listed in "unusual_devs.h" in kernel 2.6.28. It has an issue with a wrong device descriptor. This entry is supposed to make the storage part work.

I suspect that the failed binding of usb-storage prevents the device from accepting the switch command.

Solution? First blacklist usb-storage completely; the switching SHOULD work then. If it does, you might consider building your kernel and play around with the entry mentioned above.
Read my post about vodafone 3760, likely the two devices are almost the same.

Try EP 0x01 instead of 0x05

hsdpafever
Posts: 42
Joined: 05 Jun 2008, 09:52

Post by hsdpafever » 13 Jan 2009, 03:48

Here's the usb_modeswitch.conf that I use on my laptop running Fedora 9 Kernel-2.6.27.9-73.fc9.i686.

######################################################
# iCON401 HSUPA
#
DefaultVendor= 0x0af0
DefaultProduct= 0x7401

TargetClass= 0xff

MessageEndpoint=0x01
MessageContent="55534243785634120100000080000601000000000000000000000000000000"

ResponseEndpoint=0x81
NeedResponse=1

Here's the output of "usb_modeswitch" with above configuration.
# ./usb_modeswitch

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

Looking for default devices
Found default devices (1)
OK, found default device not in target class mode
Prepare switching, accessing latest device
Looking for active default driver to detach it
OK, driver found ("usb-storage")
OK, Driver "usb-storage" successfully detached
Setting up communication with device
Trying to send the message
OK, message successfully sent.
Reading the response
OK, reading the response was successful.
-> See /proc/bus/usb/devices (or call lsusb) for changes. Bye


After the storage has been switched, you will need the HSO driver from Option (hso-1.6 and above) to get it to work. If the HSO driver is "modprobe" correctly, it will create 4 ttyHS* devices in /dev directory.

The dialup modem port that you want to use is "/dev/ttyHS3". I then use the "wvdial" to initial the connection.

Hope it helps. Good Luck

wez
Posts: 3
Joined: 06 Jan 2009, 22:03

Post by wez » 13 Jan 2009, 11:22

Hi Josh, thanks for the replies! I will read through your post about the 3760, and will report back after some testing - Either tonight or later this week :)

@hsdpafever thanks for the conf, I will definitely go over this too!

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

Post by Josh » 13 Jan 2009, 21:09

Thanks, hsdpafever, I needed this confirmation.
I'll post a new config file in the next few minutes.

Since this device is handled in "unusual_devs.h", I'd be interested to learn if the SD slot is working properly after switching.

hsdpafever
Posts: 42
Joined: 05 Jun 2008, 09:52

Post by hsdpafever » 11 Feb 2009, 05:11

Hi Josh,

I don't have any SD card with me, otherwise I would be very happy to test it out for you.

wez
Posts: 3
Joined: 06 Jan 2009, 22:03

Post by wez » 19 Feb 2009, 11:03

Confirming that the config posted by hsdpafever does work for my Option 401, thank you! :D

And for interestes sake, I then followed this pharscape article to get the device working on Ubuntu Intrepid Ibex.

Post Reply