Linux - HOWTO (With Stats)

Status
Not open for further replies.
Fargo Maestro GSM Modem

Firstly, thank you very much for posting this! It's been extremely helpful. Here's the wvdial.conf (based on yours, works for a VodaCom prepaid SIM) that I'm using with a Fargo Maestro GSM Modem.

Code:
[Dialer Defaults]

Phone = *99***1#
#Phone = *99#
Username = anything
Password = anything
Stupid Mode = 1
Dial Command = ATDT

[Dialer pin]

Init1 = AT+CPIN=1234

[Dialer gprs]
Modem = /dev/ttyS0
Baud = 115200
Init2 = ATZ
Init3 = ATE0V1&D2&C1S0=0+IFC=2,2
ISDN = 0
Modem Type = Analog Modem
 
Hmmm, not sure why, but I can't connect to http://speed.vodacom.co.za/ .

Plugged the card in to my desktop with a PCMCIA slot running SuSE 10.2, (its new permanent home) and had no problems. Its now running kinternet with dial on demand for my whole home network including my windows PCs. (We still can't get ADSL where I live.) Trying now to finally update the Half Life Episode One my wife bought me for Christmas. :D
 
Firstly, thank you very much for posting this! It's been extremely helpful. Here's the wvdial.conf (based on yours, works for a VodaCom prepaid SIM) that I'm using with a Fargo Maestro GSM Modem.

Code:
[Dialer Defaults]

Phone = *99***1#
#Phone = *99#
Username = anything
Password = anything
Stupid Mode = 1
Dial Command = ATDT

[Dialer pin]

Init1 = AT+CPIN=1234

[Dialer gprs]
Modem = /dev/ttyS0
Baud = 115200
Init2 = ATZ
Init3 = ATE0V1&D2&C1S0=0+IFC=2,2
ISDN = 0
Modem Type = Analog Modem

Sorry to ask the stupid question - but did I miss your question or is this a thank-you... :)
 
kernel-2.6.20

I have problem with that driver for HSPDA Huawei driver, it's not working on kernel-2.6.20, don't you have any variats which works fine?
 
THX, I was trying to make it work (by using linux/linux_back_up/ instead of linux/ libs), but although I know C++, writing kernel code is "too high" for me...

btw: when I plug e220 to usb port (with usb-storage switched off) there's no any /dev/ttyUSB device... it's normal, or is there any problem with my kernel do I need any special modules?
 
Hi there,
im running a Gentoo Linux with the 2.6.20 vanilla-kernel compiled by genkernel.
Now I want to use my Huawei E220 hsdpa on this system. I run the "modprobe usbserial vendor=0x12d1 product=0x1003" command in /etc/conf.d/local.start (even if it should be done by the kernel). When I plug it to the System, the log says:

<date> localhost usb 2-2: new full speed USB device using uhci_hcd and address 2
<date> localhost usb 2-2: configuration #1 chosen from 1 choice
<date> localhost usb-storage: device ignored
<date> localhost usbbserial_generic 2-2:1.0: generic converter detected
<date> localhost usb 2-2: generic converter now attached to ttyUSB0

As you see, there is only one device created and I it is not usable, wheater I try to connect with wvdial or even minicom ... both say the modem does not respond to the ATZ.

This is how my wvdial.conf looks like:

# /etc/wvdial.conf
[Dialer hsdpa]
Phone = *99***1#
Username = vodafone
Password = vodafone
Stupid Mode = 1
Dial Command = ATDT
Modem = /dev/ttyUSB0
Baud = 460800
Init2 = ATZ
Init3 = ATE0V1&D2&C1S0=0+IFC=3,2
ISDN = 0
Modem Type = Analog Modem
Init5 =AT+CGDCONT=1,"IP","web.vodafone.de";

The exact answer (when I call "wvdial hsdpa") from wvdial is:

--> WvDial: Internet dialer version 1.56
--> Initializing modem.
--> Sending: ATZ
--> Sending: ATQ0
--> Re-Sending: ATZ
--> Modem not responding.

When I connect with minicom to /dev/ttyUSB0 I get a "Initializing Modem" box and the sessions freezes. I can't even quit minicom. The box disappeares when I pull the modem from its port.

It would be great if someone could give any hints. :eek:
 
<date> localhost usb 2-2: new full speed USB device using uhci_hcd and address 2

Hi Heakzer,

I'm using the Huawai E630 with gentoo. One of my last steps to get thet card to work was the right kernel module for the usb controller: ohci_hcd Probably you need that to. But I'm not sure cause your modem is a usb modem (right?) and mine is a pcmcia (internaly the hsdpa modem is connected via usb)

probably this helps?

chris...
 
I'm using Debian 3.1 kernel-2.6.20, compiled by
Code:
# make menuconfig
# make all
# make install
# make modules_isntall
# mkinitrd -o /boot/initrd.img-2.6.20 2.6.20
# emacs /boot/grub/menu.lst

But my kernel don't even create "/dev/ttyUSB0" and when I create it manualy by
Code:
# mknod /dev/ttyUSB0 c 188 0
# mknod /dev/ttyUSB1 c 188 1
# mknod /dev/ttyUSB2 c 188 2

It doesn't work :((
 
Hi Heakzer,

I'm using the Huawai E630 with gentoo. One of my last steps to get thet card to work was the right kernel module for the usb controller: ohci_hcd Probably you need that to. But I'm not sure cause your modem is a usb modem (right?) and mine is a pcmcia (internaly the hsdpa modem is connected via usb)

probably this helps?

chris...

Damn! It's time to turn kernel automodule loader off :sick:
 
Hi Heakzer,

I'm using the Huawai E630 with gentoo. One of my last steps to get thet card to work was the right kernel module for the usb controller: ohci_hcd Probably you need that to. But I'm not sure cause your modem is a usb modem (right?) and mine is a pcmcia (internaly the hsdpa modem is connected via usb)

probably this helps?

chris...

Yes, it is an usb modem. And as a result of genkernel, i have modules called
"ehci-hcd", "ohci-hcd" and "uhci-hcd". But how do I decide wich module the
modem has to use? I seams as it would just pick the "uhci-hcd" by itsself.
 
AFAIK "uhci" is used for USB1.1 and the other 2 are used for usb2.0

btw: what other modules do I need and I have not wvdial, it's that a problem?
 
Thanks for all the information in the thread.

I have been trying several things but i have not been able to make my pcmcia Huawei E620 provided by Vodafone in Spain. After having spent about six hours the maximum i got is the following output:

--> WvDial: Internet dialer version 1.56
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ERROR
--> Bad init string.
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ERROR
--> Bad init string.
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ERROR
--> Bad init string.


Any idea on what i can do?

Just thought I'd contribute an answer to this, even though it's a bit late... or at least I hope it's an answer.

To me it looks like what happens when you haven't supplied the card with its PIN yet. Look through the init strings mentioned in this thread (all 52 pages of it by now!) for where you send the PIN to the card.

I find it very frustrating having the card require a PIN because there's just no easy way to send the PIN to the card automatically under Linux in my setup. AND you can't just set it up to send the PIN every time you try to connect because after you've sent the PIN, any subsequent attempt to do so (before power-cycling the card) returns an ERROR! So wvdial aborts :mad:

So I just turn off the PIN request for the SIM :p (which you can do by putting the SIM into a phone and setting the PIN request off, or using the Vodafone Windows software for the data card).
 
Has anyone found the init command for the Huawei E620 card that tells it to use 3g only?

If I try to use
AT+COPS=0,0,"Vodacom-SA",2
as directed in parts of this thread (when referring to other cards like Novatal etc.) then the card just returns an error. If I leave off the last argument (the ",2") then it works, but that last argument is the one that is supposed to tell it to use 3g only! If I use a different value (like 0 to signify 2g only) it also doesn't work.

I've been fine leaving the card to its default for a while (I assume it's in "3g preferred" mode then)... but recently 3g/hsdpa has kinda died here and it falls down to gprs all the time - I can tell by the light on the card going green, instead of being blue or blue-green or 3g or hsdpa respectively. (plus the throughput goes to hell - worse than dialup!)

It would be nice to force it to 3g-only for testing. Anyone figured it out?
 
Heakzer:
If you have both modules and the uhci_hcd gets loaded, then it should be the right one. as mentioned, i'm usind a huawei E630 pcmcia, this one needs the ohci_hcd module.

Heakzer:
the modules are for different usb controllers from different vendors. uhci for example is for intel or via chips. the nec usb controller on the huawei e630 uses ohci

Oberon:
there is a little tool called comgt (at sourceforge) which can initialize the card and pass the pin code to it. I'm using kppp to establish a connection, there I can run scripts before the connection is beeing establish. probably this helps you to?

chris...
 
Heakzer:
If you have both modules and the uhci_hcd gets loaded, then it should be the right one. as mentioned, i'm usind a huawei E630 pcmcia, this one needs the ohci_hcd module.

Heakzer:
the modules are for different usb controllers from different vendors. uhci for example is for intel or via chips. the nec usb controller on the huawei e630 uses ohci

Well, this sounds good. However, the modem doesn't want to run with this module as long as it
gets only one /dev/ttyUSB-interface. :(
 
Heakzer:
there is a little tool called comgt (at sourceforge) which can initialize the card and pass the pin code to it. I'm using kppp to establish a connection, there I can run scripts before the connection is beeing establish. probably this helps you to?

I tried comgt, but the one script that comes with it (which supposedly sets 3g-only) doesn't make any difference. It doesn't give an error, but the connection still falls down to gprs if I issue the command then connect.

It does give a reading of the signal strength, but I'm not sure how to interpret the numbers :p
 
Status
Not open for further replies.
Top
Sign up to the MyBroadband newsletter