Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
05-16-2013, 12:03 AM
|
#1
|
Member
Registered: Jan 2007
Location: INDIA
Distribution: Ubuntu, Debian
Posts: 343
Rep:
|
problem running 3G - wvdial
I have configured 3G using wvdialconf and wvdial
However, though it dials and authenticated, not able to access it, as it suddently disconnects. The details are shown below
WvDial Internet dialer version 1.61
Initiating modem
sending ATZ
OK
sending ATQ0 V1 E1 S0=0 & C1 & D2+FCLASS =0
OK
Modem initiated
sending : ATDT #99#
waiting for carrier
CONNECT
[{PPPPP88 (encrypted characters)
.
.
.
.
ppp negotiation detected
staring pppd at ( Date.....)
pid of pppd:2396
using interface ppp0
pppd
[7f]
pppd
[7f]
.
.
.
Disconnecting at ( Date.....)
The ppp daemon has died : Amodem hangup the phone (exit code = 16)
man pppd explains error codes in more detail try again and look in to /var/log/messages and the wvdial and pppd manager
IN THE /var/log/syslog file - last entry
CHAP authentication succeded:Congratulatins
pppd[2413]:authentication succeeded
:LCP terminated by peer
:Modem hangup
:Connection trminated
Pls provide me a solution. I wish to solve it through wvdial only. Network manager or sakis-3g I won't prefer
thanks in advance
SUNIL S
|
|
|
05-16-2013, 02:10 PM
|
#2
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,420
|
Quote:
Originally Posted by sunils1973
I have configured 3G using wvdialconf and wvdial
However, though it dials and authenticated, not able to access it, as it suddently disconnects. The details are shown below
The ppp daemon has died : Amodem hangup the phone (exit code = 16)
man pppd explains error codes in more detail try again and look in to /var/log/messages and the wvdial and pppd manager
IN THE /var/log/syslog file - last entry
CHAP authentication succeded:Congratulatins
pppd[2413]:authentication succeeded
:LCP terminated by peer
:Modem hangup
:Connection trminated
|
So, the system tells you to look in /var/log/messages.....and you look in /var/log/syslog? You also don't say what version/distro of Linux, what kind of 3g hardware you're using, or provide any useful details. What are you doing when it disconnects? Verified the user ID/password? Correct dial number? What programs have you tried to connect WITH? Can you even ping anything after connecting? Tried to run wvdialconf again, to make sure things are set up right?
ANY details at all? You've been a member here since 2007...after six years, these should be obvious things.
Quote:
Pls provide me a solution. I wish to solve it through wvdial only. Network manager or sakis-3g I won't prefer
|
As you've been asked/told several times in the past: spell out your words. And WHY do you only want to use wvdial, rather than network manager? What you prefer may not be the best solution, so again, provide details.
Last edited by TB0ne; 05-16-2013 at 02:12 PM.
|
|
|
05-16-2013, 11:54 PM
|
#3
|
Member
Registered: Jan 2007
Location: INDIA
Distribution: Ubuntu, Debian
Posts: 343
Original Poster
Rep:
|
Thank u TBOne
1)In Latest ubuntu, there is no /var/log/messages. Logging is done to the /var/log/syslog file
2)Ubuntu 13.04 64 bit
3) #lsusb gives
Bus 003 Device 002:ID 230d:001
#usb-devices gives
Bus=03 Lev=01,Prnt=01 Port=03 Cnt=01 Dev#=2 Spd=480 Mxch=0
Ver=2.00 cls=02(commc) Sub=00 Port=00 MxPS=64 #cfgs=3
Vendor=230d ProdID=001 Rev=00.00
Manufacturer=HSPADataCard
Product=HSPADataCard
SerialNumber=8444311594054030
#Ifs=10 cfg#=3 Atr=10 MxPwr=20md
If#=0 Alt=0 #EPS=0 cls=02(commc) sub=08 Prot=00 Driver=(none)
This is the HSPDA usb modem supplied by bsnl, I think it is huwai (not sure) 3.56 mbps
The dial number , usrname and password given above are correct. It works on the same machine with windows. In windows also the same configuration(username and password blank)
Driver for linux (ubuntu)is provided, but it is for 32bit OS
4) I am not getting the connection. The same sequence of messages are repeating. From the messages, it is clear that some connection is established-but immediately disconnects(within fractions of second)-cannot ping
5) I have tried many times
6) Tried the modem with desktop pc- here wvdialconf is not detecting the modem - may be problem with usb_modswitch.
|
|
|
05-17-2013, 12:08 AM
|
#4
|
Member
Registered: Jan 2007
Location: INDIA
Distribution: Ubuntu, Debian
Posts: 343
Original Poster
Rep:
|
Quote:
Originally Posted by TB0ne
WHY do you only want to use wvdial, rather than network manager? What you prefer may not be the best solution.
|
I would like to clear my mistakes/errors/misconcepts regarding wvdial. I prefer to do things in command line way though alternate solutions are available. Network manager is GUI and the functioning/interface of the same differs among Distributions. By doing it in GUI, no chance to know what is happening behind the scenes.
It is not only for getting proper solutions, but also for improving our knowledge. If it is for getting solution, It would have been better to use it in windows or install 32 bit ubuntu and make use of the driver provided.
I want to clear the problem by using wvdial - not through any other solutions.
If it is not possible, what is the problem?
with my understanding? ( Can improve )
with wvdial?
with linux?
with the device?
|
|
|
05-17-2013, 10:01 AM
|
#5
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,420
|
Quote:
Originally Posted by sunils1973
Thank u TBOne
|
And you STILL are using text-speak. AGAIN...you need to SPELL OUT YOUR WORDS. It's "you", not "u", etc....
Quote:
1)In Latest ubuntu, there is no /var/log/messages. Logging is done to the /var/log/syslog file
|
...and the program specifically told you to check a file that's not there? Did you look to see if it was present?
Quote:
2)Ubuntu 13.04 64 bit
3) #lsusb gives
|
...which says it's a USB device, but you STILL don't tell us the brand/model #, which you can just read off the side of the device.
Quote:
This is the HSPDA usb modem supplied by bsnl, I think it is huwai (not sure) 3.56 mbps
The dial number , usrname and password given above are correct. It works on the same machine with windows. In windows also the same configuration(username and password blank)
Driver for linux (ubuntu)is provided, but it is for 32bit OS
|
Well, if the modem is SUPPLIED by BSNL, and they gave you a driver, why aren't you calling BSNL for support?? You bought the device and the service from them.
Quote:
4) I am not getting the connection. The same sequence of messages are repeating. From the messages, it is clear that some connection is established-but immediately disconnects(within fractions of second)-cannot ping
5) I have tried many times
6) Tried the modem with desktop pc- here wvdialconf is not detecting the modem - may be problem with usb_modswitch.
|
Probably...usb_modeswitch has to be run to 'flip' it to modem mode. Have you done that on your laptop, or did you just try to install the driver? A good diagnostic step would be to un-install the driver you got from BSNL, and just use usb_modeswitch, THEN run wvdialconf. Most USB-3g devices will be able to 'just work' in that configuration, with no 'driver' needed.
Quote:
Originally Posted by sunils1973
I prefer to do things in command line way though alternate solutions are available
|
Great...however, you are missing something here. If you DO use network manager, and the device WORKS, then you KNOW the problem is something to do with wvdialconf, and not the device, credentials, etc. You can use it as a diagnostic tool.
Quote:
Network manager is GUI and the functioning/interface of the same differs among Distributions. By doing it in GUI, no chance to know what is happening behind the scenes.
|
Sorry, that's not true. It's not magic...the GUI is writing the config information SOMEWHERE, and you can go look at it.
Quote:
Originally Posted by sunils1973
It is not only for getting proper solutions, but also for improving our knowledge. If it is for getting solution, It would have been better to use it in windows or install 32 bit ubuntu and make use of the driver provided.
|
No, you would have been better to call BSNL and tell them you're having a problem, or trying to look up the device/model# with Google, since there may be issues with the device and 64bit Ubuntu, or with the version of Ubuntu you have. Might be as simple as a firmware patch, or software update...but we don't know/can't tell you, since you don't tell us anything past it MIGHT be a Huwai device.
Quote:
Originally Posted by sunils1973
I want to clear the problem by using wvdial - not through any other solutions.
If it is not possible, what is the problem? with my understanding? ( Can improve ) with wvdial? with linux? with the device?
|
The problem is that you're not providing useful details, and you're not using the resources available to you. You're not calling BSNL support (who sold you not only the device, but the driver and service), you're not providing the brand/model# of the device, and you're not trying ANY other possible solutions, such as network manager.
You may even have a bad device...but since you've not tried ANYTHING but wvdial on one machine, it's impossible to guess. You hint at the fact you've got a Windows machine...but don't tell us if it WORKS on that machine.
|
|
|
05-17-2013, 01:50 PM
|
#6
|
Member
Registered: Jan 2007
Location: INDIA
Distribution: Ubuntu, Debian
Posts: 343
Original Poster
Rep:
|
Yes checked. Nowadays, there is no /var/log/messages file in ubuntu. (Did'nt you noticed it in ubuntu?)
It is a teracom device
"Software version : LW272V1.0" iem1:980069007866261
[I got the information from the windows user interface - nothing except "BSNL" written on the device]
I bought the device 4-5 years ago. As I have broadband connection I did'nt used it(I have used the sim to my mobile). Now as I have laptop, like to use this 3G with the same.
When I bought the device, 64bit machines was less (I think even the windows driver is 32bit)
Nowadays Bsnl is providing different device (having better speed)-no scope of getting support from bsnl - govt agency.
Why I am hesitating to use network manager is I am not sure where actually the updations are taking place( is it only on /etc/wvdial.conf). If multiple updations are taking place, it is difficult to trace out what exactly cleared the problem.
But from the message, I hope that I am very near to the goal (no issue with device), but some minor problem disconnects.
I didn't googled with the device number - I shall try
OK, Thank You again for your valuable remarks
|
|
|
All times are GMT -5. The time now is 03:33 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|