South Africa’s biggest forum. Discuss, discover, and connect with thousands of members.
Kimpost said:Solved the problem.
Apparently TRE needs the APN, while Vodafone doesn't (the card coming from Vodafone has the APN pre-programmed on the board).
The following line did the trick:
AT+CGDCONT=1,"IP","data.tre.se"
angie@angie-desktop:~$ wvdial pin novatel internet 3gonly 384k
--> WvDial: Internet dialer version 1.55
--> Cannot set information for serial port.
--> Initializing modem.
--> Sending: AT+CPIN=xxxx
--> Sending: ATQ0
--> Re-Sending: AT+CPIN=xxxx
--> Modem not responding.
Linux angie-desktop 2.6.15-26-386 #1 PREEMPT Mon Jul 17 19:52:53 UTC 2006 i686 GNU/Linux
Jul 22 00:09:46 localhost kernel: [ 5456.837267] pccard: CardBus card inserted into slot 0
Jul 22 00:09:46 localhost kernel: [ 5456.838687] PCI: Enabling device 0000:02:00.0 (0000 -> 0002)
Jul 22 00:09:46 localhost kernel: [ 5456.838745] ohci_hcd 0000:02:00.0: OHCI Host Controller
Jul 22 00:09:46 localhost kernel: [ 5456.839258] ohci_hcd 0000:02:00.0: new USB bus registered, assigned bus number 3
Jul 22 00:09:46 localhost kernel: [ 5456.839289] ohci_hcd 0000:02:00.0: irq 11, io mem 0x12000000
Jul 22 00:09:46 localhost kernel: [ 5456.923752] hub 3-0:1.0: USB hub found
Jul 22 00:09:46 localhost kernel: [ 5456.923790] hub 3-0:1.0: 3 ports detected
Jul 22 00:09:46 localhost kernel: [ 5457.026628] PCI: Enabling device 0000:02:00.1 (0000 -> 0002)
Jul 22 00:09:46 localhost kernel: [ 5457.026695] ohci_hcd 0000:02:00.1: OHCI Host Controller
Jul 22 00:09:46 localhost kernel: [ 5457.027144] ohci_hcd 0000:02:00.1: new USB bus registered, assigned bus number 4
Jul 22 00:09:46 localhost kernel: [ 5457.027167] ohci_hcd 0000:02:00.1: irq 11, io mem 0x12001000
Jul 22 00:09:47 localhost kernel: [ 5457.112260] hub 4-0:1.0: USB hub found
Jul 22 00:09:47 localhost kernel: [ 5457.112300] hub 4-0:1.0: 2 ports detected
Jul 22 00:09:52 localhost kernel: [ 5461.612350] usb 3-1: new full speed USB device using ohci_hcd and address 2
T: Bus=03 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 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=(none)
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=(none)
E: Ad=84(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=04(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
lsmod
dfkt said:Hello community,
first of all, I'm a complete Linux newbie - I installed Ubuntu 6.06 for a friend, *snip*
I hope the information I posted is useful - if I can provide any more, please let me know. Thanks for your time.
Module Size Used by
binfmt_misc 12296 1
rfcomm 40216 0
l2cap 26244 5 rfcomm
bluetooth 49892 4 rfcomm,l2cap
ppdev 9220 0
lp 11844 0
sis 10304 1
drm 73236 2 sis
ipv6 265728 8
speedstep_lib 4484 0
cpufreq_userspace 4696 0
cpufreq_stats 5636 0
freq_table 4740 1 cpufreq_stats
cpufreq_powersave 1920 0
cpufreq_ondemand 6428 0
cpufreq_conservative 7332 0
dm_mod 58936 1
af_packet 22920 2
md_mod 72532 0
pcmcia 40508 0
joydev 10048 0
tsdev 8000 0
irtty_sir 8576 0
parport_pc 35780 1
sir_dev 19628 1 irtty_sir
rtc 13492 0
parport 36296 3 ppdev,lp,parport_pc
irda 187068 2 irtty_sir,sir_dev
crc_ccitt 2304 1 irda
floppy 62148 0
pcspkr 2180 0
sis900 22912 0
mii 5888 1 sis900
yenta_socket 28428 2
rsrc_nonstatic 13440 1 yenta_socket
pcmcia_core 42640 3 pcmcia,yenta_socket,rsrc_nonstatic
psmouse 36100 0
sis_agp 8708 1
serio_raw 7300 0
agpgart 34888 2 drm,sis_agp
snd_trident 44196 2
gameport 15496 2 snd_trident
snd_ac97_codec 93088 1 snd_trident
snd_ac97_bus 2304 1 snd_ac97_codec
snd_pcm_oss 53664 0
snd_mixer_oss 18688 1 snd_pcm_oss
shpchp 45632 0
pci_hotplug 29236 1 shpchp
snd_pcm 89864 4 snd_trident,snd_ac97_codec,snd_pcm_oss
snd_timer 25220 1 snd_pcm
snd_page_alloc 10632 2 snd_trident,snd_pcm
snd_util_mem 4608 1 snd_trident
snd_mpu401_uart 7808 1 snd_trident
snd_rawmidi 25504 1 snd_mpu401_uart
snd_seq_device 8716 2 snd_trident,snd_rawmidi
snd 55268 12 snd_trident,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device
soundcore 10208 1 snd
i2c_sis630 7948 0
i2c_core 21904 1 i2c_sis630
evdev 9856 1
ext3 135688 1
jbd 58772 1 ext3
ide_generic 1536 0
ohci_hcd 21892 0
usbcore 130692 2 ohci_hcd
ide_cd 33028 0
cdrom 38560 1 ide_cd
ide_disk 17664 3
sis5513 17032 1
generic 5124 0
processor 23360 0
capability 5000 0
commoncap 7296 1 capability
vga16fb 13704 1
vgastate 10368 1 vga16fb
fbcon 42784 72
tileblit 2816 1 fbcon
font 8320 1 fbcon
bitblit 6272 1 fbcon
softcursor 2304 1 bitblit
[Dialer Defaults]
Phone = webone.at
#*99***1#
Username = web
Password = web
Stupid Mode = 1
Dial Command = ATDT
[Dialer pin]
Init1 = AT+CPIN=xxxx (paranoia :D)
[Dialer novatel]
#Modem = /dev/ttyUSB3
#Modem = /sys/devices/pci0000:00/0000:00:03.0/0000:02:00.0/usb3/3-1
Modem = /dev/ttyS1
Baud = 460800
Init2 = ATZ
Init3 = ATE0V1&D2&C1S0=0+IFC=2,2
ISDN = 0
Modem Type = Analog Modem
dfkt said:Hello Tazz_Tux,
thanks for your answer - here is the output of lsmod (yeah, it's a crappy Celeron with SIS chipset):
*snip*
EDIT: This guy seems to get a connection even though he gets the "Cannot get information for serial port." ("get" instead of "set", as on my Ubuntu, though) error message: http://www.ubuntuforums.org/showthread.php?t=203342&highlight=hsdpa
dfkt said:Thanks Tazz_Tux - we're a big step further!
The card connected, and the red blinking LED changed to a steady blue.
Internet doesn't work, however.
Where do I put my DNS servers and other connection information? The connection doesn't show up in Ubuntu's GUI network manager.
And how do I set the connection up for one-click start, instead of having to use the terminal?
Thanks again, I feel a lot more motivated now that this thing might actually work.
EDIT: when I stop the wvdial script with CTRL+C it exits nicely, it seems - but when I try to restart it it tells me "bad init string". I have to restart Ubuntu to restart the connection.
route -n
dfkt said:Hi Tazz_Tux,
I did "route del default" (the "gw" doesn't work on Ubuntu, it seems), and I edited /etc/resolv.conf. Nothing changed.
The local IP is 10.106.47.163, and the remote IP is 10.64.64.64. The DNS are 10.11.12.13 and 14 (before editing resolv.conf).
Is it correct for stopping/starting PCMCIA "/etc/init.d/pcmciautils stop"?
The Ubuntu distro is up-to-date, all updates installed.
BEFORE:
Kernel IP Routentabelle
Ziel Router Genmask Flags Metric Ref Use Iface
AFTER:
Kernel IP Routentabelle
Ziel Router Genmask Flags Metric Ref Use Iface
10.64.64.64 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 ppp0
angie@angie-desktop:~$ wvdial pin novatel internet 3gonly 384k
--> WvDial: Internet dialer version 1.55
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: AT+CPIN=xxxx
AT+CPIN=xxxx
OK
--> Sending: ATZ
ATZ
OK
--> Sending: ATE0V1&D2&C1S0=0+IFC=2,2
ATE0V1&D2&C1S0=0+IFC=2,2
OK
--> Sending: AT+COPS=0,0,"ONE",2
OK
--> Sending: AT+CGDCONT=1,"IP","internet";
OK
--> Sending: AT+CGEQMIN=1,4,64,384,64,384
OK
--> Sending: AT+CGEQREQ=1,4,64,384,64,384
OK
--> Modem initialized.
--> Sending: ATDT*99***1#
--> Waiting for carrier.
CONNECT HSDPA 1.8
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Sun Jul 23 22:00:34 2006
--> Pid of pppd: 4820
--> Using interface ppp0
--> pppd: ����8�[05][08]��[05][08]
--> pppd: ����8�[05][08]��[05][08]
--> pppd: ����8�[05][08]��[05][08]
--> pppd: ����8�[05][08]��[05][08]
--> pppd: ����8�[05][08]��[05][08]
--> pppd: ����8�[05][08]��[05][08]
--> pppd: ����8�[05][08]��[05][08]
--> pppd: ����8�[05][08]��[05][08]
--> local IP address 10.106.7.134
--> pppd: ����8�[05][08]��[05][08]
--> remote IP address 10.64.64.64
--> pppd: ����8�[05][08]��[05][08]
--> primary DNS address 10.11.12.13
--> pppd: ����8�[05][08]��[05][08]
--> secondary DNS address 10.11.12.14
--> pppd: ����8�[05][08]��[05][08]
dfkt said:Hello Tazz_Tux,
that's what route -n said (it was empty before the connection):
Code:BEFORE: Kernel IP Routentabelle Ziel Router Genmask Flags Metric Ref Use Iface AFTER: Kernel IP Routentabelle Ziel Router Genmask Flags Metric Ref Use Iface 10.64.64.64 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0 0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 ppp0
And here's the complete connect-sequence:
Code:angie@angie-desktop:~$ wvdial pin novatel internet 3gonly 384k --> WvDial: Internet dialer version 1.55 --> Cannot get information for serial port. --> Initializing modem. --> Sending: AT+CPIN=xxxx AT+CPIN=xxxx OK --> Sending: ATZ ATZ OK --> Sending: ATE0V1&D2&C1S0=0+IFC=2,2 ATE0V1&D2&C1S0=0+IFC=2,2 OK --> Sending: AT+COPS=0,0,"ONE",2 OK --> Sending: AT+CGDCONT=1,"IP","internet"; OK --> Sending: AT+CGEQMIN=1,4,64,384,64,384 OK --> Sending: AT+CGEQREQ=1,4,64,384,64,384 OK --> Modem initialized. --> Sending: ATDT*99***1# --> Waiting for carrier. CONNECT HSDPA 1.8 --> Carrier detected. Starting PPP immediately. --> Starting pppd at Sun Jul 23 22:00:34 2006 --> Pid of pppd: 4820 --> Using interface ppp0 --> pppd: ����8�[05][08]��[05][08] --> pppd: ����8�[05][08]��[05][08] --> pppd: ����8�[05][08]��[05][08] --> pppd: ����8�[05][08]��[05][08] --> pppd: ����8�[05][08]��[05][08] --> pppd: ����8�[05][08]��[05][08] --> pppd: ����8�[05][08]��[05][08] --> pppd: ����8�[05][08]��[05][08] --> local IP address 10.106.7.134 --> pppd: ����8�[05][08]��[05][08] --> remote IP address 10.64.64.64 --> pppd: ����8�[05][08]��[05][08] --> primary DNS address 10.11.12.13 --> pppd: ����8�[05][08]��[05][08] --> secondary DNS address 10.11.12.14 --> pppd: ����8�[05][08]��[05][08]
dfkt said:Tazz_Tux, thanks for your help and your time - but it's of no use, it seems. I can't get this thing running. The phone provider can't help, as expected. It's back to Windows for my friends laptop.
At least I learned a bit more about Linux.
Jul 27 20:17:54 localhost pppd[14758]: pppd 2.4.4b1 started by fred, uid 1000
Jul 27 20:17:57 localhost pppd[14758]: Serial connection established.
Jul 27 20:17:57 localhost pppd[14758]: using channel 2
Jul 27 20:17:57 localhost pppd[14758]: Using interface ppp0
Jul 27 20:17:57 localhost pppd[14758]: Connect: ppp0 <--> /dev/ttyUSB0
Jul 27 20:17:58 localhost pppd[14758]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> < magic 0x6a951694> <pcomp> <accomp>]
Jul 27 20:17:58 localhost pppd[14758]: rcvd [LCP ConfReq id=0x4 <asyncmap 0x0> < auth chap MD5> <magic 0x3015f91c> <pcomp> <accomp>]
Jul 27 20:17:58 localhost pppd[14758]: sent [LCP ConfNak id=0x4 <auth pap>]
Jul 27 20:17:58 localhost pppd[14758]: rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> < magic 0x6a951694> <pcomp> <accomp>]
Jul 27 20:17:58 localhost pppd[14758]: rcvd [LCP ConfReq id=0x5 <asyncmap 0x0> < auth pap> <magic 0x3015f91c> <pcomp> <accomp>]
Jul 27 20:17:58 localhost pppd[14758]: sent [LCP ConfAck id=0x5 <asyncmap 0x0> < auth pap> <magic 0x3015f91c> <pcomp> <accomp>]
Jul 27 20:17:58 localhost pppd[14758]: sent [LCP EchoReq id=0x0 magic=0x6a951694 ]
Jul 27 20:17:58 localhost pppd[14758]: sent [PAP AuthReq id=0x1 user="0824451709 " password=<hidden>]
Jul 27 20:17:58 localhost pppd[14758]: rcvd [LCP DiscReq id=0x6 magic=0x3015f91c ]
Jul 27 20:17:58 localhost pppd[14758]: rcvd [LCP EchoRep id=0x0 magic=0x3015f91c 6a 95 16 94]
Jul 27 20:17:58 localhost pppd[14758]: rcvd [PAP AuthAck id=0x1 ""]
Jul 27 20:17:58 localhost pppd[14758]: PAP authentication succeeded
Jul 27 20:17:58 localhost pppd[14758]: sent [CCP ConfReq id=0x1 <deflate 15> <de flate(old#) 15> <bsd v1 15>]
Jul 27 20:17:58 localhost pppd[14758]: sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
Jul 27 20:17:58 localhost pppd[14758]: rcvd [LCP ProtRej id=0x7 80 fd 01 01 00 0 f 1a 04 78 00 18 04 78 00 15 03 2f]
Jul 27 20:17:58 localhost pppd[14758]: Protocol-Reject for 'Compression Control Protocol' (0x80fd) received
Jul 27 20:17:58 localhost pppd[14758]: Hangup (SIGHUP)
Jul 27 20:17:58 localhost pppd[14758]: Modem hangup
Jul 27 20:17:58 localhost pppd[14758]: Connection terminated.
Jul 27 20:17:59 localhost pppd[14758]: Exit.
--> WvDial: Internet dialer version 1.55
--> 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
OK
--> Modem initialized.
--> Sending: ATDT*99***1#
--> Waiting for carrier.
ATDT*99***1#
CONNECT
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Thu Jul 27 20:46:40 2006
--> Pid of pppd: 16053
--> Using interface ppp0
--> pppd: ȟ����[05][08]��[05][08]
--> pppd: ȟ����[05][08]��[05][08]
--> pppd: ȟ����[05][08]��[05][08]
--> pppd: ȟ����[05][08]��[05][08]
--> pppd: ȟ����[05][08]��[05][08]
--> pppd: ȟ����[05][08]��[05][08]
--> Disconnecting at Thu Jul 27 20:46:54 2006
--> The PPP daemon has died: A modem hung up the phone (exit code = 16)
--> man pppd explains pppd error codes in more detail.
--> Try again and look into /var/log/messages and the wvdial and pppd man pages for more information.
freds said:Hi guys
*snip*
Please lemme know if there's any more info I can attach that would be useful
Kind regards
Fred
Tazz_Tux said:Please can you post your /etc/ppp/options file?
Laterz !
asyncmap 0
auth
crtscts
lock
hide-password
modem
proxyarp
lcp-echo-interval 30
lcp-echo-failure 4
noipx
noccp
nobsdcomp
freds said:Hi
Thanx for your response, ppp/options below:
Fred
Code:asyncmap 0 auth crtscts lock hide-password modem proxyarp lcp-echo-interval 30 lcp-echo-failure 4 noipx