LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Wireless Networking (http://www.linuxquestions.org/questions/linux-wireless-networking-41/)
-   -   usb storage iCON 461 0af0:7a01 switched to UMTS usb modem?; howto? (http://www.linuxquestions.org/questions/linux-wireless-networking-41/usb-storage-icon-461-0af0-7a01-switched-to-umts-usb-modem-%3B-howto-4175456869/)

floppy_stuttgart 04-04-2013 01:13 PM

usb storage iCON 461 0af0:7a01 switched to UMTS usb modem?; howto?
 
I am trying to use that modem with my netbook nc10 with TinyCoreLinux 4.7.5 and kernel 3.0.21.

I made according http://www.draisberghof.de/usb_modes..._reference.txt

1. the switchicon.conf
=======
DefaultVendor= 0x0af0
DefaultProduct= 0x7a01
TargetClass= 0xff
MessageContent="55534243123456780000000000000601000000000000000000000000000000"
CheckSuccess=20
=======


2. plug in the modem


3. command "usb_modeswitch -c /etc/switchicon.conf"
.. message

Code:

=========
Looking for target devices ...
 No devices in target mode or class found
Looking for default devices ...
  found matching product ID
 Found device in default mode, class or configuration (1)
Accessing device 005 on bus 001 ...
Getting the current device configuration ...
 OK, got current device configuration (1)
Using interface number 0
Using endpoints 0x01 (out) and 0x81 (in)
Inquiring device details; driver will be detached ...
Looking for active driver ...
 OK, driver found; name unknown, limitation of libusb1
 OK, driver "unkown" detached

SCSI inquiry data (for identification)
-------------------------
  Vendor String: ZCOption
  Model String: HSUPA Modem   
Revision String:   
-------------------------

USB description data (for identification)
-------------------------
Manufacturer: Option N.V.
    Product: Globetrotter HSUPA Modem
  Serial No.: Serial Number
-------------------------
Setting up communication with interface 0
Using endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
 OK, message successfully sent
Resetting response endpoint 0x81
Resetting message endpoint 0x01
 Could not reset endpoint (probably harmless): -34
 Device is gone, skipping any further commands

Checking for mode switch (max. 30 times, once per second) ...
 Searching for target devices ...
  found matching product ID

Found target device, now opening
 Found correct target device

Mode switch succeeded. Bye.
=========

with the hso loaded, the dmesg end is
Code:

...
usbcore: registered new interface driver oss_usb
usb 1-1: new high speed USB device number 5 using ehci_hcd
scsi7 : usb-storage 1-1:1.0
scsi 7:0:0:0: CD-ROM            ZCOption HSUPA Modem          PQ: 0 ANSI: 2
sr0: scsi-1 drive
cdrom: Uniform CD-ROM driver Revision: 3.20
sr 7:0:0:0: Attached scsi CD-ROM sr0
sr 7:0:0:0: Attached scsi generic sg4 type 5
usb 1-1: usbfs: process 4362 (usb_modeswitch) did not claim interface 0 before use
usb 1-1: USB disconnect, device number 5
usb 1-1: new high speed USB device number 6 using ehci_hcd
scsi15 : usb-storage 1-1:1.7
hso: drivers/net/usb/hso.c: Option Wireless
usbcore: registered new interface driver hso
scsi 15:0:0:0: Direct-Access    SD      HSUPA Modem          PQ: 0 ANSI: 2
sd 15:0:0:0: Attached scsi generic sg4 type 0
sd 15:0:0:0: [sde] Attached SCSI removable disk

no ttyUSBx can be seen.. but ttyHSx are there.
So, I suppose it is switched to UMTS modem?
How to check this or how to be sure it is switched?

floppy_stuttgart 04-09-2013 02:18 PM

It was switched in ttyHS.
By using the "ttyHS5" in the wvdial.conf file, it works.

wvdial.conf file
=========
[Dialer Defaults]
Modem = /dev/ttyHS5
Baud = 460800
PPPD Path = /usr/local/sbin/pppd
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
[Dialer Pin]
Init3 = AT+CPIN=xxxx (xxxx is the pin code)
[Dialer Fonic]
Phone = *99#
Username = foo
Password = foo
Stupid Mode = 1
Dial Command = ATDT
Init4 = AT+CGDCONT=1,"IP","pinternet.interkom.de"
=========


All times are GMT -5. The time now is 06:02 PM.