LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   problem with connecting to internet via usb modem (http://www.linuxquestions.org/questions/slackware-14/problem-with-connecting-to-internet-via-usb-modem-757526/)

bishu 09-24-2009 11:50 AM

problem with connecting to internet via usb modem
 
Hi everyone..
i am using slackware13 x64 on a dell vostro laptop..i use a Huawei EC325 wireless modem to access the internet.. slackware detects it as E620 anyway but i am having a weird problem.. just 2 days back i went through all blogs regarding connecting to internet with an usb modem and did the necessary..ie
1. installed wvstreams and wvdial packages obtained from slackbuilds.org
2. modified /etc/wvdial.conf as below
bash-3.1# nano /etc/wvdial.conf
[Dialer Defaults]
Modem = /dev/ttyUSB0
Modem Type = Analog Modem
ISDN = 0
Baud = 9600
SetVolume = 0
Dial Command = ATDT
init1 = ATZ
init2=AT+CRM=1
FlowControl = Hardware (CRTSCTS)
[Dialer bsnl]
Username = 165
Password = 165
Phone = #777
Stupid Mode = 1
Auto DNS = 1

bsnl is the ISP in my region...
3.after giving the command 'wvdial bsnl' i was connected , everything went fine.. i got connected instantly...the surfing speed was good...
but after rebooting i tried to connect back but here is the outcome
bash-3.1#wvdial bsnl
--> WvDial: Internet dialer version 1.60
--> Cannot open /dev/ttyUSB0: No such file or directory
--> Cannot open /dev/ttyUSB0: No such file or directory
--> Cannot open /dev/ttyUSB0: No such file or directory
4. lsusb still recognizes my modem
bash-3.1# lsusb
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 007: ID 12d1:1001 Huawei Technologies Co., Ltd. E620 USB Modem
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
5. dmesg also shows it
bash-3.1# dmesg
usb 5-1: new full speed USB device using uhci_hcd and address 5
hub 5-0:1.0: unable to enumerate USB device on port 1
usb 5-1: new full speed USB device using uhci_hcd and address 6
hub 5-0:1.0: unable to enumerate USB device on port 1
usb 5-1: new full speed USB device using uhci_hcd and address 7
usb 5-1: New USB device found, idVendor=12d1, idProduct=1001
usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 5-1: Product: Huawei Mobile
usb 5-1: Manufacturer: Huawei Technologies
usb 5-1: configuration #1 chosen from 1 choice
usb-storage: probe of 5-1:1.0 failed with error -5
usb-storage: probe of 5-1:1.1 failed with error -5
usb_storage: module is already loaded

i have tried various alternate locations for the Modem=/dev/ttyUSB0 by /dev/ttyUSB1 2 3 but it still doesn't work the same error everytime...

for this i need to go back to windows everytime i need to access the internet which is very irritating... so plz help

thanks in advance

bishu 09-24-2009 02:03 PM

someone suggest something.....please

rg3 09-24-2009 02:12 PM

Try as root "modprobe option". It doesn't seem to be detecting the USB modem properly. I have a Huawei E220 and this shows up in dmesg when it creates the ttyUSB devices:

Code:

usb 2-2: new full speed USB device using ohci_hcd and address 30
usb 2-2: New USB device found, idVendor=12d1, idProduct=1003
usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 2-2: Product: HUAWEI Mobile
usb 2-2: Manufacturer: HUAWEI Technologies
usb 2-2: configuration #1 chosen from 1 choice
usb 2-2: USB disconnect, address 30
usb 2-2: new full speed USB device using ohci_hcd and address 31
usb 2-2: New USB device found, idVendor=12d1, idProduct=1003
usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 2-2: Product: HUAWEI Mobile
usb 2-2: Manufacturer: HUAWEI Technologies
usb 2-2: configuration #1 chosen from 1 choice
option 2-2:1.0: GSM modem (1-port) converter detected
usb 2-2: GSM modem (1-port) converter now attached to ttyUSB0
option 2-2:1.1: GSM modem (1-port) converter detected
usb 2-2: GSM modem (1-port) converter now attached to ttyUSB1

Edit: also, you can check the presence of any ttyUSB devices with "ls -l /dev/ttyUSB*".

bishu 09-24-2009 03:23 PM

thank u rg3...the problem was that a highly intellectual person had blacklisted option .....so dmesg cud not detect the modem properly.... thanks a lot


All times are GMT -5. The time now is 09:31 PM.