Linux - HOWTO (With Stats)

Status
Not open for further replies.
configuring my vodafone card option Qualcomm 3G: i am lost

I have problems to get a connection into the internet with my vodafone card. i write what i have done in the hope that somebody can help me.

My vodafone card is an option Qualcomm 3G CDMA Model: GT 3G+ EMEA; SNR: NZ...

i use ubuntu dapper beta with kernel 2.6.15-21-686.

i installed nozomi-modules and made: insmod nozomi

then:

/etc/init.d/pcmciautils start
* Starting PCMCIA services...

i connect my card. /var/log/messages tells me:

May 11 20:55:56 localhost kernel: [4297300.915000] pccard: CardBus card inserted into slot 0
May 11 20:55:56 localhost kernel: [4297300.915000] [1452] nozomi_card_init(): Init, cards_found: 1
May 11 20:55:56 localhost kernel: [4297300.915000] [1341] nozomi_get_card_type(): Card type is: 2048
May 11 20:55:56 localhost kernel: [4297300.915000] PCI: Enabling device 0000:0b:00.0 (0000 -> 0002)
May 11 20:55:56 localhost kernel: [4297300.915000] ACPI: PCI Interrupt 0000:0b:00.0[A] -> GSI 20 (level, low) -> IRQ 201
May 11 20:55:57 localhost kernel: [4297300.917000] Nozomi driver nozomi_tty<6>[792] nozomi_read_config_table(): Version of card: 3
May 11 20:55:57 localhost kernel: [4297302.050000] [784] nozomi_read_config_table(): Initialization OK!
May 11 20:58:11 localhost kernel: [4297436.438000] pccard: card ejected from slot 0
May 11 20:58:11 localhost kernel: [4297436.469000] ACPI: PCI interrupt for device 0000:0b:00.0 disabled

from /usr/bin/setpin (look at this script later) i get the message PIN accepted and the blue light of the card is blinking.

then i get from wvdial (configuration of wvdial later):


--> WvDial: Internet dialer version 1.55
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2
ATQ0 V1 E1 S0=0 &C1 &D2
OK
--> Sending: AT+CGDCONT=1,"IP","internet"
AT+CGDCONT=1,"IP","internet"
OK
--> Modem initialized.
--> Idle Seconds = 3000, disabling automatic reconnect.
--> Sending: ATD*99***1#
--> Waiting for carrier.
ATD*99***1#
CONNECT 1800000
--> Carrier detected. Waiting for prompt.
--> Connected, but carrier signal lost! Retrying...
--> Sending: ATD*99***1#
--> Waiting for carrier.
--> Timed out while dialing. Trying again.
--> Sending: ATD*99***1#
--> Waiting for carrier.
--> Timed out while dialing. Trying again.
--> Sending: ATD*99***1#
--> Waiting for carrier.



# File: /usr/bin/setpin
#!/usr/bin/env perl

use strict;
use warnings;

# my $modem = "/dev/usb/tts/0";
my $modem = "/dev/noz0";
# Substitute xxxx with your PIN.
# You should probably put your pin somewhere else, e.g. on an USB stick,
# an encrypted file system or something else, and read it from there...
# You have been warned!
my $pin = "1234";

$SIG{ALRM} = sub {
die("timeout: no response from modem $modem\n");
};

open(MODEM, "+<", $modem) or die("can't open modem $modem");
alarm(10);
print(MODEM "AT+CPIN=\"$pin\"\n\r");
while (<MODEM>) {
if (m/OK/) {
close(MODEM);
print("PIN accepted\n");
exit(0);
}
if (m/ERROR/) {
close(MODEM);
print("PIN rejected\n");
exit(1);
}
}




# File: /etc/ppp/peers/wvdial
# WvDial options
#
plugin passwordfd.so
#
noauth
name wvdial
defaultroute
replacedefaultroute
noipdefault
usepeerdns
novj





#File: /etc/wvdial.conf
[Dialer Defaults]
Modem = /dev/noz0
Baud = 115200
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2
Init3 = AT+CGDCONT=1,"IP","internet"
Area Code =
Phone = *99***1#
Username = dummy
Password = dummy
Ask Password = 0
Dial Command = ATD
Stupid Mode = 0
Compuserve = 0
Force Address =
Idle Seconds = 3000
DialMessage1 =
DialMessage2 =
ISDN = 0
Auto DNS = 1

[Dialer Another]
Init3 = AT+CGDCONT=1,"IP","AnotherAPN"
 
ArminM said:
This is what I would worry about. I think it should say CONNECT HSDPA

Maybe something in your wvdial.conf is not right.

what could be wrong?
 
philipp724 said:
what could be wrong?

The wvdial.conf file you posted does not look like the one that has been made available at the beginning of this forum. or you've left parts of it out.
 
Just reporting that my Novatel Merlin U740 is working under Linux.. :D
The "modprobe usbserial" thingy did the trick...

I also had to pass the kernel option I mentioned earlier "pci=assign-busses"
it wouldn't work until I added that again (I had completey re-installed my Linux setup)

Oh yea.. I needed to manually create /dev/ttyUSB0
 
redarrow said:
Just reporting that my Novatel Merlin U740 is working under Linux.. :D
The "modprobe usbserial" thingy did the trick...

I also had to pass the kernel option I mentioned earlier "pci=assign-busses"
it wouldn't work until I added that again (I had completey re-installed my Linux setup)

Oh yea.. I needed to manually create /dev/ttyUSB0

What's the speed like? I'm getting normal 3G speeds not HSDPA.
 
ArminM said:
What's the speed like? I'm getting normal 3G speeds not HSDPA.
Can't say unfortunately... I don't have a 3G/HSDPA signal here...
Best I get is EDGE - which never seems to go any faster than GPRS anyway :rolleyes:

I'll be in Cape Town on tuesday evening - hopefully getting HSDPA there ;)
Will test the speed then and let you know..
 
U740 Suse10

redarrow said:
Just reporting that my Novatel Merlin U740 is working under Linux.. :D
The "modprobe usbserial" thingy did the trick...

I also had to pass the kernel option I mentioned earlier "pci=assign-busses"
it wouldn't work until I added that again (I had completey re-installed my Linux setup)

Oh yea.. I needed to manually create /dev/ttyUSB0

hi,

I was hoping you could help me. :(

My old 3G Card worked, the new one U740 doesn't i get this in my /var/log/messages


###################START LOG FILE################
May 13 12:05:18 PLW-Linux kernel: PCI: Enabling device 0000:03:00.0 (0000 -> 0002)
May 13 12:05:18 PLW-Linux kernel: ACPI: PCI Interrupt 0000:03:00.0[A] -> Link [C0C4] -> GSI 5 (level, low) -> IRQ 5
May 13 12:05:18 PLW-Linux kernel: PCI: Setting latency timer of device 0000:03:00.0 to 64
May 13 12:05:18 PLW-Linux kernel: ohci_hcd 0000:03:00.0: OHCI Host Controller
May 13 12:05:18 PLW-Linux kernel: ohci_hcd 0000:03:00.0: new USB bus registered, assigned bus number 5
May 13 12:05:18 PLW-Linux kernel: ohci_hcd 0000:03:00.0: irq 5, io mem 0x44000000
May 13 12:05:18 PLW-Linux kernel: hub 5-0:1.0: USB hub found
May 13 12:05:18 PLW-Linux kernel: hub 5-0:1.0: 3 ports detected
May 13 12:05:18 PLW-Linux kernel: PCI: Enabling device 0000:03:00.1 (0000 -> 0002)
May 13 12:05:18 PLW-Linux kernel: ACPI: PCI Interrupt 0000:03:00.1 -> Link [C0C4] -> GSI 5 (level, low) -> IRQ 5
May 13 12:05:18 PLW-Linux kernel: PCI: Setting latency timer of device 0000:03:00.1 to 64
May 13 12:05:18 PLW-Linux kernel: ohci_hcd 0000:03:00.1: OHCI Host Controller
May 13 12:05:18 PLW-Linux kernel: ohci_hcd 0000:03:00.1: new USB bus registered, assigned bus number 6
May 13 12:05:18 PLW-Linux kernel: ohci_hcd 0000:03:00.1: irq 5, io mem 0x44001000
May 13 12:05:18 PLW-Linux kernel: hub 6-0:1.0: USB hub found
May 13 12:05:18 PLW-Linux kernel: hub 6-0:1.0: 2 ports detected
May 13 12:05:18 PLW-Linux kernel: usb 5-1: new low speed USB device using ohci_hcd and address 2
May 13 12:05:18 PLW-Linux kernel: usb 5-1: device descriptor read/64, error -110
May 13 12:05:19 PLW-Linux kernel: usb 5-1: device descriptor read/64, error -110
May 13 12:05:19 PLW-Linux kernel: usb 5-1: new low speed USB device using ohci_hcd and address 3
May 13 12:05:19 PLW-Linux kernel: usb 5-1: device descriptor read/64, error -110
May 13 12:05:19 PLW-Linux kernel: usb 5-1: device descriptor read/64, error -110
May 13 12:05:19 PLW-Linux kernel: usb 5-1: new low speed USB device using ohci_hcd and address 4
May 13 12:05:20 PLW-Linux kernel: usb 5-1: device not accepting address 4, error -110 :confused:
May 13 12:05:20 PLW-Linux kernel: usb 5-1: new low speed USB device using ohci_hcd and address 5
May 13 12:05:20 PLW-Linux kernel: usb 5-1: device not accepting address 5, error -110
May 13 12:05:24 PLW-Linux kernel: usb 5-1: new full speed USB device using ohci_hcd and address 6

################END LOG FILE########################

can you please help me with this problem on the net i found info that the kernel can be the problem but i reinstalled suse10 same problem.

thanks :)
 
You're probably best off waiting for Tazz_Tux to respond - he's the pro on these things around here ;)

All I had to do was run the modeprobe command: /sbin/modprobe usbserial vendor=0x1410 product=0x1400
And then create /dev/ttyUSB0 like: /dev/MAKEDEV ttyUSB0
And then set that in wvdial.conf...

If it's any use, I'm running Fedora Core 4, my kernel version is: 2.6.11-1

Hope this helps..
 
Hi,

Same issue here I'm sure. Plse help :) those who overcome issues with Suse seem to end off politely with ie. "I did it with yast as a modem thanks" eeerrrmmm how? I tried with no luck.

>>OS/kernel info (Suse 9.3)
> uname -a
Linux linux 2.6.11.4-21.11-default #1 Thu Feb 2 20:54:26 UTC 2006 i686 i686 i386 GNU/Linux

> tail -f var/log/messages

>>I insert the card and get this

May 13 14:47:37 linux kernel: cs: pcmcia_socket0: voltage interrogation timed out.
May 13 14:47:39 linux kernel: ohci_hcd: 2004 Nov 08 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
May 13 14:47:39 linux kernel: PCI: Enabling device 0000:03:00.0 (0000 -> 0002)
May 13 14:47:39 linux kernel: ACPI: PCI interrupt 0000:03:00.0[A] -> GSI 11 (level, low) -> IRQ 11
May 13 14:47:39 linux kernel: ohci_hcd 0000:03:00.0: OHCI Host Controller
May 13 14:47:39 linux kernel: PCI: Setting latency timer of device 0000:03:00.0 to 64
May 13 14:47:39 linux kernel: ohci_hcd 0000:03:00.0: irq 11, pci mem 0x30800000
May 13 14:47:39 linux kernel: ohci_hcd 0000:03:00.0: new USB bus registered, assigned bus number 5
May 13 14:47:39 linux kernel: hub 5-0:1.0: USB hub found
May 13 14:47:39 linux kernel: hub 5-0:1.0: 3 ports detected
May 13 14:47:39 linux kernel: PCI: Enabling device 0000:03:00.1 (0000 -> 0002)
May 13 14:47:39 linux kernel: ACPI: PCI interrupt 0000:03:00.1 -> GSI 11 (level, low) -> IRQ 11
May 13 14:47:39 linux kernel: ohci_hcd 0000:03:00.1: OHCI Host Controller
May 13 14:47:39 linux kernel: PCI: Setting latency timer of device 0000:03:00.1 to 64
May 13 14:47:39 linux kernel: ohci_hcd 0000:03:00.1: irq 11, pci mem 0x30801000
May 13 14:47:39 linux kernel: ohci_hcd 0000:03:00.1: new USB bus registered, assigned bus number 6
May 13 14:47:39 linux hald[6674]: Timed out waiting for hotplug event 1033. Rebasing to 1035
May 13 14:47:39 linux kernel: hub 6-0:1.0: USB hub found
May 13 14:47:39 linux kernel: hub 6-0:1.0: 2 ports detected
May 13 14:47:39 linux kernel: load_module: err 0xffffffef (dont worry)
May 13 14:47:39 linux kernel: usb 5-1: new low speed USB device using ohci_hcd and address 2
May 13 14:47:39 linux kernel: usb 5-1: device descriptor read/64, error -110
May 13 14:47:39 linux kernel: usb 5-1: device descriptor read/64, error -110
May 13 14:47:39 linux kernel: usb 5-1: new low speed USB device using ohci_hcd and address 3
May 13 14:47:40 linux kernel: usb 5-1: device descriptor read/64, error -110
May 13 14:47:43 linux kernel: usb 5-1: new full speed USB device using ohci_hcd and address 4

>>Run modeprobe command
> modprobe usbserial vendor=0x1410 product=0x1410

May 13 14:51:20 linux kernel: drivers/usb/serial/usb-serial.c: USB Serial support registered for Generic
May 13 14:51:20 linux kernel: usbserial_generic 5-1:1.0: Generic converter detected
May 13 14:51:20 linux kernel: usb 5-1: Generic converter now attached to ttyUSB0
May 13 14:51:20 linux kernel: usbserial_generic 5-1:1.1: Generic converter detected
May 13 14:51:20 linux kernel: usb 5-1: Generic converter now attached to ttyUSB1
May 13 14:51:20 linux kernel: usbcore: registered new driver usbserial_generic
May 13 14:51:20 linux kernel: usbcore: registered new driver usbserial
May 13 14:51:20 linux kernel: drivers/usb/serial/usb-serial.c: USB Serial Driver core v2.0

> cat /proc/bus/usb/devices

<snip>

T: Bus=05 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 4 Spd=12 MxCh= 0
D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1410 ProdID=1410 Rev= 0.00
S: Manufacturer=Novatel Wireless
S: Product=Novatel Wireless HSDPA Modem
C:* #Ifs= 2 Cfg#= 1 Atr=a0 MxPwr=500mA
I: If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=usbserial_generic
E: Ad=81(I) Atr=03(Int.) MxPS= 16 Ivl=128ms
E: Ad=82(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
I: If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=usbserial_generic
E: Ad=84(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=04(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms

</snip>

<snip ?="/etc/wvdial.conf">

[Dialer hsdpa]

Modem = /dev/ttyUSB0
Baud = 460800
Init2 = ATZ
Init3 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ISDN = 0
Modem Type = Analog Modem

</snip>


>> wvdial hsdpa
--> WvDial: Internet dialer version 1.54.0
--> Cannot open /dev/ttyUSB0: Cannot get information for serial port.
--> Cannot open /dev/ttyUSB0: Cannot get information for serial port.
--> Cannot open /dev/ttyUSB0: Cannot get information for serial port.


<comment>Same result for /dev/ttyUSB0 /dev/ttyUSB1 /dev/usb/ttyUSB0 /dev/usb/ttyUSB1 in /etc/wvdial.conf</comment>

thanks :)
 
ArminM said:
To get the kernel sources: (This is for CentOs 4.3)

wget http://mirrors.centos.org/centos/4.3/os/SRPMS/kernel-2.6.9-34.EL.src.rpm
rpm -ivh kernel-2.6.9-34.EL.src.rpm
cd /usr/src/redhat/SOURCES
cp linux-2.6.9.tar.bz2 /usr/src
cd /usr/src
tar xfj linux-2.6.9.tar.bz2

There are some kernel config files inside /usr/src/redhat/SOURCES
just copy the appropriate config file into the /usr/src/linux-2.6.9 folder and rename it to .config

Thank you for the feedback.

I have upgraded the kernel to the lastest version 2.6.9-34, along with the devel kit and the source using yum.

Still have the same problem. I did come across something on the net stating that the kfifo.h header is only distributed with the kernel from version 2.10.x! Centos has not released a kernel greater tha 2.9.x, so I have decided to install SuSE 10.1 and try that instead.

Neil.
 
javad said:
>> wvdial hsdpa
--> WvDial: Internet dialer version 1.54.0
--> Cannot open /dev/ttyUSB0: Cannot get information for serial port.
--> Cannot open /dev/ttyUSB0: Cannot get information for serial port.
--> Cannot open /dev/ttyUSB0: Cannot get information for serial port.


<comment>Same result for /dev/ttyUSB0 /dev/ttyUSB1 /dev/usb/ttyUSB0 /dev/usb/ttyUSB1 in /etc/wvdial.conf</comment>

MAKEDEV ttyUSB0 or MAKEDEV usb (for all USB devs)

then check which ones it makes and update your wvdial.conf
 
Thanks ArminM,

But I get this when running MAKEDEV

/sbin/MAKEDEV: line 170: major_/dev/vc/0=4: No such file or directory
/sbin/MAKEDEV: line 170: major_/dev/tty=5: No such file or directory
/sbin/MAKEDEV: line 170: major_/dev/console=5: No such file or directory
/sbin/MAKEDEV: line 170: major_/dev/ptmx=5: No such file or directory
/sbin/MAKEDEV: line 170: major_device-mapper=253: command not found

Thanks
 
both "MAKEDEV usb" and "MAKEDEV ttyUSB0"

I see I missed the last line of the trace:
/sbin/MAKEDEV: don't know how to make device "usb"

same again for ttyUSB0

Thanks
 
redarrow said:
I'll be in Cape Town on tuesday evening - hopefully getting HSDPA there ;)
Will test the speed then and let you know..
Well I'm about 40% of the way there :D sitting in George, wasn't expecting to get hsdpa here... but I have!

I can confirm that the Merlin is definitely not runnning full out hsdpa.. best I could get on telkoms speeds test was 282 Kbps...
 
A BIG, BIG Thanks for all the help everyone,

I ended up setting up a modem to point to /dev/ttyUSB0 after the modprobe and mknod, and used kinternet to dialin

<snip>
May 16 03:13:16 linux wvdial[13434]: CONNECT HSDPA
May 16 03:13:16 linux wvdial[13434]: Carrier detected. Waiting for prompt.
May 16 03:13:46 linux wvdial[13434]: Don't know what to do! Starting pppd and hoping for the best.
May 16 03:13:46 linux pppd[13433]: Serial connection established.
May 16 03:13:46 linux pppd[13433]: Renamed interface ppp0 to modem0
May 16 03:13:46 linux pppd[13433]: Using interface modem0
May 16 03:13:46 linux pppd[13433]: Connect: modem0 <--> /dev/ttyUSB0
</snip>

It looks like wvdial did not do it,so pppd was used and managed a serial connection. Just shooting in the dark about this actually, so an explaination of what happend here would be cool.

I don't get any indication of datarate but my Cards led is blue and connection is fast. I know the green led is EDGE.

Super happy to back in linux and hope for long time no C:\ ;)
 
Normally what wvdial does is look for "sername" and "assword" and sends the clear text auth over that. If it reads crap, then it will fire up pppd and pass it the serial port, and hope for the best, basiclly, giving pppd the task to auth etc.

This is quite normal and you will see it alot when playing with pppoe and vpn tunnels etc.

javad said:
May 16 03:13:46 linux wvdial[13434]: Don't know what to do! Starting pppd and hoping for the best.
 
Status
Not open for further replies.
Top
Sign up to the MyBroadband newsletter
X