WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: (solved) Howto go into internet with usb UMTS modem 0af0:7a01 ?  (Read 7398 times)

Offline floppy

  • Hero Member
  • *****
  • Posts: 577
hello,
I am trying to use that modem with my netbook.

I made according http://www.draisberghof.de/usb_modeswitch/device_reference.txt and diverse search

the switchicon.conf
=======
DefaultVendor=  0x0af0
DefaultProduct= 0x7a01
TargetVendor=   0x0af0
TargetProduct=  0x7a01
TargetClass=    0xff
MessageEndpoint=0x01
MessageContent="55534243123456780000000000000601000000000000000000000000000000"
ResponseEndpoint=0x81
#NoDriverLoading=1
CheckSuccess=30
NeedResponse=1
=======

it seems to switch on after "usb_modeswitch -c /pathtofile/switchicon.conf"
The /dev/ttyHS0,1,2,3 exists (I found out no ttyUSBx exists, which seems to be ok for that type of modem).
We see in that case in dmesg
=========
Code: [Select]
...
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 4351 (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
=========

I had another success for the same FONIC sim card (other modem); here  http://forum.tinycorelinux.net/index.php/topic,11509.msg61207.html#msg61207
and it works. So, let use that new modem with my "old" FONIC SIM card from the older thread.

When I use the wvdial conf file
=========
[Dialer Defaults]
Modem = /dev/ttyHS3
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
[Dialer Fonic]
Phone = *99#
Username = foo
Password = foo
Stupid Mode = 1
Dial Command = ATDT
Init4 = AT+CGDCONT=1,"IP","pinternet.interkom.de"
=========

sudo wvdial pin is fine. The modem change its color to green or blue which mean it is recognized.
sudo wvdial fonic dont work. It stop with ATDT*99#   ERROR. see http://imagebin.org/253013 
Lets search what could be the reason.
Any idea is welcome.
(forget the file in the attachment; its from an older status and I dont know how to delete it)
« Last Edit: April 09, 2013, 01:09:40 PM by floppy »
AMD K6-IIIATZ 550MHz MB DFI K6xv3/+66
P4 HP DC7100 3GB 3GHz
Samsung NC10 boot from SD card port (via USB reader)
.. all TinyCore proofed

aus9

  • Guest
Re: Howto go into internet with usb UMTS modem 0af0:7a01 ?
« Reply #1 on: April 06, 2013, 10:19:45 PM »
Hi

I am not an expert of usb modems, I do own one but now use ethernet. Your target string is the same is the first issue

suggest reboot computer without your files nor usb-modeswitch pls

insert usb dongle, I will show mine culling the junk out

Code: [Select]
lsusb
Bus 001 Device 004: ID 05c6:f000 Qualcomm, Inc. ---------------------------------------------------------------DEFAULT before the flip
tc@box:~$ eject sr0...............ejects cd drive
tc@box:~$ eject sr1...............ejects usb dongle (in theory not really)
tc@box:~$ lsusb
Bus 001 Device 005: ID 05c6:9000 Qualcomm, Inc. SIMCom SIM5218 modem----------------------------TARGET after flip

2) In Australia the lights mean
Quote
solid red = scanning for network or waiting for PIN
green flashing = GPRS network found but not connected (2G)
blue flashing = 3G network found but not connected
solid green = connected to GPRS
solid blue = connected to 3G

If you don't mind, I think you may have done multiple attempts and got caught up with usbmode switch when its not ALWAYS necessary

so either try my way or fix up this pls

Quote
DefaultProduct= 0x7a01
TargetVendor=   0x0af0
TargetProduct=  0x7a01-------------------can't be the same

now back to me, after reading about your /dev here and other post pls post the results of this command

Code: [Select]
ls /dev/ttyU*   (next is my example) /dev/ttyUSB0  /dev/ttyUSB1  /dev/ttyUSB2
ls /dev/H*

ls /dev/serial/by-id  (below is my example after eject command)
usb-Alpha_9000_1234567890ABCDEF-if01-port0  usb-Alpha_9000_1234567890ABCDEF-if03-port0 usb-Alpha_HSDPA_Modem_1234567890ABCDEF-0:0-if00-port0

I am interested in your usb tcz as well. Please ensure you have usb-utils.tcz loaded

good luck
« Last Edit: April 06, 2013, 10:38:30 PM by aus9 »

Offline floppy

  • Hero Member
  • *****
  • Posts: 577
Re: Howto go into internet with usb UMTS modem 0af0:7a01 ?
« Reply #2 on: April 09, 2013, 01:09:07 PM »
First at all: I am writing from my netbook with the modem. So, it runs.
THANKS to everybody!
I checked in proposal in previous post:
- eject /dev/sr0 .. no effect
- lsusb give the ID in the title of the post. Info: that modem dont change the IDs after a modeswitch according the usb_modeswitch internet page (weird thing)
- ls /dev/ttyU*  gives "no files" but there are ttyHS* after the modeswitch I made in the first post
- ls /dev/H* gives "no files"
- ls /dev/serial/* gives no files
I changed the ttyHS3 in tttyHS5 in wvdial conf file and it works (it was just a try: I started from 0..1..2..3..4..5 and at the last = 5, it runs).

Correct 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
[Dialer Fonic]
Phone = *99#
Username = foo
Password = foo
Stupid Mode = 1
Dial Command = ATDT
Init4 = AT+CGDCONT=1,"IP","pinternet.interkom.de"
=========
« Last Edit: April 09, 2013, 03:06:42 PM by floppy »
AMD K6-IIIATZ 550MHz MB DFI K6xv3/+66
P4 HP DC7100 3GB 3GHz
Samsung NC10 boot from SD card port (via USB reader)
.. all TinyCore proofed

aus9

  • Guest
Re: (solved) Howto go into internet with usb UMTS modem 0af0:7a01 ?
« Reply #3 on: April 09, 2013, 07:35:22 PM »
floppy

Info: that modem dont change the IDs after a modeswitch.

AHHH

Quote
# Option GlobeSurfer Icon 7.2, new firmware (HSO driver)
#
# Vendor/ProductID don't change when switching, only the device
# class does. Most new Option devices work with this. Just adapt the IDs.
#
# Option's HSO driver is part of the mainstream kernel; support is
# available at Pharscape (www.pharscape.org)
#
# Contributors: Paul Hardwick, Philip Aben

DefaultVendor=  0x0af0
DefaultProduct= 0x6911

TargetClass=    0xff

MessageContent="55534243123456780000000000000601000000000000000000000000000000"

# Here is a list with all currently supported Option default IDs:
#
# 0af0:6711
# 0af0:6731
# 0af0:6751
# 0af0:6771
# 0af0:6791
# 0af0:6811
# 0af0:6911
# 0af0:6951
# 0af0:6971
# 0af0:7011
# 0af0:7031
# 0af0:7051
# 0af0:7071
# 0af0:7111
# 0af0:7211
# 0af0:7251
# 0af0:7271
# 0af0:7301
# 0af0:7311
# 0af0:7361
# 0af0:7381
# 0af0:7401
# 0af0:7501
# 0af0:7601
# 0af0:7701
# 0af0:7801
# 0af0:7901
# 0af0:7a01
balance culled

http://www.draisberghof.de/usb_modeswitch/device_reference.txt

aus9

  • Guest
Re: (solved) Howto go into internet with usb UMTS modem 0af0:7a01 ?
« Reply #4 on: April 09, 2013, 08:55:15 PM »
and looking at your /dev stuff  you may wish to read

http://www.pharscape.org/hso.html