| View previous topic :: View next topic |
| Author |
Message |
serge
Joined: 10 Jan 2006 Posts: 4

|
Posted: Tue Jan 10, 2006 3:44 am Post subject: Problem detecting 3g card |
|
|
Hi,
I've recently adquired a 3g Vodafone card (in Portugal) and I was trying to configure it in Linux. I've run the command cat /proc/bus/usb/devices and my card is
a Fusion Quad UMTS/GPRS vendor 0xaf0 product 6300.
I've made usbserial vendor=0xaf0 product=0x6300 and in /var/log/messages it appears that the card was correctly detected (or i think so):
drivers/usb/serial/usb-serial.c: USB Serial support registered for Generic
usbserial 1-1:1.0: Generic converter detected
usb 1-1: Generic converter now attached to ttyUSB0 (or usb/tts/0 for devfs)
usbserial 1-1:1.1: Generic converter detected
usb 1-1: Generic converter now attached to ttyUSB1 (or usb/tts/1 for devfs)
usbserial 1-1:1.2: Generic converter detected
usb 1-1: Generic converter now attached to ttyUSB2 (or usb/tts/2 for devfs)
usbserial 1-1:1.3: Generic converter detected
usb 1-1: Generic converter now attached to ttyUSB3 (or usb/tts/3 for devfs)
usbcore: registered new driver usbserial
After this i don't know what to do because the light in the card stay blinking in red and blue at the same time and when I run the wvdial for connecting it return an error:
Modem hangup
(And yes, i've configured correctly the wvdial.conf)
Please help.... |
|
| Back to top |
|
 |
Paul Site Admin
Joined: 08 Oct 2004 Posts: 505 Location: UK and Belgium

|
Posted: Tue Jan 10, 2006 9:17 am Post subject: |
|
|
Hi Serge,
Welcome to the forum
My immediate suggestion is to download gcom which will help you diagnose the problem. I shall post the details in the gcom forum.
Here are some of the reasons for the flashing LEDs (which gcom will help you to see):
If the Red and Blue LEDs are flashing at the same time that indicates the card is not registered on a network. This is normal for up to 20-30 seconds after the card is powered up (because it can take a long time to search all the channels). Therefore you should look at the following possibilities:
1. No SIM, SIM not inserted correctly, SIM disabled
2. PIN code is required - until a PIN is entered the card will not register.
3. Radio circuit is switched off (somewhere AT+CFUN=0)
4. Manual network registration has been used and your card is not allowed to use the network.
5. No signal
If the Blue and Red LED flash alternately that indicates a firmware crash. Try ejecting the card and re-inserting it, Or use the commands:
cardctl eject
cardctl insert
If this happens a lot then you should contact your supplier to see if their is a firmware update available for the card.
Paul |
|
| Back to top |
|
 |
Paul Site Admin
Joined: 08 Oct 2004 Posts: 505 Location: UK and Belgium

|
Posted: Tue Jan 10, 2006 10:09 am Post subject: |
|
|
I should also add:
If you force the card to use only use 3G technology but there is no 3G signal it will also not register on a network.
try
| Code: | | gcom -d /dev/ttyUSB0 3G2G |
Which makes the card use both 3G and 2G networks. See the man page for more info.
Paul |
|
| Back to top |
|
 |
serge
Joined: 10 Jan 2006 Posts: 4

|
Posted: Thu Jan 12, 2006 3:04 am Post subject: Almost... |
|
|
I sucessfully have register my card in the Vodafone network with gcom and then i've run the script wvdial and now I have IP, but I don't have Internet. I think that the problem is something with /etc/resolv.conf but i'm not sure (that was a friend that told me that could be that the problem).
Have you any ideias?
Sérgio |
|
| Back to top |
|
 |
Paul Site Admin
Joined: 08 Oct 2004 Posts: 505 Location: UK and Belgium

|
Posted: Thu Jan 12, 2006 9:51 am Post subject: |
|
|
Hi Serge,
My main experience is with SuSE and Redhat/Fedora so my suggestions are based on those....
What you need to do depends on your Linux distribution. Basically you need pppd to update resolv.conf and the route table.
usepeerdns
defaultroute
are the two pppd options you should normally use.
However, some pppd distributions like Redhat and Fedora in my experience don't support usepeerdns and the route does not seem to be updated.
In this situation (Fedora) you can use an ip-up or ip-up.local script. If you look in the pppd man page you will see that this script is called by pppd when the ppp link becomes active. I recommend you look at the man page to understand what pppd does on your distribution and what script files it supports.
Here is the ip-up.local I have used:
| Code: | #!/bin/bash
#
PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH
echo "created by pppd" > /etc/resolv.conf
echo "nameserver ${DNS1}" >> /etc/resolv.conf
echo "nameserver ${DNS2}" >> /etc/resolv.conf
chmod go+r /etc/resolv.conf
route del default
route add default gw ${IPREMOTE} |
Let us know how you get on
Paul |
|
| Back to top |
|
 |
serge
Joined: 10 Jan 2006 Posts: 4

|
Posted: Sat Jan 14, 2006 6:12 pm Post subject: |
|
|
Hi, I'm currently using Kubuntu and I have those 2 options in /etc/ppp/peers/wvdial.
I've created that script you told me (ip-up.local) but i don't understand how to use it. I've run it but nothing happened (the /etc/resolv.conf stays the same and i've replaced the DNS in the script for those that i use with my ISP).
Now i achieved to have Internet but when i start the wvdial command i always have to replace the DNS by hand in /etc/resolv.conf.
Oh, and by the way, one more thing: Is there any Linux program besides GKrellm that manages the tranfers (dayly, weekly and monthly) in our 3g card.
Thanks for all the help,
Sérgio |
|
| Back to top |
|
 |
Paul Site Admin
Joined: 08 Oct 2004 Posts: 505 Location: UK and Belgium

|
Posted: Sun Jan 15, 2006 10:54 am Post subject: |
|
|
Hi Serge,
Sorry, I should have been more clear
PPPD can run shell scripts automatically. When an IP link is created pppd will call /etc/ppp/ip-up. Check your /etc/ppp/ip-up file, if it calls /etc/ppp/ip-up.local then put your ip-up.local script in /etc/ppp/ . If it does not call ip-up.local then edit /etc/ppp/ip-up and add the contents of your ip-up.local script to the end of the file.
I don't know Kubunto so please read the pppd man page (man pppd) that was supplied with Kubunto for more details.
I have used Kinternet (Kppp) which has an option to log data transfers but that is a GUI. You will have to experiment to get it working I think.
Paul |
|
| Back to top |
|
 |
serge
Joined: 10 Jan 2006 Posts: 4

|
Posted: Sat Jan 21, 2006 3:21 am Post subject: |
|
|
Ok, i had a problem with ip-up.local: it doesn't had execution permissions. I've done a chmod u+x to the file, and that did the job. Now when i do sudo wvdial it runs the ip-up.local and changes the /etc/resolv.conf correctly.
Now i can tell that i have my 3g card working at 100%!!!!
Thanks for all the help.
Sérgio |
|
| Back to top |
|
 |
Paul Site Admin
Joined: 08 Oct 2004 Posts: 505 Location: UK and Belgium

|
Posted: Wed Jan 25, 2006 10:35 am Post subject: |
|
|
No, problem, happy to help  |
|
| Back to top |
|
 |
|